Consider a conf.py with: extlinks = { "pypi": ("https://pypi.org/project/%s/", "%s"), }
Using a Python package in lowercase or not will both works to generate a valid PyPI url. For instance, a role :pypi:`Babel` will generate the url https://pypi.org/project/Babel, which is redirect permanently to https://pypi.org/project/babel However, linkcheck builder will report a redirect from non-lowercase -> lowercase form. Instead of adding an exception in conf.py, I was wondering if I can lowercase the package name in the URL, to avoid such redirect. For instance, :role:`Babel` result in https://pypi.org/project/babel Any suggestions? -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/0237e8cf-f969-4e44-ad2b-d3154847f2c2n%40googlegroups.com.