11# .github/workflows/docs.yml
2- name : Deploy Doxygen Documentation
2+ name : Deploy Documentation
33
44on :
55 push :
66 branches : [master]
77 paths :
88 - ' src/**'
9+ - ' python/**'
910 - ' Doxyfile'
1011 - ' docs/**'
1112 - ' .github/workflows/docs.yml'
@@ -24,7 +25,7 @@ concurrency:
2425
2526jobs :
2627 build-docs :
27- name : Build Doxygen Documentation
28+ name : Build Documentation
2829 runs-on : ubuntu-latest
2930 steps :
3031 - name : Checkout repository
@@ -35,15 +36,28 @@ jobs:
3536 sudo apt-get update
3637 sudo apt-get install -y doxygen graphviz
3738 echo "Doxygen version: $(doxygen --version)"
38- echo "Dot version: $(dot -V 2>&1)"
3939
40- - name : Generate documentation
40+ - name : Set up Python
41+ uses : actions/setup-python@v5
42+ with :
43+ python-version : " 3.11"
44+
45+ - name : Install Sphinx and dependencies
46+ run : pip install -r docs/requirements.txt
47+
48+ - name : Generate Doxygen XML and HTML
4149 run : doxygen Doxyfile
4250
51+ - name : Build Sphinx documentation
52+ run : sphinx-build -b html docs/ docs/_build/html
53+
54+ - name : Copy Doxygen HTML into Sphinx output
55+ run : cp -r docs/doxygen/html docs/_build/html/doxygen
56+
4357 - name : Upload Pages artifact
4458 uses : actions/upload-pages-artifact@v3
4559 with :
46- path : docs/doxygen /html
60+ path : docs/_build /html
4761
4862 deploy :
4963 name : Deploy to GitHub Pages
0 commit comments