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:
Monty Taylor 2012-02-25 12:44:28 -08:00
parent 9bb2a33590
commit 702a4743f0
3 changed files with 6 additions and 8 deletions

View File

@ -7,8 +7,6 @@ from nova import utils
def setup(app):
rootdir = os.path.abspath(app.srcdir + '/..')
print "**Autodocumenting from %s" % rootdir
os.chdir(rootdir)
rv = utils.execute('./generate_autodoc_index.sh')
print "**Autodocumenting from %s" % os.path.abspath(os.curdir)
rv = utils.execute('./doc/generate_autodoc_index.sh')
print rv[0]

View File

@ -1,10 +1,10 @@
#!/bin/bash
NOVA_DIR='../nova/' # include trailing slash
NOVA_DIR='nova/' # include trailing slash
DOCS_DIR='source'
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
continue
fi

View File

@ -1,12 +1,12 @@
#!/bin/sh
SOURCEDIR=source/api
SOURCEDIR=doc/source/api
if [ ! -d ${SOURCEDIR} ] ; then
mkdir -p ${SOURCEDIR}
fi
for x in `./find_autodoc_modules.sh`;
for x in `./doc/find_autodoc_modules.sh`;
do
echo "Generating ${SOURCEDIR}/${x}.rst"
echo "${SOURCEDIR}/${x}.rst" >> .autogenerated