8000 Switch the theme to 'furo' (#679) · python/devguide@d6714a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6714a4

Browse files
authored
Switch the theme to 'furo' (#679)
1 parent cc033ad commit d6714a4

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed< 10000 /span>

conf.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo']
32+
extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx_copybutton']
3333
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
3434
todo_include_todos = True
3535

@@ -93,11 +93,8 @@
9393
# -- Options for HTML output ---------------------------------------------------
9494

9595
# Use the upstream python-docs-theme
96-
html_theme = 'python_docs_theme'
97-
html_theme_options = {
98-
'collapsiblesidebar': True,
99-
'issues_url': 'https://github.com/python/devguide/issues/new',
100-
}
96+
html_theme = 'furo'
97+
html_theme_options = {}
10198

10299

103100
# The name for this set of Sphinx documents. If None, it defaults to
@@ -107,13 +104,6 @@
107104
# Path to find HTML templates.
108105
templates_path = ['tools/templates']
109106

110-
# Custom sidebar templates, filenames relative to this file.
111-
html_sidebars = {
112-
# Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
113-
# Removes the quick search block
114-
'**': ['localtoc.html', 'globaltoc.html', 'relations.html', 'customsourcelink.html'],
115-
}
116-
117107
# Additional static files.
118108
html_static_path = ['tools/static']
119109

@@ -122,7 +112,7 @@
122112

123113
# The name of an image file (relative to this directory) to place at the top
124114
# of the sidebar.
125-
#html_logo = None
115+
html_logo = "python-logo.png"
126116

127117
# The name of an image file (within the static path) to use as favicon of the
128118
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

python-logo.png

9.72 KB
Loading

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Sphinx==3.5.4
2-
python-docs-theme==2021.5
2+
furo
3+
sphinx_copybutton

0 commit comments

Comments
 (0)
0