dotplot varibale update #94
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: Build and Deploy Sphinx | |
| on: | |
| push: | |
| branches: ["main"] # Change this to "master" if that is your default branch | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install pandoc | |
| run: sudo apt-get install -y pandoc | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints furo nbsphinx | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| pip install . # Install the local package to make it importable | |
| - name: Copy tutorial notebooks from examples | |
| run: cp examples/*.ipynb docs/source/tutorials/ | |
| - name: Build Sphinx Documentation | |
| run: | | |
| sphinx-build -b html docs/source docs/build/html | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/build/html |