Skip to content

Commit 0097332

Browse files
kgowruKapil Gowru
andauthored
fix: improving links on home page (#92)
Co-authored-by: Kapil Gowru <[email protected]>
1 parent e82b610 commit 0097332

File tree

12 files changed

+216
-28
lines changed

12 files changed

+216
-28
lines changed

fern/assets/styles.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
}
3939

4040
/*** START -- PRODUCT SELECTOR STYLING ***/
41-
4241
@media (min-width: 1024px) {
43-
4442
.fern-product-selector {
4543
transform: translate(-2px, 4px);
4644
}
@@ -212,6 +210,10 @@
212210
/*** END -- PRODUCT SELECTOR STYLING ***/
213211

214212
/*** START -- DOCS HOMEPAGE STYLING ***/
213+
a[href*="changelog"] svg {
214+
display: none;
215+
}
216+
215217
.docs-homepage {
216218
position: relative;
217219
.fern-card {
@@ -284,6 +286,10 @@
284286
/*** END -- DOCS HOMEPAGE STYLING ***/
285287

286288
/*** START -- SDKS HOMEPAGE STYLING ***/
289+
a[href*="changelog"] svg {
290+
display: none;
291+
}
292+
287293
.sdks-homepage {
288294
position: relative;
289295

fern/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ redirects:
315315
destination: /learn/docs/preview-publish/publishing-your-docs
316316
permanent: true
317317
# General getting started pattern
318-
- source: /learn/docs/getting-started/:slug*
319-
destination: /learn/docs/guides/getting-started/:slug*
320-
permanent: true
318+
# - source: /learn/docs/getting-started/:slug*
319+
# destination: /learn/docs/guides/getting-started/:slug*
320+
# permanent: true
321321

322322
# Building and Customizing Your Docs redirects - specific cases first
323323
- source: /learn/docs/building-and-customizing-your-docs/navigation

fern/products/docs/docs.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ navigation:
77
path: ./pages/getting-started/quickstart.mdx
88
- link: Customer Showcase
99
href: https://buildwithfern.com/customers
10-
- section: Component Library
10+
- section: Writing Content
1111
contents:
12-
- section: Writing Content
13-
contents:
14-
- page: Markdown
15-
path: ./pages/component-library/writing-content/markdown.mdx
16-
- page: Visual Editor
17-
path: ./pages/component-library/writing-content/visual-editor.mdx
18-
- section: Default Components
12+
- page: Markdown
13+
path: ./pages/component-library/writing-content/markdown.mdx
14+
- section: Components
1915
contents:
2016
- page: Overview
2117
path: ./pages/component-library/default-components/overview.mdx
@@ -71,12 +67,12 @@ navigation:
7167
- page: Tooltips
7268
path: ./pages/component-library/default-components/tooltips.mdx
7369
icon: fa-regular fa-comment
74-
- page: Reusable Snippets
75-
path: ./pages/component-library/custom-components/reusable-snippets.mdx
70+
- page: Visual Editor
71+
path: ./pages/component-library/writing-content/visual-editor.mdx
72+
- page: Reusable Markdown
73+
path: ./pages/component-library/custom-components/reusable-markdown.mdx
7674
- page: Custom React Components
7775
path: ./pages/component-library/custom-components/custom-react-components.mdx
78-
- page: Custom CSS & JS
79-
path: ./pages/component-library/custom-components/custom-css-js.mdx
8076
- section: Configuration
8177
collapsed: true
8278
contents:
@@ -88,6 +84,8 @@ navigation:
8884
path: ./pages/configuration/frontmatter.mdx
8985
- page: Search
9086
path: ./pages/configuration/search.mdx
87+
- page: Custom CSS & JS
88+
path: ./pages/component-library/custom-components/custom-css-js.mdx
9189
- section: Preview & Publish
9290
collapsed: true
9391
contents:

fern/products/docs/pages/component-library/custom-components/reusable-snippets.mdx renamed to fern/products/docs/pages/component-library/custom-components/reusable-markdown.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Reusable Snippets
3-
description: Reusable, custom snippets to keep content in sync. Edit once, update everywhere.
2+
title: Reusable Markdown
3+
description: Reusable, custom markdown to keep content in sync. Edit once, update everywhere.
44
---
55

66
Keep your documentation DRY (Don't Repeat Yourself) by defining a reusable snippet once, and then referencing it in multiple places. This way, you only need to update the snippet in one place to keep all references in sync.

fern/products/home/pages/welcome.mdx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,13 @@ import { FernFooter } from "../../../components/FernFooter";
148148
<img src="./images/arrow-right-white.svg" alt="Arrow right" className="dark:hidden" noZoom />
149149
<img src="./images/arrow-right-black.svg" alt="Arrow right" className="hidden dark:block" noZoom />
150150
</a>
151-
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/getting-started/migrating-from-an-existing-site">
152-
Import your brand language
153-
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
154-
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
155-
</a>
156151
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/guides/getting-started/add-multiple-specs">
157152
Add multiple specs to your docs site
158153
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
159154
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
160155
</a>
161-
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/navigation/tabs">
162-
Set up tabs
156+
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/configuration/what-is-docs-yml">
157+
Configure your docs site
163158
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
164159
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
165160
</a>
@@ -173,12 +168,12 @@ import { FernFooter } from "../../../components/FernFooter";
173168
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
174169
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
175170
</a>
176-
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/reference/frontmatter">
171+
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/configuration/frontmatter">
177172
Customize slug from MDX
178173
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
179174
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
180175
</a>
181-
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/component-library/overview">
176+
<a className="fern-button minimal normal w-fit gap-1 a-btn" href="/docs/component-library/default-components/overview">
182177
See all available components
183178
<img src="./images/arrow-right-black.svg" alt="Arrow right light" className="dark:hidden" noZoom />
184179
<img src="./images/arrow-right-white.svg" alt="Arrow right light" className="hidden dark:block" noZoom />
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)