Use sphinx_rtd_theme for HTML theme

This commit is contained in:
Justin W. Flory
2017-12-02 19:16:20 -05:00
parent 79c607f96d
commit c7a415dbf8
+19 -7
View File
@@ -82,7 +82,7 @@ todo_include_todos = True
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
# #
html_theme = 'alabaster' # html_theme = 'alabaster'
# Theme options are theme-specific and customize the look and feel of a theme # 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 # further. For a list of options available for each theme, see the
@@ -100,12 +100,12 @@ html_static_path = ['_static']
# #
# This is required for the alabaster theme # This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = { # html_sidebars = {
'**': [ # '**': [
'relations.html', # needs 'show_related': True theme option to display # 'relations.html', # needs 'show_related': True theme option to display
'searchbox.html', # 'searchbox.html',
] # ]
} # }
# -- Options for HTMLHelp output ------------------------------------------ # -- Options for HTMLHelp output ------------------------------------------
@@ -165,4 +165,16 @@ texinfo_documents = [
] ]
# -- Use the RTD Sphinx Theme -------------------------------------------
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# RTD theme options (see theme.conf for more information)
html_theme_options = {
'canonical_url': "https://mobarena.readthedocs.io/en/latest/",
'collapse_navigation': False,
'navigation_depth': 2,
}