linkcheck: Exclude links from matched documents

This commit is contained in:
Christian Roth
2021-11-26 18:14:29 +01:00
committed by François Freitag
parent 471022b6df
commit 10023da895
8 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Broken link
===========
Some links are `broken <https://www.sphinx-doc.org/this-is-another-broken-link>`__
but sometimes not worrying about some broken links is a valid strategy.

View File

@@ -0,0 +1,5 @@
Broken link
===========
Some links are `broken <https://www.sphinx-doc.org/this-is-a-broken-link>`__
but sometimes not worrying about some broken links is a valid strategy.

View File

@@ -0,0 +1,5 @@
exclude_patterns = ['_build']
linkcheck_exclude_documents = [
'^broken_link$',
'br[0-9]ken_link',
]

View File

@@ -0,0 +1,3 @@
.. toctree::
broken_link
br0ken_link