diff --git a/docs/conf.py b/docs/conf.py index 0d0f1ab96070e5077a0f20eed849364261002fa6..86063ed757161d4bdfe01cd7a08c41a969c49c2a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,9 +10,10 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +import sys +import subprocess +sys.path.insert(0, os.path.abspath('../ale')) # -- Project information ----------------------------------------------------- @@ -30,7 +31,7 @@ release = 'ale.__version__' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc'] +extensions = ['sphinx.ext.autodoc', 'breathe'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -57,9 +58,13 @@ html_theme = 'alabaster' html_static_path = ['_static'] # -- Run Doxygen for C++ API -------------------------------------------------- -import subprocess, os read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' if read_the_docs_build: subprocess.call('doxygen', shell=True) + +# -- Breathe Configuration ---------------------------------------------------- + +breathe_projects = { "ALE": "doxyxml/" } +breathe_default_project = "ALE"