Commit 84c44e27 authored by davidkep's avatar davidkep

update readthedocs sphinx conf

parent e31318e7
......@@ -7,6 +7,4 @@
......@@ -21,18 +21,24 @@ import subprocess
def generate_doxygen_xml(app):
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
print("Running doxygen...")
doxygen_res ='doxygen Doxyfile', check=True)
if doxygen_res.returncode < 0:
sys.stderr.write("doxygen was not successful: %s" % cperr)
print("doxygen was not successful: %s" % os_err, file = sys.stderr)
except OSError as os_err:
sys.stderr.write("doxygen can not be executed: %s" % os_err)
print("doxygen can not be executed: %s" % os_err, file = sys.stderr)
def setup(app):
# Add hook for building doxygen xml when needed
app.connect("builder-inited", generate_doxygen_xml)
return {
'version': '0.1',
'parallel_read_safe': False,
'parallel_write_safe': False,
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment