Skip to content

Commit

Permalink
Get rid of all of the autodoc import errors.
Browse files Browse the repository at this point in the history
This hasn't worked right in a bazillion years.

Change-Id: I4db20ce97f920cdb7254d51e18a0630b0283b39d
  • Loading branch information
emonty committed Mar 6, 2012
1 parent 9bb2a33 commit 702a474
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions doc/ext/nova_autodoc.py
Expand Up @@ -7,8 +7,6 @@


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]
4 changes: 2 additions & 2 deletions doc/find_autodoc_modules.sh
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/generate_autodoc_index.sh
@@ -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
Expand Down

1 comment on commit 702a474

@matiu2
Copy link
Contributor

@matiu2 matiu2 commented on 702a474 May 28, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is one supposed to build docs after this commit ?

If I revert the commit in my branch, then follow the doc/README.rst and run:

cd doc
make

That works, but with this commit in place, it dies trying to find doc/doc/...

So my question is, how am I supposed to generate the docs while this commit is in place ?

Please sign in to comment.