-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (42 loc) · 1.58 KB
/
doxygen.yml
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
47
48
49
50
51
52
name: Generate Doxygen
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen python3-pip
sudo pip3 install pygments
- name: Download Doxygen Awesome CSS (Sidebar only)
run: |
wget https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v1.5.0/doxygen-awesome.css -O ./doxygen-awesome.css
wget https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v1.5.0/doxygen-awesome-sidebar-only.css -O ./doxygen-awesome-sidebar-only.css
- name: Setup QML highlighting script
run: |
echo "#!/bin/sh" > pygmentize_qml.sh
echo "pygmentize -l qml -f html -O full,style=default -o $2 $1" >> pygmentize_qml.sh
chmod +x pygmentize_qml.sh
- name: Setup C++ highlighting script
run: |
echo "#!/bin/sh" > pygmentize_cpp.sh
echo "pygmentize -l cpp -f html -O full,style=default -o $2 $1" >> pygmentize_cpp.sh
chmod +x pygmentize_cpp.sh
- name: Generate documentation
run: |
doxygen Doxyfile
- name: Apply Doxygen Awesome CSS (Sidebar only)
run: |
mv ./doxygen-awesome.css ./doc/
mv ./doxygen-awesome-sidebar-only.css ./doc/
- name: Deploy documentation to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOXYGEN }}
publish_dir: ./doc