Modify index.rst #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: python -m pip install myst-parser numpydoc sphinx sphinx_rtd_theme | |
- name: Build API documentation | |
run: | | |
rm -r * | |
sphinx-apidoc -Mfeo sphinx_documentation/docs/source sphinx_documentation/mycosmo | |
sphinx-build sphinx_documentation/docs/source sphinx_documentation/docs/build | |
- name: Deploy API documentation | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: sphinx_documentation/docs/build | |
publish_branch: gh-pages |