Reverted rtfd testing changes, and added on_rtd to config.

This commit is contained in:
Ahmet Bakan 2014-05-11 17:20:34 -07:00
parent ed8c5a356c
commit 1d9ab0f0b2

View file

@ -2,9 +2,11 @@
import os import os
import sys 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 import ablog
extensions = [ extensions = [
@ -17,7 +19,7 @@ extensions = [
#'IPython.sphinxext.ipython_directive', #'IPython.sphinxext.ipython_directive',
#'IPython.sphinxext.ipython_console_highlighting', #'IPython.sphinxext.ipython_console_highlighting',
'alabaster', 'alabaster',
#'ablog' 'ablog'
] ]
@ -42,7 +44,7 @@ html_favicon = '_static/ablog.ico'
# ABLOG # ABLOG
#templates_path = [ablog.get_html_templates_path()] templates_path = [ablog.get_html_templates_path()]
blog_baseurl = 'http://ablog.readthedocs.org' blog_baseurl = 'http://ablog.readthedocs.org'
blog_locations = { blog_locations = {
@ -61,8 +63,7 @@ fontawesome_css_file = 'css/font-awesome.css'
# THEME # THEME
html_theme = 'alabaster' html_theme = 'alabaster'
html_sidebars = {} html_sidebars = {
{
'**': ['about.html', '**': ['about.html',
'postcard.html', 'recentposts.html', 'postcard.html', 'recentposts.html',
'tagcloud.html', 'categories.html', 'tagcloud.html', 'categories.html',