Browse files

Setup the RTD theme.

[ci skip]
  • Loading branch information...
1 parent a5d1675 commit 1544a458ea80808795ef11ef1185e9f58bb497b2 Nigel Babu committed Jan 31, 2014
Showing with 6 additions and 7 deletions.
  1. +1 −0 dev-requirements.txt
  2. +5 −7 doc/conf.py
View
1 dev-requirements.txt
@@ -10,3 +10,4 @@ polib==1.0.3
mock==1.0.1
factory-boy==2.1.1
coveralls==0.3
+sphinx_rtd_theme==0.1.5
View
12 doc/conf.py
@@ -236,6 +236,11 @@ def write_latest_release_file():
# Options for HTML output
# -----------------------
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+if not on_rtd:
+ import sphinx_rtd_theme
+ html_theme = 'sphinx_rtd_theme'
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
#html_theme = 'default'
#html_theme_options = {
@@ -245,13 +250,6 @@ def write_latest_release_file():
#'sidebarlinkcolor': '#355F7C',
#'headfont': 'Trebuchet MS'
#}
-sys.path.append(os.path.abspath('_themes'))
-html_theme_path = ['_themes']
-html_theme = 'sphinx-theme-okfn'
-html_theme_options = {
- 'logo_icon': 'ckanlogo.png',
- 'show_version': True
- }
html_sidebars = {
'**': ['globaltoc.html'],

0 comments on commit 1544a45

Please sign in to comment.