Skip to content

Commit

Permalink
adding post_install
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 1, 2023
1 parent caac39d commit bbae030
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ build:
- ghostscript
- graphviz
- texlive-full
jobs:
post_install:
- pushd docs
- doxygen ./doxygen/Doxyfile.in
- popd
- ls ./_readthedocs

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
25 changes: 12 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@
import os
import shlex

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:

# Modify Doxyfile for ReadTheDocs compatibility
with open('./doxygen/Doxyfile.in', 'r') as f:
fdata = f.read()
fdata = fdata.replace('@PROJECT_SOURCE_DIR@', '.')
with open('./doxygen/Doxyfile.in', 'w') as f:
f.write(fdata)
with open('./doxygen/Doxyfile.in', 'a') as f:
f.write("\nOUTPUT_DIRECTORY= sphinx/_build/doxygen")


# Modify Doxyfile for ReadTheDocs compatibility
with open('./doxygen/Doxyfile.in', 'r') as f:
fdata = f.read()
fdata = fdata.replace('@PROJECT_SOURCE_DIR@', '.')
with open('./doxygen/Doxyfile.in', 'w') as f:
f.write(fdata)
with open('./doxygen/Doxyfile.in', 'a') as f:
f.write("\nOUTPUT_DIRECTORY=../_readthedocs/html/doxygen")

# Call doxygen
from subprocess import call
call(['doxygen', "./doxygen/Doxyfile.in"])
# from subprocess import call
# call(['doxygen', "./doxygen/Doxyfile.in"])


# Get current directory
Expand Down

0 comments on commit bbae030

Please sign in to comment.