aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/conf.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/conf.py b/source/conf.py
index 5b8f2d8..f4a9bbb 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -13,6 +13,7 @@
# serve to show the default.
import sys, os
+import os.path
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -266,7 +267,17 @@ man_pages = [
# -- Options for breathe integration ------------------------------------------
-breathe_projects = {'libmaple' : os.path.join(os.environ['LIB_MAPLE_HOME'],
- 'doxygen', 'xml')}
+# We allow people to check in Doxygen XML into maintenance branches.
+doxygen_xml_maybe = os.path.join(os.path.dirname(os.path.dirname(__file__)),
+ 'doxygen', 'xml')
+if os.path.isdir(doxygen_xml_maybe):
+ # There's a doxygen/xml/ directory in this repository root, use that.
+ doxygen_xml_dir = doxygen_xml_maybe
+else:
+ # Nothing there, assume it's in LIB_MAPLE_HOME.
+ doxygen_xml_dir = os.path.join(os.environ['LIB_MAPLE_HOME'],
+ 'doxygen', 'xml')
+
+breathe_projects = {'libmaple' : doxygen_xml_dir}
breathe_default_project = 'libmaple'