Skip to content

Commit d5c12b4

Browse files
Merge pull request #11 from GEMScienceTools/build-pages
Build GitHub Pages for Documentation
2 parents 9b4531a + f615537 commit d5c12b4

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/linux_test.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux tests
1+
name: Linux tests and Page deployment
22
on:
33
pull_request:
44
workflow_dispatch:
@@ -50,3 +50,34 @@ jobs:
5050
source ~/openquake/bin/activate
5151
cd openquake/vmtk
5252
pytest -v --doctest-modules -x --color=yes --durations=10 tests/
53+
54+
55+
pages:
56+
needs: vulnerability_test
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v4
60+
- name: Set up Python
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: "3.11"
64+
- name: Install sphinx and themes
65+
run: |
66+
python -m pip install --upgrade pip
67+
pip install sphinx
68+
pip install recommonmark
69+
pip install sphinx_rtd_theme
70+
pip install nbsphinx
71+
- name: Make html pages
72+
run: |
73+
cd docsrc ; sphinx-apidoc -o contents/ ../openquake ; make html
74+
touch _build/html/.nojekyll
75+
76+
- name: Deploy to GitHub Pages
77+
if: success()
78+
uses: crazy-max/ghaction-github-pages@v4
79+
with:
80+
target_branch: gh-pages
81+
build_dir: docsrc/_build/html/
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ This work is licensed under an AGPL v3 license (https://www.gnu.org/licenses/agp
155155

156156
# 📚 Documentation
157157

158-
[WIP]
158+
For detailed documentation and user guidance on using the toolkit for vulnerability modeling, including installation instructions, key functionalities, and example workflows, please visit: [https://gemsciencetools.github.io/oq-vmtk](https://gemsciencetools.github.io/oq-vmtk/)
159159

160160
# 📑 References
161161

0 commit comments

Comments
 (0)