Checking link texts
A reference written without a link text of its own shows the title of its target. The documentation guidelines ask for a text of its own instead, see Link text. A manual can have the rendering warn about every reference that has none:
<extension class="\T3Docs\Typo3DocsTheme\DependencyInjection\Typo3DocsThemeExtension"
interlink-shortcode="my-manual"
check-link-text="true"
/>
The check is off by default. Most manuals still have references without a link
text, and a warning fails a render with
--, which is what
their pipelines run.
What is checked
:ref:and:doc:- Warns about
:ref:my-labeland :, but not aboutrst:`: doc:`Some/ Page :ref:Link text <my-label>``. - Permalinks
- Warns about a permalink URL written on its own, such as
https://, since it too shows the title of its target.docs. typo3. org/ permalink/ my- manual: my- label
Not checked are the roles that show the name they point to, such as
:php:
,
:confval:
or
:t3ext:
, and the
:changelog:
option of
versionchanged
and its kind, which shows the title of the
changelog entry by design.
The warning names the file, but not the line, since a reference does not record where it was written.
Switching the check per page
A page can override the manual's setting with a field at its top, before the title. This switches the check off for a page that shows a reference without a link text on purpose:
:check-link-text: off
================
Navigation title
================
:check- works the other way, for a manual that is being
cleaned up page by page while the manual's setting is still off.