summaryrefslogtreecommitdiff
path: root/doc/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r--doc/source/conf.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 0f7099a..6233623 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -28,12 +28,22 @@ sys.path.insert(0, ROOT)
sys.path.insert(0, BASE_DIR)
extensions = [
- 'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'openstackdocstheme',
+ 'sphinxcontrib.apidoc',
]
+# sphinxcontrib.apidoc options
+apidoc_module_dir = '../../troveclient'
+apidoc_output_dir = 'reference/api'
+apidoc_excluded_paths = [
+ 'compat/tests/*',
+ 'compat/tests',
+ 'tests/*',
+ 'tests']
+apidoc_separate_modules = True
+
# openstackdocstheme options
repository_name = 'openstack/python-troveclient'
bug_project = 'python-troveclient'