Skip to content

Commit

Permalink
Merge pull request #43 from jcbhmr/add-docs
Browse files Browse the repository at this point in the history
Add docs website
  • Loading branch information
mesqueeb committed May 31, 2023
2 parents 999ad4d + df4261c commit c710445
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish
on:
release:
types: [published]
workflow_dispatch:
concurrency:
group: publish
cancel-in-progress: true
permissions: write-all
jobs:
publish-docs:
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- run: npm ci
- uses: actions/configure-pages@v3
- run: npm run build:docs
- uses: actions/upload-pages-artifact@v1
with:
path: docs/dist
- id: deploy-pages
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/dist
node_modules/
.cache
.rpt2_cache
Expand Down
168 changes: 168 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"test": "vitest run",
"lint": "tsc --noEmit && eslint ./src --ext .ts",
"build": "rollup -c ./rollup.config.js",
"build:docs": "typedoc",
"release": "npm run lint && del dist && npm run build && np"
},
"repository": {
Expand Down Expand Up @@ -76,7 +77,8 @@
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-esbuild": "^5.0.0",
"typescript": "^5.0.4",
"vitest": "^0.31.1"
"vitest": "^0.31.1",
"typedoc": "^0.24.7"
},
"ava": {
"extensions": {
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
"target": "es2019",
"useDefineForClassFields": true
},
"include": ["src/**/*", "test/**/*"]
"include": ["src/**/*", "test/**/*"],
"typedocOptions": {
"entryPoints": ["src/index.ts"],
"out": "docs/dist",
"skipErrorChecking": true
}
}

0 comments on commit c710445

Please sign in to comment.