add configurable traits to api docs

This commit is contained in:
Min RK
2017-02-13 14:12:34 +01:00
parent 0dced91495
commit 4b987dd334
7 changed files with 64 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'autodoc_traits',
]
templates_path = ['_templates']
@@ -37,6 +38,7 @@ from os.path import dirname
docs = dirname(dirname(__file__))
root = dirname(docs)
sys.path.insert(0, root)
sys.path.insert(0, os.path.join(docs, 'sphinxext'))
import jupyterhub
# The short X.Y version.
@@ -49,6 +51,9 @@ exclude_patterns = []
pygments_style = 'sphinx'
todo_include_todos = False
# Set the default role so we can use `foo` instead of ``foo``
default_role = 'literal'
# -- Source -------------------------------------------------------------
source_parsers = {