diff options
author | 2019-12-17 20:26:53 -0800 | |
---|---|---|
committer | 2019-12-17 20:26:53 -0800 | |
commit | 1a824f1524aa7eefacb187cc20bebb1fee1ac5e4 (patch) | |
tree | 8ec8a0536da2fad393715a0da6cfa280fdb213d3 /Docs/source/conf.py | |
parent | c155ac3e8128831e352b5df981999399f6441930 (diff) | |
download | WarpX-1a824f1524aa7eefacb187cc20bebb1fee1ac5e4.tar.gz WarpX-1a824f1524aa7eefacb187cc20bebb1fee1ac5e4.tar.zst WarpX-1a824f1524aa7eefacb187cc20bebb1fee1ac5e4.zip |
compile Doxygen on ReadTheDocs
Diffstat (limited to '')
-rw-r--r-- | Docs/source/conf.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Docs/source/conf.py b/Docs/source/conf.py index 65b19c2a7..e747792b2 100644 --- a/Docs/source/conf.py +++ b/Docs/source/conf.py @@ -17,7 +17,7 @@ # 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, sys +import os, sys, subprocess import sphinx_rtd_theme sys.path.insert(0, os.path.join( os.path.abspath(__file__), '../Python') ) @@ -33,9 +33,9 @@ sys.path.insert(0, os.path.join( os.path.abspath(__file__), '../Python') ) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', - 'breathe' + 'breathe', + 'exhale' ] -# 'exhale' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -190,3 +190,8 @@ exhale_args = { primary_domain = 'cpp' # Tell sphinx what the pygments highlight language should be. highlight_language = 'cpp' + + +read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' +if read_the_docs_build: + subprocess.call('cd ../; doxygen', shell=True) |