aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/source/conf.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 22e39e9..06afe60 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -12,7 +12,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys, os, subprocess
import os.path
# If extensions (or modules to document with autodoc) are in another directory,
@@ -251,6 +251,14 @@ man_pages = [
#intersphinx_mapping = {'http://docs.python.org/': None}
+# -- Options for Read The Docs deployment -------------------------------------
+
+read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
+
+if read_the_docs_build:
+ subprocess.call('cd ../..; make doxygen', shell=True)
+
+
# -- Options for breathe integration ------------------------------------------
# Check to see if doxygen has been run yet