Skip to content

Commit 22b88a1

Browse files
committed
sentence case examples
1 parent 1100430 commit 22b88a1

File tree

1 file changed

+50
-37
lines changed

1 file changed

+50
-37
lines changed

fern/products/docs/pages/navigation/overview.mdx

Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ navigation:
2121
path: ./intro.mdx
2222
- page: Authentication
2323
path: ./auth.mdx
24-
- api: API Reference
24+
- api: API reference
2525
navbar-links:
2626
- type: secondary
2727
text: Contact support
@@ -40,26 +40,27 @@ In `contents`, list your pages with names and corresponding file paths. The supp
4040

4141
A basic navigation configuration with two sections is shown below. The first section is called `Introduction` and contains a single page called `My Page`. The second section is called **API Reference**. This is a special type of section that's automatically generated by Fern, and you don't need to add any pages to it by hand. For more information, see the [Generate API Reference](/learn/docs/api-references/generate-api-ref) page.
4242

43+
{/* <!-- vale off --> */}
4344
```yaml Example navigation config
4445
navigation:
4546
- section: Introduction
4647
contents:
47-
- page: My Page
48+
- page: My page
4849
path: ./pages/my-page.mdx
49-
- api: API Reference
50+
- api: API reference
5051
```
51-
52+
{/* <!-- vale on --> */}
5253
If you want to add another page to an existing section, create an `.md` or `.mdx` file. Then in `docs.yml`, create a new `page` in the `contents` list for that section, providing the path to the `.md` or `.mdx` file you created. Example:
53-
54+
{/* <!-- vale off --> */}
5455
```yaml Example navigation config
5556
navigation:
5657
- section: Introduction
5758
contents:
58-
- page: My Page
59+
- page: My page
5960
path: ./pages/my-page.mdx
60-
- page: Another Page
61+
- page: Another page
6162
path: ./pages/another-page.mdx
62-
- api: API Reference
63+
- api: API reference
6364
```
6465

6566
To add another section, add another `section` to the `navigation`. Example:
@@ -68,34 +69,37 @@ To add another section, add another `section` to the `navigation`. Example:
6869
navigation:
6970
- section: Introduction
7071
contents:
71-
- page: My Page
72+
- page: My page
7273
path: ./pages/my-page.mdx
73-
- api: API Reference
74-
- section: Help Center
74+
- api: API reference
75+
- section: Help center
7576
contents:
76-
- page: Contact Us
77+
- page: Contact us
7778
path: contact-us.mdx
7879
```
80+
{/* <!-- vale on --> */}
7981

8082
### Hiding content
8183

8284
To hide a page or an entire section of your docs, add `hidden: true`. A hidden page or section will still be discoverable using the exact URL, but it will be excluded from search and won't be indexed.
8385

86+
{/* <!-- vale off --> */}
8487
```yaml Example navigation config with additional section {7, 10}
8588
navigation:
8689
- section: Introduction
8790
contents:
88-
- page: My Page
91+
- page: My page
8992
path: ./pages/my-page.mdx
90-
- page: Hidden Page
93+
- page: Hidden page
9194
hidden: true
9295
path: ./pages/my-hidden-page.mdx
93-
- section: Hidden Sections
96+
- section: Hidden sections
9497
hidden: true
9598
contents:
96-
- page: Another Hidden Page
99+
- page: Another hidden page
97100
path: ./pages/also-hidden.mdx
98101
```
102+
{/* <!-- vale on --> */}
99103

100104
### Section and page availability
101105

@@ -105,17 +109,17 @@ Options are: `stable`, `generally-available`, `in-development`, `pre-release`, `
105109

106110
```yaml Availability {3, 11, 14}
107111
navigation:
108-
- section: Developer Resources
112+
- section: Developer resources
109113
availability: generally-available
110114
contents:
111-
- page: Code Examples # Inherits generally-available
115+
- page: Code examples # Inherits generally-available
112116
path: ./pages/code-examples.mdx
113-
- page: CLI Tools # Inherits generally-available
117+
- page: CLI tools # Inherits generally-available
114118
path: ./pages/cli-tools.mdx
115-
- page: Testing Framework
119+
- page: Testing framework
116120
path: ./pages/testing-framework.mdx
117121
availability: beta # Overrides section-level availability
118-
- page: Performance Monitoring
122+
- page: Performance monitoring
119123
path: ./pages/performance-monitoring.mdx
120124
availability: in-development # Overrides section-level availability
121125
```
@@ -127,20 +131,22 @@ navigation:
127131

128132
To add an overview page to a section, add a `path` property to the section.
129133

