Skip to content
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

cleanup summery line docs #17473

Closed
wants to merge 4 commits into from

Conversation

liigo
Copy link
Contributor

@liigo liigo commented Sep 23, 2014

Move links in summery line docs to following detail docs.

Fixes #16928

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

@@ -20,14 +20,14 @@ static RAND_SIZE_LEN: u32 = 8;
static RAND_SIZE: u32 = 1 << (RAND_SIZE_LEN as uint);
static RAND_SIZE_UINT: uint = 1 << (RAND_SIZE_LEN as uint);

/// A random number generator that uses the ISAAC algorithm[1].
/// A random number generator that uses the [ISAAC] algorithm.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, it is a citation, not a link. (The link "URL" is a nonsense URL.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huonw Basically the same as before (both not a link). I'll revert this change if you still care it.
Before(nightly): http://doc.rust-lang.org/nightly/rand/isaac/struct.IsaacRng.html
After this change: http://liigo.com/tmp/summery-line/rand/isaac/struct.IsaacRng.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer the [1] numbers. Feel free to move it to the first mention of ISAAC in the next paragraph though. (i.e. so that is not in the summary.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huonw Good idea! I'll update, thank you!

@liigo
Copy link
Contributor Author

liigo commented Sep 23, 2014

Hopefully this will speed up landing #16448

@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! # The Rust core allocation library
//! The Rust core allocation library
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the # heading removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to try avoid showing raw markdown code in tooltips: #16448

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current look-and-feel of the headings on the index pages is about what we would want, so I don't think we should compromise the headings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with #, will get it back, and handle it inside #16448.

@liigo
Copy link
Contributor Author

liigo commented Sep 25, 2014

Updated. Move links in summery line docs to following detail docs, and restore #s.
Thank you @huonw and @alexcrichton for you good advising!

@liigo
Copy link
Contributor Author

liigo commented Sep 25, 2014

Not ready to merge. I need double check other summery lines that has links too.

@liigo
Copy link
Contributor Author

liigo commented Sep 25, 2014

@huonw @alexcrichton r?

@alexcrichton
Copy link
Member

Is the purpose of this PR to move out all markdown from the one-line summary docs shown? If so, #16448 doesn't seem like a particularly compelling reason as I'm sure this is quite common throughout many rust libraries and this will surely come up again.

Would it be possible to fix this at the rustdoc level for #16448?

@steveklabnik
Copy link
Member

Yeah, I would prefer a rustdoc-level fix. Especially as people write their
own libraries.

@liigo
Copy link
Contributor Author

liigo commented Sep 26, 2014

Closing. I'll try to fix that at the rustdoc level. Thank you @alexcrichton

@liigo liigo closed this Sep 26, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 23, 2024
internal: Tidy up generics handling in hir-ty a bit
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 this pull request may close these issues.

try avoid using markdown code in summary line docs
6 participants