Skip to content

doc: Added doxygen support #18

doc: Added doxygen support

doc: Added doxygen support #18

name: Documentation
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/setup-python@v3

Check failure on line 14 in .github/workflows/documentation.yaml

View workflow run for this annotation

GitHub Actions / Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/documentation.yaml (Line: 14, Col: 9): 'uses' is already defined
with:
submodules: recursive
- name: Install dependencies
run: |
python -m pip install sphinx-toolbox
pip install sphinx sphinx_rtd_theme myst_parser
sudo apt-get install doxygen graphviz -y
- name: Sphinx build
run: |
sphinx-build doc/sphinx _build
- name: Doxygen build
run: |
pushd doc/doxygen
doxygen Doxyfile
popd
- name: Deploy sphinx to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
- name: Deploy doxygen to GitHub Pages
uses: DenverCoder1/doxygen-github-pages-action@v1
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/doxygen/html/
force_orphan: true