Use the autodoc tools in the setup.py build_sphinx toolchain.
This commit is contained in:
9
doc/ext/nova_autodoc.py
Normal file
9
doc/ext/nova_autodoc.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from nova import utils
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
rootdir = os.path.abspath(app.srcdir + '/..')
|
||||||
|
print "**Autodocumenting from %s" % rootdir
|
||||||
|
rv = utils.execute('cd %s && ./generate_autodoc_index.sh' % rootdir)
|
||||||
|
print rv[0]
|
@@ -24,8 +24,7 @@ sys.path.insert(0, os.path.abspath('./'))
|
|||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'ext.nova_todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
|
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'ext.nova_todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'ext.nova_autodoc']
|
||||||
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
|
|
||||||
todo_include_todos = True
|
todo_include_todos = True
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
Reference in New Issue
Block a user