Skip to content

Commit 986ae73

Browse files
authored
Merge pull request #6158 from hugovk/furo
Replace Read the Docs Sphinx Theme with Furo
2 parents ba5f2d7 + 553bfc4 commit 986ae73

9 files changed

Lines changed: 13 additions & 2079 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- name: Docs
9494
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == 3.10
9595
run: |
96-
python3 -m pip install sphinx-copybutton sphinx-issues sphinx-removed-in sphinx-rtd-theme sphinxext-opengraph
96+
python3 -m pip install furo sphinx-copybutton sphinx-issues sphinx-removed-in sphinxext-opengraph
9797
make doccheck
9898
9999
- name: After success

docs/conf.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# documentation root, use os.path.abspath to make it absolute, like shown here.
1717
# sys.path.insert(0, os.path.abspath('.'))
1818

19-
import sphinx_rtd_theme
20-
2119
import PIL
2220

2321
# -- General configuration ------------------------------------------------
@@ -126,13 +124,15 @@
126124
# The theme to use for HTML and HTML Help pages. See the documentation for
127125
# a list of builtin themes.
128126

129-
html_theme = "sphinx_rtd_theme"
130-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
127+
html_theme = "furo"
131128

132129
# Theme options are theme-specific and customize the look and feel of a theme
133130
# further. For a list of options available for each theme, see the
134131
# documentation.
135-
# html_theme_options = {}
132+
html_theme_options = {
133+
"light_logo": "pillow-logo-dark-text.png",
134+
"dark_logo": "pillow-logo.png",
135+
}
136136

137137
# Add any paths that contain custom themes here, relative to this directory.
138138
# html_theme_path = []
@@ -146,7 +146,7 @@
146146

147147
# The name of an image file (relative to this directory) to place at the top
148148
# of the sidebar.
149-
html_logo = "resources/pillow-logo.png"
149+
# html_logo = "resources/pillow-logo.png"
150150

151151
# The name of an image file (within the static path) to use as favicon of the
152152
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
@@ -311,10 +311,7 @@
311311

312312

313313
def setup(app):
314-
app.add_js_file("js/script.js")
315-
app.add_css_file("css/styles.css")
316314
app.add_css_file("css/dark.css")
317-
app.add_css_file("css/light.css")
318315

319316

320317
# GitHub repo for sphinx-issues

docs/handbook/image-file-formats.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ attribute will be ``None``.
2424
Fully supported formats
2525
-----------------------
2626

27-
.. contents::
28-
2927
BLP
3028
^^^
3129

0 commit comments

Comments
 (0)