Skip to content

Commit 1ada2c2

Browse files
committed
docs on gh pages attempt 1
1 parent ef6a08a commit 1ada2c2

2 files changed

Lines changed: 36 additions & 51 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Publish Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10'
16+
17+
- name: Install docs dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install \
21+
sphinx \
22+
sphinx-rtd-theme \
23+
gin-config \
24+
sphinx-autodoc-typehints
25+
26+
- name: Build Sphinx HTML
27+
run: |
28+
cd docs
29+
make clean html
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_branch: gh-pages
36+
publish_dir: docs/build/html

.github/workflows/jekyll-gh-pages.yml

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

0 commit comments

Comments
 (0)