mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Show deprecation warning for viewcode_import
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -20,6 +20,7 @@ Bugs fixed
|
|||||||
* deprecation warnings are not emitted
|
* deprecation warnings are not emitted
|
||||||
|
|
||||||
- sphinx.application.CONFIG_FILENAME
|
- sphinx.application.CONFIG_FILENAME
|
||||||
|
- :confval:`viewcode_import`
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -251,6 +251,7 @@ def setup(app):
|
|||||||
app.add_config_value('viewcode_import', None, False)
|
app.add_config_value('viewcode_import', None, False)
|
||||||
app.add_config_value('viewcode_enable_epub', False, False)
|
app.add_config_value('viewcode_enable_epub', False, False)
|
||||||
app.add_config_value('viewcode_follow_imported_members', True, False)
|
app.add_config_value('viewcode_follow_imported_members', True, False)
|
||||||
|
app.connect('config-inited', migrate_viewcode_import)
|
||||||
app.connect('doctree-read', doctree_read)
|
app.connect('doctree-read', doctree_read)
|
||||||
app.connect('env-merge-info', env_merge_info)
|
app.connect('env-merge-info', env_merge_info)
|
||||||
app.connect('html-collect-pages', collect_pages)
|
app.connect('html-collect-pages', collect_pages)
|
||||||
|
|||||||
Reference in New Issue
Block a user