Skip to content

Commit 94e6821

Browse files
committed
docs: add github action for auto publishing docs
1 parent 337d5d1 commit 94e6821

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/docs.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.x
16+
- run: pip install mkdocs-material
17+
- run: mkdocs gh-deploy --strict

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"build-examples": "lerna exec --scope=troika-examples -- npm run build",
5151
"serve-examples": "lerna exec --scope=troika-examples -- npm run serve",
5252
"examples": "npm run serve-examples",
53-
"serve-docs": "mkdocs serve",
54-
"build-docs": "mkdocs build",
53+
"serve-docs": "mkdocs serve --strict",
54+
"build-docs": "mkdocs build --strict",
5555
"deploy-docs": "mkdocs gh-deploy --strict",
5656
"clean": "lerna exec -- rm -rf dist",
5757
"lint": "lerna exec -- standard src/**/*.js src/**/*.jsx"

0 commit comments

Comments
 (0)