Skip to content

Commit

Permalink
Setup the RTD theme.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Nigel Babu committed Jan 31, 2014
1 parent a5d1675 commit 1544a45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions dev-requirements.txt
Expand Up @@ -10,3 +10,4 @@ polib==1.0.3
mock==1.0.1 mock==1.0.1
factory-boy==2.1.1 factory-boy==2.1.1
coveralls==0.3 coveralls==0.3
sphinx_rtd_theme==0.1.5
12 changes: 5 additions & 7 deletions doc/conf.py
Expand Up @@ -236,6 +236,11 @@ def write_latest_release_file():


# Options for HTML output # 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 = 'default'
#html_theme_options = { #html_theme_options = {
Expand All @@ -245,13 +250,6 @@ def write_latest_release_file():
#'sidebarlinkcolor': '#355F7C', #'sidebarlinkcolor': '#355F7C',
#'headfont': 'Trebuchet MS' #'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 = { html_sidebars = {
'**': ['globaltoc.html'], '**': ['globaltoc.html'],
Expand Down

0 comments on commit 1544a45

Please sign in to comment.