mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
linkcheck: Exclude links from matched documents
This commit is contained in:
committed by
François Freitag
parent
471022b6df
commit
10023da895
@@ -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.
|
||||
@@ -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.
|
||||
5
tests/roots/test-linkcheck-documents_exclude/conf.py
Normal file
5
tests/roots/test-linkcheck-documents_exclude/conf.py
Normal file
@@ -0,0 +1,5 @@
|
||||
exclude_patterns = ['_build']
|
||||
linkcheck_exclude_documents = [
|
||||
'^broken_link$',
|
||||
'br[0-9]ken_link',
|
||||
]
|
||||
3
tests/roots/test-linkcheck-documents_exclude/index.rst
Normal file
3
tests/roots/test-linkcheck-documents_exclude/index.rst
Normal file
@@ -0,0 +1,3 @@
|
||||
.. toctree::
|
||||
broken_link
|
||||
br0ken_link
|
||||
Reference in New Issue
Block a user