-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Simplify rustdoc URLs #34271
Comments
I find them kind of okay to write by hand. Not great, but not terrible. Would welcome improvements. On Jun 14, 2016, 10:07 +0100, Nick Cameronnotifications@github.com, wrote:
|
I personally type the path specifically with modules (e.g. |
Changes rustdoc URLs to name.namespace.html, e.g., Foo.t.html. These are easier for clients to guess since they only need to know the namespace, not the kind of item. Old URLs are preserved as redirects to the new ones. I also add redirects for modules, e.g., foo/bar/baz.t.html to foo/bar/baz/index.html, so modules are not an exception to the URL rule. And removes the ! from macro URLs. Closes rust-lang#34271
Triage: I talked extremely briefly with @nrc two weeks ago in Hawaii and I vaguely remember him saying "yeah we're giving up on this." Is this true? Should this be closed? My memory is very likely to be faulty. |
The URLs for items in Rustdoc are Byzantine combinations of the kind of item, the parent (module/struct/enum, etc) and the name of the item. These are impossible for tools to synthesise without deep knowledge of the program structure (and pretty difficult even with that knowledge). They should be much simpler.
Question: are there any advantages of the current scheme?
The text was updated successfully, but these errors were encountered: