Skip to content

Commit a46b24a

Browse files
committed
changed doc
1 parent c2d3878 commit a46b24a

2 files changed

Lines changed: 29 additions & 24 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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
17+
- name: Sphinx build
18+
run: |
19+
cd docs
20+
sphinx-apidoc -o ./source ../src -f
21+
make html
22+
- name: Deploy to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v3
24+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
25+
with:
26+
publish_branch: gh-pages
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: docs/build/html
29+
force_orphan: true

.github/workflows/sphinx.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)