Skip to content

[TASK] Document anchor persistence rule - #537

Merged
linawolf merged 2 commits into
mainfrom
docs/anchor-persistence
Aug 12, 2026
Merged

[TASK] Document anchor persistence rule#537
linawolf merged 2 commits into
mainfrom
docs/anchor-persistence

Conversation

@linawolf

Copy link
Copy Markdown
Member

Depends on #536 — this PR is based on docs/renaming-deleting-pages and its :ref:redirects`` link only resolves once that page exists. Please merge #536 first (or into it), then rebase/retarget this PR onto main.


An anchor is a promise: once a page containing it has reached main,
the anchor must keep working, even after the heading it was on is
gone. Document what to do instead of deleting it (move to the
covering heading, or into Documentation/404.rst for removed
concepts), referencing the redirects guide for the full pattern.
Unlike the redirects process itself, this rule applies to anyone
writing TYPO3 documentation, not just official repositories.

Also notes that malformed anchor lines silently fail instead of
erroring, which is easy to miss.

Verified with the full Docker render pipeline.

Assisted-by: Claude Sonnet 5 [email protected]
Signed-off-by: Lina Wolf

Removing content without a redirect has confused users who had an
old link bookmarked or indexed by a search engine. Document the
site-intercept redirect process for official TYPO3 documentation
repositories (anyone can open a PR there, not just maintainers) --
explicitly out of scope for individual extension docs, since it
doesn't scale to a PR per extension per rename.

Includes the Documentation/404.rst pattern for deleted-with-no-
replacement content, using the real 404.rst in
TYPO3CMS-Reference-CoreApi as a concrete example.

Verified against the actual site-intercept repo (file path,
default branch, and URL pattern all confirmed) and with the full
Docker render pipeline.

Assisted-by: Claude Sonnet 5 <[email protected]>
Signed-off-by: Lina Wolf
An anchor is a promise: once a page containing it has reached main,
the anchor must keep working, even after the heading it was on is
gone. Document what to do instead of deleting it (move to the
covering heading, or into Documentation/404.rst for removed
concepts), referencing the redirects guide for the full pattern.
Unlike the redirects process itself, this rule applies to anyone
writing TYPO3 documentation, not just official repositories.

Also notes that malformed anchor lines silently fail instead of
erroring, which is easy to miss.

Verified with the full Docker render pipeline.

Assisted-by: Claude Sonnet 5 <[email protected]>
Signed-off-by: Lina Wolf
Base automatically changed from docs/renaming-deleting-pages to main August 12, 2026 09:51
@linawolf
linawolf merged commit ac4e509 into main Aug 12, 2026
2 checks passed
@linawolf
linawolf deleted the docs/anchor-persistence branch August 12, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant