Skip to content

Commit

Permalink
add breathe requirements and create doxygen output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Apr 3, 2018
1 parent 0dbbace commit 0fb59b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/conf.py
Expand Up @@ -21,6 +21,14 @@
sys.path.insert(0, os.path.abspath('../lib/v2.0/python'))
sys.path.append( "/usr/lib/python2.7/dist-packages/breathe" )

# hack for readthedocs to cause it to run doxygen first
# https://github.com/rtfd/readthedocs.org/issues/388
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
import subprocess
subprocess.call('mkdir -p _xml/c/v2.0', shell=True
subprocess.call('doxygen C_lib_v2.0.doxyconf', shell=True)

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -62,12 +70,6 @@
}
breathe_default_project = "cv2"

import subprocess

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
subprocess.call('doxygen C_lib_v2.0.doxyconf', shell=True)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
@@ -0,0 +1 @@
breathe

0 comments on commit 0fb59b1

Please sign in to comment.