Skip to content

Commit

Permalink
doc/sphinx: use different path to Doxygen on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Nov 22, 2023
1 parent 2ac44bc commit 3370267
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@

def run_doxygen(_):
"""Run the doxygen make command."""

if os.environ.get('READTHEDOCS', None) == 'True':
doxygen_path = "../../doxygen"
else:
doxygen_path = "../doxygen"
try:
retcode = subprocess.call(f"make -C ../doxygen", shell=True)
retcode = subprocess.call(f"make -C {doxygen_path}", shell=True)
if retcode < 0:
sys.stderr.write(f"doxygen terminated by signal {-retcode}")
except OSError as e:
Expand Down

0 comments on commit 3370267

Please sign in to comment.