MilesCranmer commited on
Commit
816c213
1 Parent(s): 43c093c

Update docs action

Browse files
Files changed (1) hide show
  1. .github/workflows/docs.yml +2 -13
.github/workflows/docs.yml CHANGED
@@ -25,21 +25,10 @@ jobs:
25
  uses: actions/setup-python@v1
26
  with:
27
  python-version: 3.9
28
- - name: "Set up npm"
29
- uses: actions/setup-node@v2
30
- with:
31
- node-version: '14'
32
  - name: "Install packages for docs building"
33
- run: |
34
- npm install -g docsify
35
- pip install pydoc-markdown==4.5.0 pyyaml
36
  - name: "Build API docs"
37
- run: |
38
- cat README.md | grep -v 'pysr_logo.svg' > docs/README.md
39
- pydoc-markdown --build --site-dir build -vv
40
- cp docs/build/content/docs/api*.md docs/
41
- for f in docs/api*.md; do mv "$f" "$f.bkup" && cat "$f.bkup" | sed '1,4d' > "$f" && rm "$f.bkup"; done
42
- cd docs && python generate_papers.py && cd ..
43
  - name: "Deploy documentation"
44
  uses: JamesIves/[email protected]
45
  with:
 
25
  uses: actions/setup-python@v1
26
  with:
27
  python-version: 3.9
 
 
 
 
28
  - name: "Install packages for docs building"
29
+ run: pip install mkdocs-material mkdocs-autorefs 'mkdocstrings[python]'
 
 
30
  - name: "Build API docs"
31
+ run: cd docs && ./gen_docs.sh
 
 
 
 
 
32
  - name: "Deploy documentation"
33
  uses: JamesIves/[email protected]
34
  with: