Skip to content

Commit

Permalink
finally remove the "after 0.13" deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Jul 3, 2023
1 parent 815f6b7 commit 66ddd55
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/pydata_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ def update_config(app):
"The configuration `logo_text` is deprecated." "Use `'logo': {'text': }`."
)

# TODO: deprecation; remove after 0.13 release
if theme_options.get("page_sidebar_items"):
theme_options["secondary_sidebar_items"] = theme_options.get(
"page_sidebar_items"
)
logger.warning(
"The configuration `page_sidebar_items` is deprecated."
"Use `secondary_sidebar_items`."
)

# TODO: DEPRECATE after 0.14
if theme_options.get("footer_items"):
theme_options["footer_start"] = theme_options.get("footer_items")
Expand All @@ -71,14 +61,6 @@ def update_config(app):
if not utils.config_provided_by_user(app, "html_permalinks_icon"):
app.config.html_permalinks_icon = "#"

# Raise a warning for a deprecated theme switcher config
# TODO: deprecation; remove after 0.13 release
if "url_template" in theme_options.get("switcher", {}):
logger.warning(
"html_theme_options['switcher']['url_template'] is no longer supported."
" Set version URLs in JSON directly."
)

# check the validity of the theme switcher file
is_dict = isinstance(theme_options.get("switcher"), dict)
should_test = theme_options.get("check_switcher", True)
Expand Down

0 comments on commit 66ddd55

Please sign in to comment.