Skip to content

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

Closed
huonw opened this issue Mar 13, 2014 · 5 comments · Fixed by #22549
Closed

Style guide for links/references/citations in docs #12862

huonw opened this issue Mar 13, 2014 · 5 comments · Fixed by #22549

Comments

@huonw
Copy link
Member

huonw commented Mar 13, 2014

e.g. I used one style in rand http://static.rust-lang.org/doc/master/rand/struct.XorShiftRng.html

[1]: Marsaglia, George (July 2003). "Xorshift RNGs". Journal of Statistical Software. Vol. 8 (Issue 14).

And others have used other styles elsewhere.

(Part of #4361.)

@lucab
Copy link
Contributor

lucab commented Mar 14, 2014

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?

@huonw
Copy link
Member Author

huonw commented Mar 14, 2014

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 rand, but, I did for, e.g. Gamma.)

@lucab
Copy link
Contributor

lucab commented Mar 14, 2014

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?

@huonw
Copy link
Member Author

huonw commented Mar 14, 2014

There's the style guide and the issue #4361 too.

@huonw
Copy link
Member Author

huonw commented Sep 23, 2014

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)

steveklabnik added a commit to steveklabnik/rust that referenced this issue Mar 4, 2015
This chapter covers writing documentation in depth.

Fixes rust-lang#4361
Fixes rust-lang#12862
Fixes rust-lang#14070
Fixes rust-lang#14967
bors added a commit that referenced this issue Mar 7, 2015
This chapter covers writing documentation in depth.

Fixes #4361
Fixes #12862
Fixes #14070
Fixes #14967
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 a pull request may close this issue.

2 participants