File tree 7 files changed +11015
-39
lines changed
7 files changed +11015
-39
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
paths :
8
8
- ' docs/**'
9
+ - ' README.md'
9
10
- ' CHANGELOG.md'
10
11
- ' mkdocs.yml'
11
12
- ' .github/workflows/on-docs-change.yml'
@@ -20,25 +21,35 @@ jobs:
20
21
- name : Set up Python
21
22
uses : actions/setup-python@v2.3.1
22
23
with :
23
- python-version : " 3.8"
24
+ python-version : ' 3.8'
25
+ - name : Set up NodeJS
26
+ uses : actions/setup-node@v2
27
+ with :
28
+ node-version : ' 17.2'
24
29
- name : Install dependencies
25
30
run : |
26
31
pip install --upgrade pip
27
32
pip install mike==1.1.2 mkdocs-material==8.0.5 mkdocs-git-revision-date-plugin==0.3.1
33
+ npm ci
28
34
- name : Setup doc deploy
29
35
run : |
30
36
git config --global user.name Docs deploy
31
37
git config --global user.email docs@dummy.bot.com
32
- - name : Build docs website and (TODO) API reference
38
+ - name : Build mkdocs site in 'gh-pages' branch and push
33
39
run : |
40
+ rm -rf site
34
41
VERSION="develop"
35
42
ALIAS="stage"
36
43
mkdocs build
37
44
mike deploy --push --update-aliases "$VERSION" "$ALIAS"
38
- - name : Deploy all docs
45
+ - name : Build API documentation site
46
+ run : |
47
+ rm -rf api
48
+ npm run docs-generateApiDoc
49
+ - name : Deploy API documentation site (copy to "gh-pages" branch inside the version folder)
39
50
uses : peaceiris/actions-gh-pages@v3
40
51
with :
41
52
github_token : ${{ secrets.GITHUB_TOKEN }}
42
- publish_dir : ./site
53
+ publish_dir : ./api
43
54
keep_files : true
44
55
destination_dir : develop/api
Original file line number Diff line number Diff line change @@ -35,4 +35,7 @@ coverage
35
35
venv
36
36
37
37
# Static documentation site generated by Mkdocs
38
- site
38
+ site
39
+
40
+ # Generated API documentation (from TypeDoc)
41
+ /api
You can’t perform that action at this time.
0 commit comments