aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-10-11 20:02:04 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-10-11 20:02:04 -0400
commit1088b37e70e192d2a279bbfc55d33238f090d72e (patch)
tree312b42ced7c384328a82dab1912845cc24a1bf32 /docs/source/conf.py
parentbfae1dee44fe3610af1b07ceed6a5e3165c36685 (diff)
downloadlibrambutan-1088b37e70e192d2a279bbfc55d33238f090d72e.tar.gz
librambutan-1088b37e70e192d2a279bbfc55d33238f090d72e.zip
more docs
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 5fcb939..26147fd 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -17,7 +17,11 @@ import sys, os
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+#
+# We rely on Michael Jones's breathe as a Doxygen-to-Sphinx bridge.
+# See libmaple/docs/README for information on obtaining it and letting
+# Sphinx know where it is.
+sys.path.append(os.environ['BREATHE_HOME'])
# -- General configuration ----------------------------------------------------
@@ -29,7 +33,7 @@ import sys, os
# ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'sphinx.ext.todo',
- 'sphinx.ext.coverage']
+ 'sphinx.ext.coverage', 'breathe']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -68,12 +72,16 @@ release = '0.0.7'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
-exclude_patterns = ['epilog.rst']
+exclude_patterns = ['epilog.rst', 'prolog.rst']
# Included at the end of every source file that is read.
with open('epilog.rst', 'r') as ep:
rst_epilog = ep.read()
+# Included at the beginning of every source file that is read.
+with open('prolog.rst', 'r') as pr:
+ rst_prolog = pr.read()
+
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
@@ -229,3 +237,11 @@ man_pages = [
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
+
+
+# -- Options for breathe integration ------------------------------------------
+
+breathe_projects = {'libmaple' : os.path.join(os.environ['LIB_MAPLE_HOME'],
+ 'docs', 'doxygen', 'xml')}
+
+breathe_default_project = 'libmaple'