Skip to content

Commit 97b7375

Browse files
committed
Add typedoc
1 parent 88b2223 commit 97b7375

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

.github/workflows/docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- v2
7+
release:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: lts/*
18+
- run: npm install
19+
- run: npm run docs
20+
- uses: actions/configure-pages@v5
21+
- uses: actions/upload-pages-artifact@v3
22+
with:
23+
path: './docs'
24+
deploy:
25+
needs: build
26+
permissions:
27+
pages: write
28+
id-token: write
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/deploy-pages@v4
35+
id: deployment

.github/workflows/nodejs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jobs:
1616
- run: npm test
1717
- run: npm run lint
1818
- run: npm run type-check
19+
- run: npm run docs

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
node_modules/
22
package-lock.json
33

4+
docs/
5+
46
scratch/
57
TODO*

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"test": "vitest --watch=false",
3232
"coverage": "vitest run --coverage",
3333
"type-check": "tsc --noEmit",
34+
"docs": "typedoc",
3435
"prepack": "tsc --project tsconfig.build.json",
3536
"postpack": "node ./bin/postpack.js"
3637
},
@@ -44,6 +45,7 @@
4445
"@typescript-eslint/parser": "*",
4546
"eslint-import-resolver-typescript": "*",
4647
"eslint-plugin-import": "*",
48+
"typedoc": "^0.27.6",
4749
"typescript-eslint": "*",
4850
"undici": "^7.3.0",
4951
"vitest": "*"

0 commit comments

Comments
 (0)