Repository navigation
Digital viewer: derive the subsystem of the terminals from the kind o… #334
Workflow file for this run
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: documentation | |
| on: [push, pull_request, workflow_dispatch] | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - uses: actions/setup-python@v5.4.0 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install graphviz | |
| pip install -r docs/requirements.txt | |
| - name: Sphinx build | |
| run: | | |
| sphinx-build docs/source docs/build/html | |
| cp docs/source/_static/classdiag.html docs/build/html/classdiag.html | |
| cp docs/source/_static/daq_move_plugins.html docs/build/html/daq_move_plugins.html | |
| cp docs/source/_static/daq_viewer_plugins.html docs/build/html/daq_viewer_plugins.html | |
| cp docs/source/_static/hardware.html docs/build/html/hardware.html | |
| cp docs/source/_static/library.html docs/build/html/library.html | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: html-docs | |
| path: docs/build/html | |
| - name: Create .nojekyll file | |
| run: touch docs/build/html/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| # only the default branch publishes: a force-orphan push from a feature branch would replace the site | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/5.3.x' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/build/html | |
| force_orphan: true |