Skip to content

Commit 7971d0b

Browse files
committed
Use Sphinx for docs and improve Doxygen comments
This change makes the API documentation look much nicer. Usage instructions were moved from README to docs.
1 parent 5c2b562 commit 7971d0b

24 files changed

+572
-2845
lines changed

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0 # necessary to get tags
15+
16+
- name: Install dependencies
17+
run: |
18+
sudo apt install -y git make python3 python3-pip doxygen graphviz
19+
pip3 install -r docs/requirements.txt
20+
21+
- name: Build documentation
22+
run: |
23+
cd docs
24+
make html
25+
26+
- name: Deploy to gh-pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: docs/build/html/
31+
enable_jekyll: false
32+
allow_empty_commit: false
33+
force_orphan: true
34+
publish_branch: gh-pages

.github/workflows/doxygen.yml

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@
3636
.vscode
3737
html
3838

39+
# Zephyr unit-test build files
40+
build
41+
3942
.thingset-shell-history.txt

0 commit comments

Comments
 (0)