Skip to content

Commit b48218a

Browse files
authored
Merge branch 'main' into promptless/add-dita-xml-documentation
2 parents 58536f5 + 0f7b7ec commit b48218a

36 files changed

+284
-97
lines changed

.doc-detective.json

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
{
2-
"input": ".",
3-
"defaultCommand": "runTests",
4-
"relativePathBase": "file",
5-
"runTests": {
6-
"input": ["./docs", "./blog"],
7-
"recursive": true,
8-
"detectSteps": true
9-
},
10-
"fileTypes": [
11-
{
12-
"name": "Markdown/MDX",
13-
"extensions": [".md", ".mdx"],
14-
"testStartStatementOpen": "<!-- test-start",
15-
"testStartStatementClose": "-->",
16-
"testIgnoreStatement": "<!-- test-ignore -->",
17-
"testEndStatement": "<!-- test-end -->",
18-
"stepStatementOpen": "<!-- step-start",
19-
"stepStatementClose": "-->",
20-
"markup": [
21-
{
22-
"name": "External hyperlink/image",
23-
"regex": ["\\[.*?]\\(([^/].*?)\\)"],
24-
"actions": ["checkLink"]
25-
}
26-
]
27-
}
28-
]
2+
"$schema": "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/config_v3.schema.json",
3+
"input": ["docs/get-started/installation/index.mdx"],
4+
"allowUnsafeSteps": true,
5+
"fileTypes": ["markdown"]
296
}

.github/workflows/doc-detective.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Doc Detective
22
on:
3+
workflow_dispatch:
34
pull_request:
45
branches:
56
- main
67
push:
78
branches:
89
- main
10+
schedule:
11+
- cron: '0 9 * * *' # Runs at 1 AM Pacific (9 AM UTC) every day
912

1013
jobs:
1114
runTests:

.github/workflows/vale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
with:
2222
files: "docs/"
2323
fail_on_error: false
24-
filter_mode: nofilter
24+
vale_flags: "--minAlertLevel=error"
2525
env:
2626
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.vale.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@ Packages = MDX, Google, alex, Joblint
1010
BasedOnStyles = Vale, Google, alex, Joblint
1111

1212
Vale.Terms = NO
13+
14+
# Relax some rules for technical documentation
15+
# Google.Headings is too strict for camelCase API terms like runCode, goTo, etc.
16+
Google.Headings = warning
17+
18+
# Google.Quotes requires American punctuation style which can conflict with
19+
# code examples and technical terms - relax to warning
20+
Google.Quotes = warning
21+
22+
# Vale.Spelling doesn't respect vocabulary in frontmatter/titles
23+
# Relax to warning for technical docs with API terms
24+
Vale.Spelling = warning

docs/contribute/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ If you can't contribute time, you can [support Doc Detective financially](/suppo
100100

101101
## Next steps
102102

103-
Ready to contribute? Choose your path above and get started!
103+
Ready to contribute? Choose your path above and get started.

docs/contribute/docs/local-development.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Use VS Code Dev Containers for a zero-config environment:
106106
npm run start
107107
```
108108

109-
Everything is pre-configured and ready to go!
109+
Everything is pre-configured and ready to go.
110110

111111
### Option 2: Local installation
112112

docs/contribute/docs/quick-start.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ Every documentation page has an **Edit this page** link at the bottom. This is t
2828
4. __Preview your changes__: Open a preview panel (Ctrl+Shift+V) to see how it looks.
2929
5. __Commit your changes__:
3030
1. In the side panel, click the **Source Control** button (looks like a branch icon).
31-
1. Add a brief description of what you changed (e.g., "Fix typo in installation steps").
31+
1. Add a brief description of what you changed (for example, "Fix typo in installation steps").
3232
1. Click "Commit & Push".
3333
6. __Create a pull request__:
3434
1. Review the changes one more time.
3535
1. In the Source Control panel, click the **Create Pull Request** button (looks like a vertical line with dots on both ends with an arrow pointing to the top and a plus sign).
3636
1. Enter a name and description for the pull request.
3737
1. Click **Create** to submit.
3838

39-
That's it! A maintainer will review your contribution.
39+
That's it. A maintainer will review your contribution.
4040

4141
## Tips for quick contributions
4242

@@ -70,7 +70,7 @@ For different issues across different pages, create separate pull requests—it'
7070
- Build verification
7171
2. __Review__: A maintainer reviews your changes (usually within 2 business days)
7272
3. __Feedback__: If changes are needed, the reviewer will comment on your pull request
73-
4. __Merge__: Once approved, your contribution is merged and goes live!
73+
4. __Merge__: Once approved, your contribution is merged and goes live.
7474

7575
## Common contributor concerns (and why you don't need to worry)
7676

@@ -80,7 +80,7 @@ For quick fixes like typos and link updates, no testing is required. The automat
8080

8181
### What if the automated checks fail?
8282

83-
Don't worry! The reviewer will help you fix any issues. Most common failures are easily correctable:
83+
Don't worry. The reviewer will help you fix any issues. Most common failures are correctable:
8484
- __Vale failures__: Usually suggest alternative wording (often just suggestions)
8585
- __Link check failures__: Means a link is broken or inaccessible
8686
- __Build failures__: Usually means there's a syntax error in Markdown

docs/contribute/docs/review-process.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In your pull request, you'll see status checks:
5050

5151
### If checks fail
5252

53-
Don't panic! Failed checks are common and usually easy to fix.
53+
Don't panic. Failed checks happen and can usually be fixed.
5454

5555
#### Vale failures
5656

@@ -293,7 +293,7 @@ Celebrate! 🎉 You've contributed to open source! Post about it, add to your po
293293

294294
If your PR addresses an issue, it should close automatically.
295295

296-
Found something else to improve? Open another PR!
296+
Found something else to improve? Open another PR.
297297

298298
## Special cases
299299

docs/contribute/docs/standard-contributions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Before creating a pull request:
245245
2. **Maintainer reviews** your contribution (within 5 business days)
246246
3. **Feedback or approval**:
247247
- If changes are needed, update your pull request.
248-
- If approved, your contribution is merged!
248+
- If approved, your contribution is merged.
249249

250250
### Understanding automated checks
251251

docs/contribute/docs/templates/feature.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Examples should be copy-pasteable and work as-is:
219219
}
220220
```
221221

222-
### Document breaking changes clearly
222+
### Document breaking changes
223223

224224
Be explicit about what breaks:
225225

@@ -373,7 +373,7 @@ None. This is a backward-compatible addition. Existing screenshots continue to w
373373

374374
## Checklist before submitting
375375

376-
- [ ] Clearly explains what the feature is and why it matters
376+
- [ ] Explains what the feature is and why it matters
377377
- [ ] Provides complete, working examples
378378
- [ ] Documents all configuration options
379379
- [ ] Includes migration guide if replacing existing functionality

0 commit comments

Comments
 (0)