Skip to content

Conversation

nobu
Copy link
Member

@nobu nobu commented Mar 21, 2021

While links to generated HTML from RDoc file needs to be prefixed by "rdoc-ref:" currently, in case of explicit references this seems just redundant.

Also GitHub RDoc support does not work with this prefix.

This patch lets links to such document texts (".rb", ".rdoc" and ".md" now) refer URLs generated by RDoc::TopLevel#http_url without the prefix.

nobu added 2 commits March 21, 2021 15:14
The dots in all path components from the document root are
replaced with underscores, not only in the basename.
While links to generated HTML from RDoc file needs to be prefixed
by "rdoc-ref:" currently, in case of explicit references this
seems just redundant.

Also GitHub RDoc support does not work with this prefix.

This patch lets links to such document texts (".rb", ".rdoc" and
".md" now) refer URLs generated by `RDoc::TopLevel#http_url`
without the prefix.
@aycabta aycabta merged commit 2810ec5 into ruby:master Mar 30, 2021
@nobu nobu deleted the rdoc-links branch April 5, 2021 11:58
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.

2 participants