diff options
author | 2019-12-19 19:29:44 -0800 | |
---|---|---|
committer | 2019-12-19 19:29:44 -0800 | |
commit | 15685b7d1926295e99e5fe84801a37a8b61acd14 (patch) | |
tree | c43034283192b623c6051ed403553d663ec1d134 /Docs/source/conf.py | |
parent | 7d1a572483d5f1b314020b5282c92d48afa26f9d (diff) | |
parent | 77451c09aaf00e4665ef2c543d6a8d541cc10c26 (diff) | |
download | WarpX-15685b7d1926295e99e5fe84801a37a8b61acd14.tar.gz WarpX-15685b7d1926295e99e5fe84801a37a8b61acd14.tar.zst WarpX-15685b7d1926295e99e5fe84801a37a8b61acd14.zip |
Merge pull request #572 from MaxThevenet/dev_doc
Developer's documentation
Diffstat (limited to 'Docs/source/conf.py')
-rw-r--r-- | Docs/source/conf.py | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/Docs/source/conf.py b/Docs/source/conf.py index 475504d7c..4a4716b66 100644 --- a/Docs/source/conf.py +++ b/Docs/source/conf.py @@ -17,11 +17,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, sys +import os, sys, subprocess import sphinx_rtd_theme sys.path.insert(0, os.path.join( os.path.abspath(__file__), '../Python') ) - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -33,7 +32,10 @@ sys.path.insert(0, os.path.join( os.path.abspath(__file__), '../Python') ) # ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', - 'sphinx.ext.viewcode' ] + 'sphinx.ext.viewcode', + 'breathe', + 'exhale' + ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -162,3 +164,34 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'https://amrex-codes.github.io/': None} + +# Setup the breathe extension +breathe_projects = { + "WarpX": "../doxyxml/" +} +breathe_default_project = "WarpX" + +# Setup the exhale extension +exhale_args = { + # These arguments are required + "containmentFolder": "./api", + "rootFileName": "library_root.rst", + "rootFileTitle": "Doxygen", + "doxygenStripFromPath": "..", + # Suggested optional arguments + "createTreeView": True, + # TIP: if using the sphinx-bootstrap-theme, you need + # "treeViewIsBootstrap": True, + "exhaleExecutesDoxygen": True, + "exhaleDoxygenStdin": "INPUT = ../../Source/" +} + +# Tell sphinx what the primary language being documented is. +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) |