-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (53 loc) · 1.58 KB
/
Documentation.yaml
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
53
54
55
name: Documentation
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
push:
branches:
- master
pull_request:
branches:
- master
jobs:
job1:
name: Generate Documentation
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2-beta
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.9.16'
- name: Install
run: |
cd docs
pip3 install -r requirements.txt
- name: Install doxygen/depends of doxybook
run: sudo apt install -y doxygen wget
- name: Wget package
run: |
wget https://github.com/matusnovak/doxybook2/releases/download/v1.2.3/doxybook2-linux-amd64-v1.2.3.zip
mkdir -p ~/doxybook2
cp -rf . ~/doxybook2
cd ~/doxybook2
unzip doxybook2-linux-amd64-v1.2.3.zip
- name: Generate doxygen
run: |
cd docs/docs/doxygen
doxygen Doxyfile
- name: Generate markdown from doxygen XML file
run: |
export PATH="$PATH:~/doxybook2/bin"
cd docs/docs/doxygen
mkdir -p ./markdown/Classes
doxybook2 --input ./build/ --output ./markdown -c config.json
- name: Build documentation
run: |
cd docs
mkdocs build
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name != 'pull_request'}}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/site