mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-09 18:08:10 +01:00
Use sphinx_rtd_theme for HTML theme
This commit is contained in:
parent
79c607f96d
commit
c7a415dbf8
26
docs/conf.py
26
docs/conf.py
@ -82,7 +82,7 @@ todo_include_todos = True
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# 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
|
||||
# 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
|
||||
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
|
||||
html_sidebars = {
|
||||
'**': [
|
||||
'relations.html', # needs 'show_related': True theme option to display
|
||||
'searchbox.html',
|
||||
]
|
||||
}
|
||||
# html_sidebars = {
|
||||
# '**': [
|
||||
# 'relations.html', # needs 'show_related': True theme option to display
|
||||
# 'searchbox.html',
|
||||
# ]
|
||||
# }
|
||||
|
||||
|
||||
# -- 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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user