Documentation #987
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |