Skip to content

Commit 37451ed

Browse files
committed
Rewrite conf.py
1 parent 02aadeb commit 37451ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ jobs:
5656
run: |
5757
sphinx-quickstart -q -p "opm-simulators" -a "opm-dev" --sep docs/sphinx
5858
59+
- name: Overwrite conf.py with custom config
60+
run: |
61+
echo "import os" > docs/sphinx/source/conf.py
62+
echo "import sys" >> docs/sphinx/source/conf.py
63+
echo "sys.path.insert(0, os.path.abspath('.'))" >> docs/sphinx/source/conf.py
64+
echo "" >> docs/sphinx/source/conf.py
65+
echo "extensions = ['breathe']" >> docs/sphinx/source/conf.py
66+
echo "breathe_projects = {" >> docs/sphinx/source/conf.py
67+
echo " 'OPM': '../../doxygen/xml'" >> docs/sphinx/source/conf.py
68+
echo "}" >> docs/sphinx/source/conf.py
69+
echo "breathe_default_project = 'OPM'" >> docs/sphinx/source/conf.py
70+
echo "" >> docs/sphinx/source/conf.py
71+
echo "html_theme = 'furo'" >> docs/sphinx/source/conf.py
72+
5973
- name: Build Doxygen documentation
6074
run: |
6175
ls

0 commit comments

Comments
 (0)