Cleaning for RTD theme and a bit of reorganization

This commit is contained in:
abalabahaha
2015-11-20 17:50:29 -08:00
parent 0ba7a1796e
commit ca6f8d6fc1
21 changed files with 199 additions and 270 deletions

View File

@@ -55,9 +55,9 @@ author = u'hydrabolt'
# built documents.
#
# The short X.Y version.
version = '4.1'
version = '5.0'
# The full version, including alpha/beta/rc tags.
release = '4.1.0'
release = '5.0.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -137,7 +137,7 @@ html_theme = 'default'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
#html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
@@ -282,3 +282,11 @@ texinfo_documents = [
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
if not os.environ.get('READTHEDOCS', None) == 'True':
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
print("sphinx_rtd_theme not found! Do 'pip install sphinx_rtd_theme' to make local builds use the RTD theme.")