-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Optionally generate foo/index.html with foo/ links, instead of foo.html #19600
Comments
Is there a good reason to not include the |
No, this is purely aesthetics. There is precedent in Sphinx’s |
An example of Sphinx docs that use |
Triage: no change |
Triage: no change. |
Closing in favor of #16103. |
That is not the same (having a top-level index at all vs generating shorter links to existing indices), but I’m not really attached to this anymore so ¯\_(ツ)_/¯ |
Yeah, I'm also not a fan of breaking |
Yes, the suggestion was an off-by-default option. |
Currently, rustdoc generates HTML links like
<a href="../std/index.html">
(this is from the crate index side bar.) When docs are served over HTTP(S), with most servers,<a href="../std/">
works just as well and looks nicer. However this doesn’t work when when locally-generated docs are viewed withfile://…
URLs.There should be an off-by-default option in rustdoc to generate the shorter links instead.
Edit: while we’re at it, every
foo.html
page should also befoo/index.html
instead, so that short links are not just for pages that are alreadysomething/index.html
.The text was updated successfully, but these errors were encountered: