From b4f46f6290802b542c0525070c9cb8e5e7e62fbe Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 5 Jun 2022 19:54:30 +0200 Subject: [PATCH] fix(doc): update extlinks to use a caption string Sphinx 4 added a new way of specifying extlinks "caption string" (instead of "prefix string") Sphinx 5 added a deprecation warning when still using the "prefix string" notation which fails the build: ``` Running Sphinx v5.0.1 Warning, treated as error: extlinks: Sphinx-6.0 will require a caption string to contain exactly one '%s' and all other '%' need to be escaped as '%%'. ``` --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index edd8dd5c..70a93378 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,8 +52,8 @@ exclude_patterns = ["_build"] extlinks = { - "issue": ("https://github.com/pypa/packaging/issues/%s", "#"), - "pull": ("https://github.com/pypa/packaging/pull/%s", "PR #"), + "issue": ("https://github.com/pypa/packaging/issues/%s", "#%s"), + "pull": ("https://github.com/pypa/packaging/pull/%s", "PR #%s"), } # -- Options for HTML output --------------------------------------------------