Skip to content

Commit 02aadeb

Browse files
committed
Rewrite Doxyfile added
1 parent b36262a commit 02aadeb

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,46 @@ jobs:
2929
- name: Install Python packages
3030
run: pip install sphinx breathe furo
3131

32+
- name: Generate Doxyfile
33+
run: |
34+
doxygen -g Doxyfile
35+
36+
- name: Delete the FILE_PATTERNS block entirely
37+
run: |
38+
sed -i '/^FILE_PATTERNS/,/[^\\]$/d' Doxyfile
39+
40+
- name: Add new FILE_PATTERNS line at the end
41+
run: |
42+
echo 'FILE_PATTERNS = *.cpp *.hpp' >> Doxyfile
43+
44+
- name: Rewrite some of the defaulted values in Doxyfile
45+
run: |
46+
sed -i \
47+
-e 's/^PROJECT_NAME.*/PROJECT_NAME = "opm-simulators"/' \
48+
-e 's|^OUTPUT_DIRECTORY.*|OUTPUT_DIRECTORY = docs/doxygen|' \
49+
-e 's/^GENERATE_XML.*/GENERATE_XML = YES/' \
50+
-e 's/^RECURSIVE.*/RECURSIVE = YES/' \
51+
-e 's|^INPUT.*|INPUT = opm/simulators opm/models|' \
52+
-e 's/^EXTRACT_ALL.*/EXTRACT_ALL = YES/' \
53+
Doxyfile
54+
55+
- name: Quickstart Sphinx
56+
run: |
57+
sphinx-quickstart -q -p "opm-simulators" -a "opm-dev" --sep docs/sphinx
58+
3259
- name: Build Doxygen documentation
33-
run: doxygen Doxyfile
60+
run: |
61+
ls
62+
doxygen Doxyfile
3463
3564
- name: Build Sphinx documentation
3665
run: |
3766
cd docs/sphinx
38-
sphinx-build -b html source build/html
67+
sphinx-build -b html source build
3968
make html
4069
4170
- name: Copy documentation to gh-pages
42-
run: |
71+
run: |
4372
mkdir docs/sphinx/gh-pages
4473
cp -r docs/sphinx/build/* docs/sphinx/gh-pages
4574
- name: Deploy documentation

0 commit comments

Comments
 (0)