Skip to content

Conversation

@sarina
Copy link
Contributor

@sarina sarina commented Jun 7, 2025

This is part of a greater docs cleanup.

Usage of :doc: is an antipattern. It is fragile and prone to breaking cross references when docs are moved or renamed.

Usage of linking directly to rendered docs is an antipattern for the same reason, with a bonus drawback of the build won't fail when docs are moved or renamed.

Adding in .. _reference: syntax to files and headings means cross-references can instead be made with the :ref: directive, which will (presuming the references themselves are not deleted or renamed) be more robust to docs refactorings.

@sarina sarina force-pushed the sarina/aspects-docs-refs branch from 8cd2057 to e3a7d04 Compare June 7, 2025 14:15
Copy link
Contributor

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up!

@bmtcril bmtcril merged commit 56f2a85 into main Jun 9, 2025
3 checks passed
@bmtcril bmtcril deleted the sarina/aspects-docs-refs branch June 9, 2025 12:14
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.

3 participants