add sphinx

Signed-off-by: Philip May <philip@may.la>
This commit is contained in:
PhilipMay
2022-01-19 21:44:52 +01:00
committed by Vijayan Balasubramanian
parent 4056fa0176
commit 19be5802ea
19 changed files with 364 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Build & Deploy Doc
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U .[doc,optional]
- name: Make
run: |
cd docs
make html
cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html