Skip to content

Fixes for "rST primer" hyperlinks section. - #14237

Open
gmilde wants to merge 2 commits into
sphinx-doc:masterfrom
gmilde:doc
Open

gmilde wants to merge 2 commits into
sphinx-doc:masterfrom
gmilde:doc

Conversation

@gmilde

@gmilde gmilde commented Jan 4, 2026 •

Copy link
Copy Markdown
Contributor

Add a link to the "standalone hyperlinks" specification.

Use a dedicated example URI instead of https://domain.invalid/.

Separate targets may also sensibly be placed at the end of the document (especially, when they are referenced more than once).

Shorten the "tip" to use an anonymous URL when embedding the target: Since Docutils 0.22, named hyperlinks with embedded URI generate "implicit" targets. This allows re-use of the link name with a different URI (a "warning" is logged).

Remove duplicate paragraph documenting named hyperlinks with separate targets.

References

No AI was used for this patch.

Add a link to the "standalone hyperlinks" specification.

Use a dedicated example URI instead of `https://domain.invalid/`.

Separate targets may also sensibly be placed at the end of the document
(especially, when they are referenced more than once).

Shorten the "tip" to use an anonymous URL when embedding the target:
Since Docutils 0.22, named hyperlinks with embedded URI generate
"implicit" targets. This allows re-use of the link name with a different URI
(a "warning" is logged).

Remove duplicate paragraph documenting named hyperlinks with separate targets.

Fixes sphinx-doc#13613.
@gmilde

gmilde commented Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

The failing check is about type hints somewhere in the code, not about this documentation patch!

@jayaddison

Copy link
Copy Markdown
Contributor

The failing check is about type hints somewhere in the code, not about this documentation patch!

Reported as #14238; hopefully with a fix ready in a few moments, too.

@jfbu jfbu added this to the 9.1.1 milestone Jun 27, 2026
@jdillard jdillard mentioned this pull request Jul 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading documentation on rST hyperlink syntax.

5 participants