diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-11 22:20:24 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-05-03 22:36:38 +0900 |
commit | 7682353574e7c8b54330f2ce8f273a16816a6d02 (patch) | |
tree | 08549e4ecb0d5fb6d9037f98f4685683837be858 /doc/conf.py | |
parent | 3027a2f8675e6140f2d8b83d19bec4159a09af5c (diff) | |
download | sphinx-git-7682353574e7c8b54330f2ce8f273a16816a6d02.tar.gz |
extlinks: Emit a warning if extlnks config does not contain '%s'
To let users know the deprecation surely, use logger.warning instead
of RemovedInSphinxXXWarning since 5.0. It will cause a crash if users
use `-W` option on their CI.
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py index 3eb01b5ea..6d1dd2362 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -81,11 +81,11 @@ autodoc_member_order = 'groupwise' autosummary_generate = False todo_include_todos = True extlinks = {'duref': ('http://docutils.sourceforge.net/docs/ref/rst/' - 'restructuredtext.html#%s', ''), + 'restructuredtext.html#%s', '%s'), 'durole': ('http://docutils.sourceforge.net/docs/ref/rst/' - 'roles.html#%s', ''), + 'roles.html#%s', '%s'), 'dudir': ('http://docutils.sourceforge.net/docs/ref/rst/' - 'directives.html#%s', '')} + 'directives.html#%s', '%s')} man_pages = [ ('contents', 'sphinx-all', 'Sphinx documentation generator system manual', |