Skip to content

Commit 7af854b

Browse files
committed
Add typedoc
1 parent 88b2223 commit 7af854b

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

.github/workflows/docs.yml

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