summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMariatta Wijaya <mariatta@python.org>2018-06-04 19:22:28 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-05 07:29:27 -0700
commitd8c03a63bc87617a9a37f8a46d5223507da16255 (patch)
treef1b1eb343423f84de2024f8e1bfc691a8bd1fe6f /doc
parent3acb4a9feb1617e619cd01614c6fbb12ca8bafab (diff)
downloadpylint-git-d8c03a63bc87617a9a37f8a46d5223507da16255.tar.gz
Use python-docs-theme
Closes https://github.com/PyCQA/pylint/issues/2167
Diffstat (limited to 'doc')
-rw-r--r--doc/conf.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/doc/conf.py b/doc/conf.py
index de281161d..f9c3f883b 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -99,12 +99,15 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'nature'
+html_theme = 'python_docs_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
# documentation.
-#html_theme_options = {}
+html_theme_options = {
+ 'collapsiblesidebar': True,
+ 'issues_url': 'https://github.com/pycqa/pylint/issues/new',
+}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
@@ -137,7 +140,14 @@ html_static_path = ['_static']
smartquotes = False
# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
+html_sidebars = {
+ '**': [
+ 'localtoc.html',
+ 'globaltoc.html',
+ 'relations.html',
+ 'sourcelink.html'
+ ]
+}
# Additional templates that should be rendered to pages, maps page names to
# template names.
@@ -153,7 +163,7 @@ smartquotes = False
#html_split_index = False
# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
+html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True