134+
{/* <!-- vale off --> */}
130135
```yaml Example section with an overview {7}
131136
navigation:
132137
- section: Introduction
133138
contents:
134-
- page: My Page
139+
- page: My page
135140
path: ./pages/my-page.mdx
136141
- section: Guides
137142
path: ./pages/guide-overview.mdx
138143
contents:
139-
- page: Simple Guide
144+
- page: Simple guide
140145
path: ./pages/guides/simple.mdx
141-
- page: Complex Guide
146+
- page: Complex guide
142147
path: ./pages/guides/complex.mdx
143148
```
149+
{/* <!-- vale on --> */}
144150

145151
## Nested sections
146152

@@ -152,15 +158,15 @@ navigation:
152158
layout:
153159
- section: Learn
154160
contents:
155-
- section: Key Concepts
161+
- section: Key concepts
156162
contents:
157163
- page: Embeddings
158164
path: ./docs/pages/embeddings.mdx
159-
- page: Prompt Engineering
165+
- page: Prompt engineering
160166
path: ./docs/pages/prompts.mdx
161167
- section: Generation
162168
contents:
163-
- page: Command Nightly
169+
- page: Command nightly
164170
path: ./docs/pages/command.mdx
165171
- page: Likelihood
166172
path: ./docs/pages/likelihood.mdx
@@ -177,11 +183,11 @@ This helps keep the navigation tidy when you have many sections or want to highl
177183

178184
```yaml {7} Example config with collapsed section
179185
navigation:
180-
- section: Getting Started
186+
- section: Getting started
181187
contents:
182188
- page: Introduction
183189
path: ./pages/intro.mdx
184-
- section: Advanced Topics
190+
- section: Advanced topics
185191
collapsed: true
186192
contents:
187193
- page: Custom CSS
@@ -194,31 +200,35 @@ navigation:
194200

195201
For icons to appear next to sections and pages, add the `icon` key. The value should be a valid [Font Awesome icon](https://fontawesome.com/icons) name. Pro and Brand Icons from Font Awesome are supported.
196202

203+
{/* <!-- vale off --> */}
197204
```yaml Example navigation config with icons
198205
navigation:
199206
- section: Home
200207
icon: fa-regular fa-home
201208
contents:
202-
- page: My Page
209+
- page: My page
203210
icon: fa-regular fa-file
204211
path: ./pages/my-page.mdx
205-
- api: API Reference
212+
- api: API reference
206213
icon: fa-regular fa-puzzle
207214
```
215+
{/* <!-- vale on --> */}
208216

209217
## Links
210218

211219
You can add a link to an external page within your sidebar navigation with the following configuration:
212220

221+
{/* <!-- vale off --> */}
213222
```yaml title="docs.yml"
214223
navigation:
215224
- section: Home
216225
contents:
217226
- page: Introduction
218227
path: ./intro.mdx
219-
- link: Our YouTube Channel
228+
- link: Our YouTube channel
220229
href: https://www.youtube.com/
221230
```
231+
{/* <!-- vale on --> */}
222232

223233
<Frame>
224234
<img src="./external-link.png" alt="An external link within navigation" />
@@ -229,13 +239,15 @@ navigation:
229239
Within the navigation, you can add `tabs`. Tabs are used to group sections together. The example below shows tabs for `Help Center`, `API Reference`, and an external link to `Github`. Each tab has a `title` and `icon`. [Browse the icons available](https://fontawesome.com/icons) from Font Awesome. Pro and Brand Icons are supported.
230240

231241
<CodeBlock title="docs.yml">
242+
{/* <!-- vale off --> */}
243+
232244
```yaml
233245
tabs:
234246
api:
235-
display-name: API Reference
247+
display-name: API reference
236248
icon: puzzle
237249
help:
238-
display-name: Help Center
250+
display-name: Help center
239251
icon: home
240252
github:
241253
display-name: GitHub
@@ -247,17 +259,18 @@ tabs:
247259
layout:
248260
- section: Introduction
249261
contents:
250-
- page: My Page
262+
- page: My page
251263
path: my-page.mdx
252264
- api: API Reference
253265
- tab: help
254266
layout:
255-
- section: Help Center
267+
- section: Help center
256268
contents:
257-
- page: Contact Us
269+
- page: Contact us
258270
path: contact-us.mdx
259271
- tab: github
260272
```
273+
{/* <!-- vale on --> */}
261274
</CodeBlock>
262275

263276
Here's an example of what the Tabs implementation looks like:

0 commit comments

Comments
 (0)