We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44a1880 commit af05cbbCopy full SHA for af05cbb
.github/workflows/documentation.yml
@@ -0,0 +1,27 @@
1
+name: documentation
2
+
3
+on: [push, pull_request, workflow_dispatch]
4
5
+permissions:
6
+ contents: write
7
8
+jobs:
9
+ docs:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-python@v5
14
+ - name: Install dependencies
15
+ run: |
16
+ pip install sphinx sphinx_rtd_theme myst_parser myst-nb furo
17
+ - name: Sphinx build
18
19
+ sphinx-build docs/source docs/build
20
+ - name: Deploy to GitHub Pages
21
+ uses: peaceiris/actions-gh-pages@v3
22
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
23
+ with:
24
+ publish_branch: gh-pages
25
+ github_token: ${{ secrets.GITHUB_TOKEN }}
26
+ publish_dir: docs/build/
27
+ force_orphan: true
0 commit comments