You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruby-doc.org is NOT the official documentation website, nor is rubydoc.info. The official one is https://docs.ruby-lang.org/en and I don't think it has this problem as the sidebar section you screenshotted seems to be a customization of ruby-doc.org.
So unless there's also a deadlink on the official website, there's nothing we can fix here.
Does it make sense to remove the link from the README.md like below?
diff --git a/before.md b/after.md
index a28588e..02a4e0b 100644
--- a/before.md+++ b/after.md@@ -2,4 +2,4 @@
It's compatible with the readline standard library.
-See [the document of readline stdlib](https://ruby-doc.org/stdlib/exts/readline/Readline.html) or [bin/example](https://github.com/ruby/reline/blob/master/bin/example).+See [bin/example](https://github.com/ruby/reline/blob/master/bin/example).
Since ruby/ruby is aliasing the constants, I think this is a correct behaviour. We can, however, exclude readline.rb from documentation generation by updating ruby/ruby's rdoc config.
Activity
st0012 commentedon Jan 8, 2025
ruby-doc.org is NOT the official documentation website, nor is
rubydoc.info. The official one is https://docs.ruby-lang.org/en and I don't think it has this problem as the sidebar section you screenshotted seems to be a customization of ruby-doc.org.So unless there's also a deadlink on the official website, there's nothing we can fix here.
kyanny commentedon Jan 9, 2025
Hi @st0012 thank you for the comment.
https://docs.ruby-lang.org/en/master/Readline.html exists (good news) but it looks less informative than https://ruby-doc.org/3.2.6/exts/readline/Readline.html (bad news)
If you agree with updating the link in README.md to https://docs.ruby-lang.org/en/master/Readline.html I am happy to open a pull request.
(just in case - I am talking about this dead link)

ima1zumi commentedon Jan 9, 2025
The page at https://docs.ruby-lang.org/en/master/Readline.html is displaying Reline documentation instead of Readline documentation. We should fix RDoc or RDoc generation process.
kyanny commentedon Jan 9, 2025
readlineis no longer a standard library (now it's readline-ext gem) so its documentation never shows up on https://docs.ruby-lang.org/en/, am I correct?Does it make sense to remove the link from the README.md like below?
st0012 commentedon Jan 9, 2025
Ah yes, we should fix it. Sorry that I missed that part.
I believe it comes from: https://github.com/ruby/ruby/blob/master/lib/readline.rb#L6. If you remove this part
Readlinedisappears from the generated documentation.Since
ruby/rubyis aliasing the constants, I think this is a correct behaviour. We can, however, excludereadline.rbfrom documentation generation by updatingruby/ruby's rdoc config.st0012 commentedon Jan 9, 2025
Ideally, I think reline should have its own documentation for all of its features and stop referencing to readline's docs.