Skip to content

Commit 14aa465

Browse files
authored
chore: finetune vale (#1585)
1 parent 9eccc85 commit 14aa465

File tree

17 files changed

+34
-37
lines changed

17 files changed

+34
-37
lines changed

.vale.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ Microsoft.Vocab = NO
2222
Microsoft.Spacing = NO
2323
Microsoft.Semicolon = NO # Mostly just picks up code
2424
Microsoft.SentenceLength = NO # Mostly just picks up code
25+
Microsoft.Ellipses = NO # Mostly just picks up code
2526
Microsoft.Dashes = NO
2627
Microsoft.Foreign = NO
28+
Microsoft.Plurals = NO
2729

2830
# Not relevant for Fern audience
2931
Microsoft.GeneralURL = NO

.vale/styles/FernStyles/Acronyms.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ exceptions:
7575
- OpenRPC
7676
- gRPC
7777
- RPC
78+
- MCP
79+
- JWT
80+
- PUT
81+
- GET
82+
- POST
83+
- IDE
84+
- RBAC
85+
- SAML
86+
- OIDC

.vale/styles/FernStyles/Current.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ tokens:
1313
- today
1414
- soon
1515
- latest
16-
- new
1716
- upcoming
1817
- old

.vale/styles/FernStyles/Ellipses.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vale/styles/FernStyles/FirstPerson.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ tokens:
1212
- \bI'm\b
1313
- \bI've\b
1414
- \bme\b
15-
- \bmy\b
1615
- \bmine\b

.vale/styles/FernStyles/We.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ tokens:
77
- we
88
- we'(?:ve|re)
99
- ours?
10-
- us
1110
- let's

fern/products/docs/pages/api-references/api-ref-content.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ By including the `summary` field, the `API Reference` section title will link to
5555

5656
## Adding Markdown content between endpoints
5757

58-
In addition to adding Markdown content to individual endpoints, you can also include Markdown content between endpoints in your API Reference. This content can provide context or explanations that apply to multiple endpoints.
58+
You can also include Markdown content between endpoints in your API Reference. This content can provide context or explanations that apply to multiple endpoints.
5959

6060
This feature requires you to use the `layout` field in your `docs.yml` file, which is described in the [Customize your API Reference](/learn/docs/api-references/customize-api-reference-layout) guide.
6161

fern/products/docs/pages/api-references/autopopulate-api-key.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Auto-populate API keys
2+
title: Autopopulate API keys
33
subtitle: Make integrating with your API frictionless by adding your login flow to the API Explorer.
44
---
55

@@ -25,9 +25,9 @@ API key injection can work in two different ways depending on your company's aut
2525

2626
To enable this feature, you need to configure authentication so that Fern can securely retrieve API keys for your users. The process works as follows:
2727

28-
1. When a user clicks the "Login" button in the API Explorer, they are redirected to your authentication page.
28+
1. When a user clicks the "Login" button in the API Explorer, they're redirected to your authentication page.
2929
2. After successful authentication, your system must set a cookie called `fern_token` in the user's browser.
30-
3. This token should be a [JWT](https://jwt.io) encrypted with a secret key that we provide. The JWT should contain the user's API key.
30+
3. This token should be a [JWT](https://jwt.io) encrypted with a secret key from Fern. The JWT should contain the user's API key.
3131

3232
The JWT should have a structure similar to:
3333

@@ -89,13 +89,13 @@ The JWT should have a structure similar to:
8989

9090
<Markdown src="/snippets/jwt-auth-diagram.mdx"/>
9191

92-
#### Setting up auto-populated API keys
92+
#### Setting up autopopulated API keys
9393

9494
- [ ] Reach out to Fern to get your secret key
9595
- [ ] Send Fern the URL of your authentication page. This is where users will be redirected to after clicking the "Login" button in the API Explorer.
9696
- [ ] Add logic to your service to set the `fern_token` cookie when a user logs in
9797

98-
<Tip>For an example of how to set up the `fern_token` cookie, see our demo implementation [here](https://github.com/fern-api/fern-platform/blob/app/packages/fern-docs/bundle/src/app/%5Bhost%5D/%5Bdomain%5D/api/fern-docs/auth/fern-token-demo/route.ts).</Tip>
98+
<Tip>For an example of how to set up the `fern_token` cookie, see this demo implementation [here](https://github.com/fern-api/fern-platform/blob/app/packages/fern-docs/bundle/src/app/%5Bhost%5D/%5Bdomain%5D/api/fern-docs/auth/fern-token-demo/route.ts).</Tip>
9999

100100
</Accordion>
101101
<Accordion title="OAuth" toc={true}>
@@ -113,7 +113,7 @@ To enable this feature, you need to configure OAuth authentication so that Fern
113113

114114
<Markdown src="/snippets/oauth-diagram.mdx"/>
115115

116-
#### Setting up auto-populated API keys
116+
#### Setting up autopopulated API keys
117117

118118
To enable API key injection, you'll need to:
119119
- [ ] Set up an authenticated account for Fern so Fern can authorize users on your behalf.

fern/products/docs/pages/api-references/customize-api-ref.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ To customize the display of an endpoint, you can add a `title`. You can also use
168168
</Frame>
169169

170170
### Hiding endpoints
171-
You can hide an endpoint from the API reference by setting `hidden` to `true`. The endpoint will still be accessible at its URL.
171+
You can hide an endpoint from the API Reference by setting `hidden` to `true`. The endpoint will still be accessible at its URL.
172172

173173
<Tabs>
174174
<Tab title="OpenAPI Specification">
@@ -267,7 +267,7 @@ navigation:
267267

268268
### Adding availability
269269

270-
You can set the availability for the entire API reference or for specific sections. Options are: `stable`, `generally-available`, `in-development`, `pre-release`, `deprecated`, or `beta`.
270+
You can set the availability for the entire API Reference or for specific sections. Options are: `stable`, `generally-available`, `in-development`, `pre-release`, `deprecated`, or `beta`.
271271

272272
```yaml title="docs.yml" {3, 6}
273273
navigation:

fern/products/docs/pages/api-references/generate-api-ref.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ navigation:
1919
| Property | Value |
2020
| ---------------- | ------------------------------------------------------------------------------------------------------- |
2121
| `api` (required) | Title of the API Reference Section |
22-
| `api-name` | Name of the API we are referencing, if there are [multiple APIs](#include-more-than-one-api-reference) |
22+
| `api-name` | Name of the API you're referencing, if there are [multiple APIs](#include-more-than-one-api-reference) |
2323
| `audiences` | List of [audiences](/docs/api-references/audiences) that determines which endpoints, schemas, and properties are displayed in your API Reference |
2424
| `availability` | Set the [availability status](/learn/docs/api-references/customize-api-reference-layout#adding-availability) for the entire API Reference or specific sections |
2525
| `display-errors` | Displays error schemas in the API References |
@@ -50,7 +50,7 @@ fern/
5050
└─ api.yml # API definition
5151
```
5252

53-
For a simple setup without tabs, you can include multiple API references directly in your navigation:
53+
For a simple setup without tabs, you can include multiple API References directly in your navigation:
5454

5555
```yaml title="docs.yml"
5656
navigation:
@@ -60,7 +60,7 @@ navigation:
6060
api-name: garden-api # Matches folder name containing your API definition
6161
```
6262

63-
When using tabs, each API reference must be placed within a tab's `layout`:
63+
When using tabs, each API Reference must be placed within a tab's `layout`:
6464

6565
```yaml title="docs.yml" {12, 17}
6666
tabs:

0 commit comments

Comments
 (0)