From 1d9ab0f0b285776ea16ef92039d1802c21241997 Mon Sep 17 00:00:00 2001 From: Ahmet Bakan Date: Sun, 11 May 2014 17:20:34 -0700 Subject: [PATCH] Reverted rtfd testing changes, and added on_rtd to config. --- docs/conf.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 262ab84..a0807a0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,9 +2,11 @@ import os import sys -import alabaster +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +if not on_rtd: + sys.path.append(os.path.split(os.getcwd())[0]) -sys.path.append(os.path.split(os.getcwd())[0]) +import alabaster import ablog extensions = [ @@ -17,7 +19,7 @@ extensions = [ #'IPython.sphinxext.ipython_directive', #'IPython.sphinxext.ipython_console_highlighting', 'alabaster', - #'ablog' + 'ablog' ] @@ -42,7 +44,7 @@ html_favicon = '_static/ablog.ico' # ABLOG -#templates_path = [ablog.get_html_templates_path()] +templates_path = [ablog.get_html_templates_path()] blog_baseurl = 'http://ablog.readthedocs.org' blog_locations = { @@ -61,8 +63,7 @@ fontawesome_css_file = 'css/font-awesome.css' # THEME html_theme = 'alabaster' -html_sidebars = {} -{ +html_sidebars = { '**': ['about.html', 'postcard.html', 'recentposts.html', 'tagcloud.html', 'categories.html',