096dd5c
From 7df10fb14d27e35faa590770594ea1b05552576f Mon Sep 17 00:00:00 2001
096dd5c
From: Alan Pevec <apevec@redhat.com>
096dd5c
Date: Thu, 5 Jan 2012 00:03:00 +0100
096dd5c
Subject: [PATCH] Add fixes for building the doc package
096dd5c
MIME-Version: 1.0
096dd5c
Content-Type: text/plain; charset=UTF-8
096dd5c
Content-Transfer-Encoding: 8bit
096dd5c
096dd5c
Don't access the net and always reference
096dd5c
the swift module from the package we're building
096dd5c
Based on Nova/Glance EPEL patch by Pádraig Brady <P@draigBrady.com>
096dd5c
---
096dd5c
 doc/source/conf.py | 6 +++---
096dd5c
 1 file changed, 3 insertions(+), 3 deletions(-)
096dd5c
096dd5c
diff --git a/doc/source/conf.py b/doc/source/conf.py
096dd5c
index e6a43b0..3734cd4 100644
096dd5c
--- a/doc/source/conf.py
096dd5c
+++ b/doc/source/conf.py
096dd5c
@@ -33,14 +33,14 @@ import os
096dd5c
 # If extensions (or modules to document with autodoc) are in another directory,
096dd5c
 # add these directories to sys.path here. If the directory is relative to the
096dd5c
 # documentation root, use os.path.abspath to make it absolute, like shown here.
096dd5c
-sys.path.append([os.path.abspath('../swift'), os.path.abspath('..'),
096dd5c
-                 os.path.abspath('../bin')])
096dd5c
+sys.path.extend([os.path.abspath('../../swift'), os.path.abspath('../..'),
096dd5c
+                 os.path.abspath('../../bin')])
096dd5c
 
096dd5c
 # -- General configuration ----------------------------------------------------
096dd5c
 
096dd5c
 # Add any Sphinx extension module names here, as strings. They can be
096dd5c
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
096dd5c
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
096dd5c
+extensions = ['sphinx.ext.autodoc',
096dd5c
               'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath',
096dd5c
               'sphinx.ext.ifconfig']
096dd5c
 todo_include_todos = True