Skip to content

Commit 92c7a8e

Browse files
authored
MAINT: deprecations (#1381)
* finally remove the "after 0.13" deprecations * fix test
1 parent 92445e9 commit 92c7a8e

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

src/pydata_sphinx_theme/__init__.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ def update_config(app):
3636
"The configuration `logo_text` is deprecated." "Use `'logo': {'text': }`."
3737
)
3838

39-
# TODO: deprecation; remove after 0.13 release
40-
if theme_options.get("page_sidebar_items"):
41-
theme_options["secondary_sidebar_items"] = theme_options.get(
42-
"page_sidebar_items"
43-
)
44-
logger.warning(
45-
"The configuration `page_sidebar_items` is deprecated."
46-
"Use `secondary_sidebar_items`."
47-
)
48-
4939
# TODO: DEPRECATE after 0.14
5040
if theme_options.get("footer_items"):
5141
theme_options["footer_start"] = theme_options.get("footer_items")
@@ -71,14 +61,6 @@ def update_config(app):
7161
if not utils.config_provided_by_user(app, "html_permalinks_icon"):
7262
app.config.html_permalinks_icon = "#"
7363

74-
# Raise a warning for a deprecated theme switcher config
75-
# TODO: deprecation; remove after 0.13 release
76-
if "url_template" in theme_options.get("switcher", {}):
77-
logger.warning(
78-
"html_theme_options['switcher']['url_template'] is no longer supported."
79-
" Set version URLs in JSON directly."
80-
)
81-
8264
# check the validity of the theme switcher file
8365
is_dict = isinstance(theme_options.get("switcher"), dict)
8466
should_test = theme_options.get("check_switcher", True)

tests/sites/deprecated/conf.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
html_theme_options = {
2424
"search_bar_position": "navbar",
2525
"logo_text": "DOCS",
26-
"page_sidebar_items": [
27-
"page-toc.html",
28-
"edit-this-page.html",
29-
"sourcelink.html",
30-
],
3126
"footer_items": ["page-toc.html"],
3227
"favicons": [
3328
{

tests/test_build.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,9 @@ def test_deprecated_build_html(sphinx_build_factory, file_regression) -> None:
790790
warnings = [w.lstrip("\x1b[91m").rstrip("\x1b[39;49;00m\n") for w in warnings]
791791
expected_warnings = (
792792
"The configuration `logo_text` is deprecated",
793-
"The configuration `page_sidebar_items` is deprecated",
794793
"The configuration `favicons` is deprecated.",
795794
"`footer_items` is deprecated",
796795
"unsupported theme option 'logo_text'",
797-
"unsupported theme option 'page_sidebar_items'",
798796
)
799797
assert len(warnings) == len(expected_warnings)
800798
for exp_warn in expected_warnings:

0 commit comments

Comments
 (0)