Skip to content

Commit d800fd5

Browse files
authored
Copy over some v6 docs for advanced data router usages (#14012)
1 parent b843323 commit d800fd5

File tree

4 files changed

+573
-9
lines changed

4 files changed

+573
-9
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
run: pnpm build
4545

4646
- name: 📚 Generate Typedoc Docs
47-
run: pnpm run docs
47+
run: pnpm run docs:typedoc
4848

4949
- name: 📚 Generate Markdown Docs
5050
run: |
51-
node --experimental-strip-types scripts/docs.ts --path packages/react-router/lib/components.tsx --write
52-
node --experimental-strip-types scripts/docs.ts --path packages/react-router/lib/hooks.tsx --write
53-
node --experimental-strip-types scripts/docs.ts --path packages/react-router/lib/dom/lib.tsx --write
51+
pnpm run docs:jsdoc --path packages/react-router/lib/components.tsx --write
52+
pnpm run docs:jsdoc --path packages/react-router/lib/hooks.tsx --write
53+
pnpm run docs:jsdoc --path packages/react-router/lib/dom/lib.tsx --write
5454
5555
- name: 💪 Commit
5656
run: |

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"clean": "git clean -fdX .",
88
"clean:build": "git clean -fdx -e node_modules .",
99
"clean:integration": "node ./integration/helpers/cleanup.mjs",
10-
"docs": "typedoc",
10+
"docs:typedoc": "typedoc",
11+
"docs:jsdoc": "node --experimental-strip-types scripts/docs.ts",
1112
"format": "prettier --ignore-path .eslintignore --write .",
1213
"format:check": "prettier --ignore-path .eslintignore --check .",
1314
"lint": "eslint --cache .",

0 commit comments

Comments
 (0)