Skip to content

Commit e1adbbd

Browse files
authored
Merge pull request #791 from webknjaz/maintenance/furo-theme-sphinx
💄 Change Sphinx theme to furo
2 parents 93c8133 + f52d232 commit e1adbbd

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
furo==2023.9.10
12
sphinx==7.2.6
23
sphinx-autobuild==2021.3.14
34
sphinx-inline-tabs==2023.4.21
4-
python-docs-theme==2023.9
55
sphinx-copybutton==0.5.2
6-
pypa-docs-theme @ git+https://github.com/pypa/pypa-docs-theme.git
76
sphinx-toolbox==3.5.0

source/assets/py.png

695 Bytes
Loading

source/conf.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
# show_authors = False
134134

135135
# The name of the Pygments (syntax highlighting) style to use.
136-
pygments_style = 'sphinx'
136+
#pygments_style = 'sphinx'
137137

138138
# A list of ignored prefixes for module index sorting.
139139
# modindex_common_prefix = []
@@ -150,16 +150,14 @@
150150
# The theme to use for HTML and HTML Help pages. See the documentation for
151151
# a list of builtin themes.
152152
#
153-
html_theme = 'pypa_theme'
153+
html_theme = 'furo'
154154

155155
# Theme options are theme-specific and customize the look and feel of a theme
156156
# further. For a list of options available for each theme, see the
157157
# documentation.
158158
html_theme_options = {
159-
'collapsiblesidebar': True,
160-
'externalrefs': True,
161-
'navigation_depth': 2,
162-
'issues_url': github_repo_issues_url,
159+
"sidebar_hide_name": True,
160+
# 'issues_url': github_repo_issues_url, # FIXME: support this in furo?
163161
}
164162

165163
# Add any paths that contain custom themes here, relative to this directory.
@@ -177,7 +175,7 @@
177175
# The name of an image file (relative to this directory) to place at the top
178176
# of the sidebar.
179177
#
180-
# html_logo = None
178+
html_logo = 'assets/py.png'
181179

182180
# The name of an image file (relative to this directory) to use as a favicon of
183181
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
@@ -211,10 +209,10 @@
211209
#
212210

213211
# Custom sidebar templates, filenames relative to this file.
214-
html_sidebars = {
215-
'**': ['globaltoc.html', 'relations.html'],
216-
'index': ['globaltoc.html']
217-
}
212+
# html_sidebars = {
213+
# '**': ['globaltoc.html', 'relations.html'],
214+
# 'index': ['globaltoc.html']
215+
# }
218216

219217
# Additional templates that should be rendered to pages, maps page names to
220218
# template names.

0 commit comments

Comments
 (0)