-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Style guide for links/references/citations in docs #12862
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
Comments
Speaking of references, the [1] looks a bit weird when appearing in the index page (and I suppose in other short doc references too). Maybe it's better to put references in the body only? Moreover, what about linking to doi entries (where possible) as to avoid maintenance burden for dead/moved links? |
Both of those sound reasonable to me. (It's a while ago now, but IIRC, I couldn't track down doi entries for several of the references in |
Do we have a canonical document for such advises? I see some hints in rustdoc manual and some other in wiki notes. In preparation for Sunday doc sprint, it would be good to try to uniform. I'll try to come up later with a draft wiki page, to be later discussed and finally sent as PR to rustdoc manual. Sounds ok? |
There's the style guide and the issue #4361 too. |
Another point here: some types/traits will have multiple doc-blocks with citations (e.g. a citation on the main doc description, and then some specialised method gets its own one); do we want to try to have these global across a page? (even if it's just numbered globally, although we could try to place them all together too) |
This chapter covers writing documentation in depth. Fixes rust-lang#4361 Fixes rust-lang#12862 Fixes rust-lang#14070 Fixes rust-lang#14967
e.g. I used one style in
rand
http://static.rust-lang.org/doc/master/rand/struct.XorShiftRng.htmlAnd others have used other styles elsewhere.
(Part of #4361.)
The text was updated successfully, but these errors were encountered: