From 643b7094b2ecd02d970e5114dec3e7cf44174f61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jason=20K=C3=B6lker?= <jason@koelker.net>
Date: Thu, 15 Mar 2012 17:59:44 -0500
Subject: [PATCH] Allows docs to be built on RTFD.org

* Makes me happy.

Change-Id: I01f4d5b13986255aa0f5572de028cc07ce116363
---
 doc/source/conf.py   | 10 +++++-----
 doc/source/index.rst |  4 +---
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index 202d8350..75655e27 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -32,10 +32,10 @@ import sys
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-sys.path.append([os.path.abspath('../melange'),
-    os.path.abspath('..'),
-    os.path.abspath('../bin')
-    ])
+
+BASE_DIR = os.path.dirname(os.path.abspath(__file__))
+MELANGE_DIR = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
+sys.path.insert(0, MELANGE_DIR)
 
 # -- General configuration ---------------------------------------------------
 
@@ -242,7 +242,7 @@ latex_documents = [
 
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {'python': ('http://docs.python.org/', None),
-                       'dashboard': ('http://dashboard.openstack.org', None),
+                       'horizon': ('http://horizon.openstack.org', None),
                        'glance': ('http://glance.openstack.org', None),
                        'keystone': ('http://keystone.openstack.org', None),
                        'nova': ('http://nova.openstack.org', None),
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 6440fee9..991a7209 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -14,11 +14,9 @@
       License for the specific language governing permissions and limitations
       under the License.
 
-Welcome to Skeleton's documentation!
+Welcome to Melange's documentation!
 ====================================
 
-Description of Skeleton project
-
 API Docs
 ========