docs: configure linkcheck
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 7 Nov 2022 11:03:57 +0000 (12:03 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 10 Nov 2022 16:26:19 +0000 (17:26 +0100)
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19574>

docs/conf.py

index 6e588eb..73d71d9 100644 (file)
@@ -140,6 +140,18 @@ html_redirects = [
 ]
 
 
+# -- Options for linkcheck ------------------------------------------------
+
+linkcheck_ignore = [
+  r'specs/.*\.spec', # gets copied during the build process
+  r'news:.*', # seems linkcheck doesn't like the news: URI-scheme...
+  r'http://mesa-ci-results.jf.intel.com', # only available for Intel employees
+  r'https://gitlab.com/.*#.*', # needs JS eval
+  r'https://gitlab.freedesktop.org/.*#.*', # needs JS eval
+  r'https://github.com/.*#.*', # needs JS eval
+]
+
+
 # -- Options for HTMLHelp output ------------------------------------------
 
 # Output file base name for HTML help builder.