mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
Utilities/Sphinx: Configure linkcheck allowed permanent redirects
Some permanent redirects are part of the structure of their site to make URLs look nicer. Allow them.
This commit is contained in:
@@ -89,3 +89,11 @@ html_favicon = '@conf_path@/static/cmake-favicon.ico'
|
|||||||
# qthelp_qch_name = "CMake.qch"
|
# qthelp_qch_name = "CMake.qch"
|
||||||
|
|
||||||
linkcheck_ignore = [r'about:|https://gitlab.kitware.com/cmake/community/-/wikis/doc/cpack']
|
linkcheck_ignore = [r'about:|https://gitlab.kitware.com/cmake/community/-/wikis/doc/cpack']
|
||||||
|
|
||||||
|
linkcheck_allowed_redirects = {
|
||||||
|
r'https://cdash\.org': r'https://www\.cdash\.org/',
|
||||||
|
r'https://docs\.nvidia\.com/cuda/': r'https://docs\.nvidia\.com/cuda/index\.html',
|
||||||
|
r'https://learn\.microsoft\.com/en-us/cpp/c-language/parsing-c-command-line-arguments': r'https://learn\.microsoft\.com/en-us/cpp/c-language/parsing-c-command-line-arguments\?.*',
|
||||||
|
r'https://openjdk\.java\.net/jeps/313': r'https://openjdk\.org:443/jeps/313',
|
||||||
|
r'https://www\.sphinx-doc\.org': r'https://www\.sphinx-doc\.org/en/master/',
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user