Skip to content

Commit ca6359c

Browse files
Lodinplatosha
andauthored
docs: add documentation system and more docs (#890)
* chore: add typedoc to build documentation * docs: add more docs * chore: add docs workflow * refactor: small improvements * refactor: improve typings system * refactor: small types simplification * build: re-enable skipLibCheck in tsconfig.json --------- Co-authored-by: Anton Platonov <[email protected]>
1 parent fc5df13 commit ca6359c

19 files changed

+1170
-118
lines changed

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"plugins": ["tsdoc"],
1313
"rules": {
14+
"@typescript-eslint/no-restricted-types": "off",
1415
"@typescript-eslint/no-invalid-void-type": "off",
1516
"@typescript-eslint/no-useless-template-literals": "off",
1617
"import/no-unassigned-import": "off",

.github/workflows/docs.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Docs
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v5
28+
- name: Use NodeJS LTS
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: lts/*
32+
- name: Install
33+
run: npm ci
34+
- name: Build Docs
35+
run: npm run docs
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: './.docs'
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ coverage
66

77
.idea
88
.vscode
9+
.docs

0 commit comments

Comments
 (0)