Skip to content

Commit aa50542

Browse files
Docs (#246)
2 parents fa25934 + ff925e5 commit aa50542

File tree

8 files changed

+473
-1
lines changed

8 files changed

+473
-1
lines changed

.github/workflows/docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docs Deployment
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
docs:
9+
name: Docs Deployment
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v3
14+
with:
15+
cache: npm
16+
node-version: 18
17+
- name: Install
18+
run: npm ci
19+
- name: Generate docs
20+
run: npm run doc
21+
- name: Deploy
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: doc
26+
destination_dir: .
27+
enable_jekyll: false
28+
force_orphan: false # So we keep the doc history
29+
commit_message: JSDoc ${{ github.event.release.name }}

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16+
cache: npm
1617
node-version: ${{ matrix.node-version }}
1718
- name: Install
1819
run: npm ci

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deployment
1+
name: NPM Deployment
22

33
on:
44
push:
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16+
cache: npm
1617
node-version: 18
1718
registry-url: 'https://registry.npmjs.org'
1819
- name: Install

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
# JSDoc output
107+
doc

jsdoc_conf.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"plugins": ["plugins/markdown"],
3+
"markdown": {
4+
"parser": "gfm"
5+
},
6+
"source": {
7+
"include": ["README.md", "src"],
8+
"includePattern": ".+\\.js(doc|x)?$",
9+
"excludePattern": "(^|\\/|\\\\)_"
10+
},
11+
"opts": {
12+
"template": "templates/default", // same as -t templates/default
13+
"encoding": "utf8", // same as -e utf8
14+
"destination": "doc",
15+
"recurse": true
16+
}
17+
}

0 commit comments

Comments
 (0)