Skip to content

Commit

Permalink
Skinning sphinx rtd correctly...
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus0824 committed Jul 7, 2016
1 parent 09778c7 commit 2becd63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@

# General information about the project.
project = u'biothings.api'
copyright = u'2016, Cyrus Afrasiabi, Chunlei Wu, Sebastien Lelong, Kevin Xin'
author = u'Cyrus Afrasiabi, Chunlei Wu, Sebastien Lelong, Kevin Xin'
copyright = u'2016, Su Lab'
author = u'Su Lab'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -110,7 +110,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
html_theme = 'default'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -225,7 +225,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'biothingsapi.tex', u'biothings.api Documentation',
u'Cyrus Afrasiabi, Chunlei Wu, Sebastien Lelong, Kevin Xin', 'manual'),
u'Su Lab', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -284,3 +284,12 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {}
except ImportError:
print 'Warning: "sphinx_rtd_theme" is not installed, fall back to default theme.'
pass
2 changes: 1 addition & 1 deletion docs/sphinx-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Requirements for virtualenv when building sphinx documentation

sphinx_rtd_theme

0 comments on commit 2becd63

Please sign in to comment.