Get rid of all of the autodoc import errors.
This hasn't worked right in a bazillion years. Change-Id: I4db20ce97f920cdb7254d51e18a0630b0283b39d
This commit is contained in:
parent
9bb2a33590
commit
702a4743f0
@ -7,8 +7,6 @@ from nova import utils
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
rootdir = os.path.abspath(app.srcdir + '/..')
|
print "**Autodocumenting from %s" % os.path.abspath(os.curdir)
|
||||||
print "**Autodocumenting from %s" % rootdir
|
rv = utils.execute('./doc/generate_autodoc_index.sh')
|
||||||
os.chdir(rootdir)
|
|
||||||
rv = utils.execute('./generate_autodoc_index.sh')
|
|
||||||
print rv[0]
|
print rv[0]
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NOVA_DIR='../nova/' # include trailing slash
|
NOVA_DIR='nova/' # include trailing slash
|
||||||
DOCS_DIR='source'
|
DOCS_DIR='source'
|
||||||
|
|
||||||
modules=''
|
modules=''
|
||||||
for x in `find ${NOVA_DIR} -name '*.py'`; do
|
for x in `find ${NOVA_DIR} -name '*.py' | grep -v nova/tests`; do
|
||||||
if [ `basename ${x} .py` == "__init__" ] ; then
|
if [ `basename ${x} .py` == "__init__" ] ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SOURCEDIR=source/api
|
SOURCEDIR=doc/source/api
|
||||||
|
|
||||||
if [ ! -d ${SOURCEDIR} ] ; then
|
if [ ! -d ${SOURCEDIR} ] ; then
|
||||||
mkdir -p ${SOURCEDIR}
|
mkdir -p ${SOURCEDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for x in `./find_autodoc_modules.sh`;
|
for x in `./doc/find_autodoc_modules.sh`;
|
||||||
do
|
do
|
||||||
echo "Generating ${SOURCEDIR}/${x}.rst"
|
echo "Generating ${SOURCEDIR}/${x}.rst"
|
||||||
echo "${SOURCEDIR}/${x}.rst" >> .autogenerated
|
echo "${SOURCEDIR}/${x}.rst" >> .autogenerated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user