mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
use autodoc-traits extension for docbuild
This commit is contained in:
@@ -24,3 +24,4 @@ dependencies:
|
|||||||
- attrs>=17.4.0
|
- attrs>=17.4.0
|
||||||
- sphinx-copybutton
|
- sphinx-copybutton
|
||||||
- alabaster_jupyterhub
|
- alabaster_jupyterhub
|
||||||
|
- autodoc-traits
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
# if you change this file
|
# if you change this file
|
||||||
-r ../requirements.txt
|
-r ../requirements.txt
|
||||||
alabaster_jupyterhub
|
alabaster_jupyterhub
|
||||||
|
autodoc-traits
|
||||||
recommonmark==0.5.0
|
recommonmark==0.5.0
|
||||||
sphinx-copybutton
|
sphinx-copybutton
|
||||||
sphinx>=1.7
|
sphinx>=1.7
|
||||||
|
@@ -17,7 +17,7 @@ extensions = [
|
|||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.intersphinx',
|
'sphinx.ext.intersphinx',
|
||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'autodoc_traits',
|
'autodoc-traits',
|
||||||
'sphinx_copybutton',
|
'sphinx_copybutton',
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -37,7 +37,6 @@ from os.path import dirname
|
|||||||
docs = dirname(dirname(__file__))
|
docs = dirname(dirname(__file__))
|
||||||
root = dirname(docs)
|
root = dirname(docs)
|
||||||
sys.path.insert(0, root)
|
sys.path.insert(0, root)
|
||||||
sys.path.insert(0, os.path.join(docs, 'sphinxext'))
|
|
||||||
|
|
||||||
import jupyterhub
|
import jupyterhub
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user