mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6307 from tk0miya/6283_warning_message_for_source_suffix
Update deprecation message for source_suffix (refs: #6283)
This commit is contained in:
commit
de7646bce8
@ -29,7 +29,7 @@ def deprecate_source_parsers(app, config):
|
|||||||
# type: (Sphinx, Config) -> None
|
# type: (Sphinx, Config) -> None
|
||||||
if config.source_parsers:
|
if config.source_parsers:
|
||||||
warnings.warn('The config variable "source_parsers" is deprecated. '
|
warnings.warn('The config variable "source_parsers" is deprecated. '
|
||||||
'Please use app.add_source_parser() API instead.',
|
'Please update your extension for the parser and remove the setting.',
|
||||||
RemovedInSphinx30Warning)
|
RemovedInSphinx30Warning)
|
||||||
for suffix, parser in config.source_parsers.items():
|
for suffix, parser in config.source_parsers.items():
|
||||||
if isinstance(parser, str):
|
if isinstance(parser, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user