mirror of
https://github.com/vale981/ablog
synced 2025-03-05 17:21:38 -05:00
Reverted rtfd testing changes, and added on_rtd to config.
This commit is contained in:
parent
ed8c5a356c
commit
1d9ab0f0b2
1 changed files with 7 additions and 6 deletions
13
docs/conf.py
13
docs/conf.py
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue