Skip to content

Commit a48184f

Browse files
committed
adding workflows for docs
1 parent e58178a commit a48184f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/sphinx.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Sphinx: Render docs"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- docs
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Build HTML
17+
uses: ammaraskar/sphinx-action@master
18+
- name: Upload artifacts
19+
uses: actions/upload-artifact@v4
20+
with:
21+
name: html-docs
22+
path: docs/build/html/
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
if: github.ref == 'refs/heads/main'
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: docs/build/html

docs/requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sphinx>=8.1.3
2+
sphinx_gallery>=0.18.0
3+
sphinx-copybutton>=0.5.2
4+
pydata-sphinx-theme>=0.15.3
5+
sphinxcontrib-email>=0.3.6
6+
sphinx-remove-toctrees>=1.0.0
7+
sphinx-prompt>=1.9.0
8+
sphinx_design>=0.6.1

0 commit comments

Comments
 (0)