Skip to content
Snippets Groups Projects
Commit 128250da authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Update conf.py (#407)

parent 4b247632
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
# add these directories to sys.path here. If the directory is relative to the # 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. # documentation root, use os.path.abspath to make it absolute, like shown here.
# #
# import os import os
# import sys import sys
# sys.path.insert(0, os.path.abspath('.')) import subprocess
sys.path.insert(0, os.path.abspath('../ale'))
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
...@@ -30,7 +31,7 @@ release = 'ale.__version__' ...@@ -30,7 +31,7 @@ release = 'ale.__version__'
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones. # ones.
extensions = ['sphinx.ext.autodoc'] extensions = ['sphinx.ext.autodoc', 'breathe']
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
...@@ -57,9 +58,13 @@ html_theme = 'alabaster' ...@@ -57,9 +58,13 @@ html_theme = 'alabaster'
html_static_path = ['_static'] html_static_path = ['_static']
# -- Run Doxygen for C++ API -------------------------------------------------- # -- Run Doxygen for C++ API --------------------------------------------------
import subprocess, os
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build: if read_the_docs_build:
subprocess.call('doxygen', shell=True) subprocess.call('doxygen', shell=True)
# -- Breathe Configuration ----------------------------------------------------
breathe_projects = { "ALE": "doxyxml/" }
breathe_default_project = "ALE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment