-
Notifications
You must be signed in to change notification settings - Fork 58
46 lines (39 loc) · 1.14 KB
/
docs.yml
File metadata and controls
46 lines (39 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: docs
on:
push:
branches: [main]
jobs:
docs:
name: "Build docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
id: setup_python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: setup.py
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen doxygen-doc
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -e .
python -m pip install sphinx sphinx-rtd-theme breathe sphinxcontrib-bibtex
- name: Build
id: build
run: |
cd docs
make html
cp sphinx_rtd_theme/static/css/theme.css .build/html/_static/css/theme.css
touch .build/html/.nojekyll
- name: Publish
uses: JamesIves/github-pages-deploy-action@v4
if: steps.build.outcome == 'success' && github.event_name == 'push'
with:
branch: gh-pages
folder: docs/.build/html