diff --git a/doc/Makefile b/doc/Makefile index faa4ed65..ffc600c8 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -41,6 +41,10 @@ help: clean: -rm -rf $(BUILDDIR)/* +CWD=$(shell sphinx-apidoc -f -o . ../GPy) +all: + @echo api build: $(CWD). + html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo diff --git a/doc/conf.py b/doc/conf.py index 44e908e0..c3c9cde8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -37,11 +37,13 @@ try: except ImportError: print "no sphinx" -parent = os.path.dirname(os.path.dirname(__file__)) -sys.path.insert(0, os.path.abspath(parent)) +parent = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) +sys.path.insert(0, parent) +sys.path.append(parent) -parent = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'GPy') -sys.path.insert(0, os.path.abspath(parent)) +parent = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'GPy')) +sys.path.insert(0, parent) +sys.path.append(parent) #APP_DIR = os.path.normpath(os.path.join(os.getcwd(), '../')) #PACKAGE_DIR1 = os.path.normpath(os.path.join(os.getcwd(), '../'))