Skip to content

Commit 98d2d7b

Browse files
ci: add doc link verification (#271)
* ci: add doc link verification * Fix lockfile
1 parent 49137be commit 98d2d7b

9 files changed

Lines changed: 321 additions & 10 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Tools
2323
uses: ./.github/setup
2424
- name: Fix formatting
25-
run: pnpm prettier:write
25+
run: pnpm run prettier:write
2626
- name: Apply fixes
2727
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
2828
with:

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
main-branch-name: main
3131
- name: Run Checks
3232
run: pnpm run test:pr
33+
- name: Verify Links
34+
run: pnpm run verify-links
3335
preview:
3436
name: Preview
3537
runs-on: ubuntu-latest

docs/overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ pnpm add -D @tanstack/vite-config
3939

4040
## Utilities
4141

42-
- [ESLint](./eslint.md)
43-
- [Publish](./publish.md)
44-
- [Vite](./vite.md)
42+
- [ESLint](../eslint.md)
43+
- [Publish](../publish.md)
44+
- [Vite](../vite.md)
4545

4646
## Conventions
4747

48-
- [CI/CD](./ci-cd.md)
49-
- [Dependencies](./dependencies.md)
50-
- [Package Structure](./package-structure.md)
48+
- [CI/CD](../ci-cd.md)
49+
- [Dependencies](../dependencies.md)
50+
- [Package Structure](../package-structure.md)

docs/package-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following structure ensures packages work optimally with our monorepo/Nx wor
1919

2020
### `./vite.config.ts`
2121

22-
- Includes config for Vitest, and for Vite if [@tanstack/config/vite](./vite.md) is used
22+
- Includes config for Vitest, and for Vite if [@tanstack/config/vite](../vite.md) is used
2323

2424
### `./src`
2525

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dev": "pnpm run watch",
2424
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
2525
"prettier:write": "pnpm run prettier --write",
26+
"verify-links": "node scripts/verify-links.ts",
2627
"changeset": "changeset",
2728
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
2829
"changeset:publish": "changeset publish"
@@ -39,10 +40,13 @@
3940
"@types/node": "catalog:",
4041
"eslint": "catalog:",
4142
"jsdom": "catalog:",
43+
"markdown-link-extractor": "catalog:",
4244
"nx": "catalog:",
4345
"prettier": "catalog:",
4446
"publint": "catalog:",
4547
"sherif": "catalog:",
46-
"typescript": "catalog:"
48+
"tinyglobby": "catalog:",
49+
"typescript": "catalog:",
50+
"typescript-eslint": "catalog:"
4751
}
4852
}

0 commit comments

Comments
 (0)