From 0ffdf31021127b28531e071e5eb4fcf4ec04d87d Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Sun, 5 Jun 2022 22:40:06 +0200 Subject: [PATCH] Update extlinks strings to use a format string (#555) This addresses a warning in Sphinx 5, regarding the missing` %s` in these strings. ``` 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 --------------------------------------------------