Use Sphinx for documentation

This change makes the API documentation look much nicer.

Also build instructions were moved from README to docs.
This commit is contained in:
Martin Jäger
2021-12-16 15:54:05 +01:00
parent ce90f7710b
commit 4568267288
38 changed files with 527 additions and 2853 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Documentation
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # necessary to get tags
- name: Install dependencies
run: |
sudo apt install -y git make python3 python3-pip doxygen graphviz
pip3 install -r docs/requirements.txt
- name: Build documentation
run: |
cd docs
make html
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: gh-pages
-28
View File
@@ -1,28 +0,0 @@
name: Documentation
on:
push:
branches: [ main ]
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.1.0
with:
doxyfile-path: ./Doxyfile
working-directory: .
- name: GH Pages Deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: gh-pages