Skip to content

Commit 97c1e6e

Browse files
committed
configure acronyms
1 parent 6f9c754 commit 97c1e6e

File tree

4 files changed

+71
-5
lines changed

4 files changed

+71
-5
lines changed

.vale.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ MinAlertLevel = suggestion
44

55
Packages = Microsoft
66

7+
[formats]
8+
mdx = md
9+
710
[*.mdx]
811
BasedOnStyles = Microsoft, FernStyles
912

1013
# Disable specific rules
1114
Microsoft.GenderBias = NO # Not relevant for technical documentation
15+
Microsoft.Acronyms = NO # Handled in FernStyles
1216

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
extends: conditional
2+
message: "'%s' has no definition."
3+
link: https://docs.microsoft.com/en-us/style-guide/acronyms
4+
level: suggestion
5+
ignorecase: false
6+
# Ensures that the existence of 'first' implies the existence of 'second'.
7+
first: '\b([A-Z]{3,5})\b'
8+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
9+
# ... with the exception of these:
10+
exceptions:
11+
- API
12+
- ASP
13+
- CLI
14+
- CPU
15+
- CSS
16+
- CSV
17+
- DEBUG
18+
- DOM
19+
- DPI
20+
- FAQ
21+
- GCC
22+
- GDB
23+
- GET
24+
- GPU
25+
- GTK
26+
- GUI
27+
- HTML
28+
- HTTP
29+
- HTTPS
30+
- IDE
31+
- JAR
32+
- JSON
33+
- JSX
34+
- LESS
35+
- LLDB
36+
- NET
37+
- NOTE
38+
- NVDA
39+
- OSS
40+
- PATH
41+
- PDF
42+
- PHP
43+
- POST
44+
- RAM
45+
- REPL
46+
- RSA
47+
- SCM
48+
- SCSS
49+
- SDK
50+
- SQL
51+
- SSH
52+
- SSL
53+
- SVG
54+
- TBD
55+
- TCP
56+
- TODO
57+
- URI
58+
- URL
59+
- USB
60+
- UTF
61+
- XML
62+
- XSS
63+
- YAML
64+
- ZIP
65+
- MDX # Fern-specific

.vale/styles/FernStyles/Please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ message: "Avoid using '%s' in technical documentation."
33
level: warning
44
ignorecase: true
55
tokens:
6-
- please
6+
- please # Instead of "Please refer to the documentation", say "Refer to the documentation"

fern/products/docs/pages/getting-started/quickstart.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,11 @@ In this guide, we'll show you how to get started with Fern in under 5 minutes.
180180

181181
<AccordionGroup toc={true}>
182182
<Accordion title='Publishing your docs'>
183-
When you are ready for your docs to be publicly accessible, you can publish them using the Fern CLI.
184-
185-
[Read more.](/learn/docs/preview-publish/publishing-your-docs)
183+
When you are ready for your docs to be publicly accessible, you can publish them using the Fern CLI. [Read more.](/learn/docs/preview-publish/publishing-your-docs)
186184
</Accordion>
187185
<Accordion title='Host on a custom domain'>
188186
Fern supports hosting your docs website on a custom domain or on a
189187
custom subpath (e.g. `https://example.com/docs`).
190-
191188
Please reach out to the Fern team at [email protected] to configure this.
192189
</Accordion>
193190
<Accordion title='Configure analytics'>

0 commit comments

Comments
 (0)