aboutsummaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-07-11 10:20:27 -0300
committerDavid Bremner <david@tethera.net>2020-07-15 08:37:11 -0300
commita05da45523a8ce65a2db73040824bb7307e7351d (patch)
tree5a09ea09fbf57accd3954b5047a6dc76e8d7d738 /doc/conf.py
parent0e03e2d45e36edb635229f356bf41f153c30a70f (diff)
doc: add new python bindings to main documentation tree.
A separate conf.py and doc directory (or will be needed if someone wants to build the bindings docs separately from notmuch.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py
index fdff2a2c..94e266af 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -4,6 +4,8 @@
import sys
import os
+extensions = [ 'sphinx.ext.autodoc' ]
+
# The suffix of source filenames.
source_suffix = '.rst'
@@ -22,6 +24,9 @@ for pathdir in ['.', '..']:
with open(version_file,'r') as infile:
version=infile.read().replace('\n','')
+# for autodoc
+sys.path.insert(0, os.path.join(location, '..', 'bindings', 'python-cffi', 'notmuch2'))
+
# read generated config
for pathdir in ['.', '..']:
conf_file = os.path.join(location,pathdir,'sphinx.config')
@@ -50,6 +55,9 @@ else:
# the docstring include files
exclude_patterns.append('notmuch-emacs.rst')
+if not tags.has('WITH_PYTHON'):
+ exclude_patterns.append('python-bindings.rst')
+
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'