Skip to content

Commit

Permalink
Test for read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerbecky committed Jul 19, 2024
1 parent d84a0a1 commit 11ded08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
# ]

# rst2pdf has a bug where indexes can't build, this is a workaround
#pdf_use_index = False
# pdf_use_index = False

# -- Extension configuration -------------------------------------------------

Expand Down Expand Up @@ -243,6 +243,7 @@ def generate_doxygen_xml(app):
# Doxygen can't create a nested folder. Help it by
# creating the first folder

print("Foobar")
try:
os.makedirs(os.path.join(CWD, "temp"))
except OSError as error:
Expand Down Expand Up @@ -277,7 +278,10 @@ def generate_doxygen_xml(app):
# Call Doxygen to build the documentation
try:
# Log the Doxygen version number
print("{} -v".format(doxygen))
subprocess.call(doxygen + " -v", cwd=CWD, shell=True)

print(doxygen)
retcode = subprocess.call(doxygen, cwd=CWD, shell=True)
if retcode < 0:
sys.stderr.write("doxygen terminated by signal %s" % (-retcode))
Expand All @@ -287,6 +291,10 @@ def generate_doxygen_xml(app):
# If on ReadTheDocs.org, copy doxygen to public folder
if _ON_RTD:
try:
print("ls")
subprocess.call("ls", cwd=".", shell=True)

print("cp -r temp/html _build/html/doxygen")
retcode = subprocess.call(
"cp -r temp/html _build/html/doxygen", cwd=".", shell=True)
if retcode < 0:
Expand Down

0 comments on commit 11ded08

Please sign in to comment.