mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
extlinks: Disable hardcoded links detector by default (refs: #10126)
The hardcoded links detector added since 4.4.0 causes troubles in many projects. Therefore, this disables it by default, and adds a new configuration `extlinks_detect_hardcoded_links` to enable it explicitly.
This commit is contained in:
@@ -59,3 +59,11 @@ The extension adds a config value:
|
||||
|
||||
Since links are generated from the role in the reading stage, they appear as
|
||||
ordinary links to e.g. the ``linkcheck`` builder.
|
||||
|
||||
.. confval:: extlinks_detect_hardcoded_links
|
||||
|
||||
If enabled, extlinks emits a warning if a hardcoded link is replaceable
|
||||
by an extlink, and suggests a replacement via warning. It defaults to
|
||||
``False``.
|
||||
|
||||
.. versionadded:: 4.5
|
||||
|
||||
Reference in New Issue
Block a user