mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8748 from tk0miya/6550_deprecation_warning_for_html_add_permalinks
Fix #6550: Emit a deprecation warning for html_add_permalinks
This commit is contained in:
commit
eaa14bb0b0
@ -1234,6 +1234,9 @@ def validate_html_favicon(app: Sphinx, config: Config) -> None:
|
|||||||
def migrate_html_add_permalinks(app: Sphinx, config: Config) -> None:
|
def migrate_html_add_permalinks(app: Sphinx, config: Config) -> None:
|
||||||
"""Migrate html_add_permalinks to html_permalinks*."""
|
"""Migrate html_add_permalinks to html_permalinks*."""
|
||||||
if config.html_add_permalinks:
|
if config.html_add_permalinks:
|
||||||
|
# RemovedInSphinx60Warning
|
||||||
|
logger.warning(__('html_add_permalinks has been deprecated since v3.5.0. '
|
||||||
|
'Please use html_permalinks and html_permalinks_icon instead.'))
|
||||||
if (isinstance(config.html_add_permalinks, bool) and
|
if (isinstance(config.html_add_permalinks, bool) and
|
||||||
config.html_add_permalinks is False):
|
config.html_add_permalinks is False):
|
||||||
config.html_permalinks = False # type: ignore
|
config.html_permalinks = False # type: ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user