From 3d7bf6698afb531bf19f87cdc2b412d7c264f7e1 Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Fri, 8 Feb 2013 15:30:51 +0000 Subject: [PATCH] Now hacking makefile..: --- doc/Makefile | 4 ++++ doc/conf.py | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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(), '../'))