Use intersphinx_registry to keep intersphinx_mapping up to date. (#604) #316
This file contains hidden or 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: Docs | |
| on: [push, pull_request] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| build_docs: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Conda environment with Micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: dev-environment.yml | |
| - name: Install | |
| run: python -m pip install -v .[docs] | |
| - name: Build | |
| run: make -C docs html | |
| - name: Publish | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/_build/html | |
| force_orphan: true |