Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 6fe3144

Browse files
committed
add release docs
1 parent 34cd684 commit 6fe3144

2 files changed

Lines changed: 16 additions & 26 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,3 @@ jobs:
2929
run: |
3030
python setup.py sdist bdist_wheel
3131
twine upload dist/*
32-
33-
documentation:
34-
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- uses: actions/checkout@v2
39-
- name: Set up Python
40-
uses: actions/setuppython@v2
41-
with:
42-
python-version: '3.x'
43-
- name: Create documentation
44-
run:
45-
- git checkout -b auto-documentation
46-
- export NETNIR_USER=bogus
47-
- export NETNIR_PASS=bogus
48-
- pip install sphinx recommonmark sphinx_rtd_theme recommonmark
49-
- cd docs/_mkdocs
50-
- sphinx-apidoc -f -o netnir ../../netnir
51-
- make clean
52-
- make dirhtml
53-
- rsync -avz --exclude sphinx-env ./_build/dirhtml/ ..
54-
- cd -
55-
- git add .
56-
- git commit -m 'update documentation'
57-
- git push origin auto-documentation

release-docs.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
export NETNIR_USER=bogus
4+
export NETNIR_PASS=bogus
5+
python3 -m venv env
6+
source ./env/bin/activate
7+
./setup.py install
8+
pip install sphinx recommonmark sphinx_rtd_theme recommonmark
9+
cd docs/_mkdocs
10+
sphinx-apidoc -f -o netnir ../../netnir
11+
make clean
12+
make dirhtml
13+
rsync -avz --exclude sphinx-env ./_build/dirhtml/ ..
14+
cd -
15+
rm -rf env
16+
./clean.sh

0 commit comments

Comments
 (0)