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

Lots of improvements to rustdoc #9475

Closed
wants to merge 16 commits into from

Conversation

alexcrichton
Copy link
Member

The commit messages are a good technical summary, a good visual summary (contrib is this version):

Pub use statements now rendered. Notice how almost all components are also clickable!

Private things hidden by default (for at least some approximation of privacy). I hope to improve this once privacy is totally ironed out.

Unindentation now works properly:

Also sundown has massively reduced compilation time (of docs, not the of the crates)

@andrew-d
Copy link
Contributor

Worth noting that the # Example header in your last link isn't getting rendered...

@alexcrichton
Copy link
Member Author

Oh whoops, thanks for pointing that out! Should be fixed now (@cmr also noticed this on IRC)

@huonw
Copy link
Member

huonw commented Sep 25, 2013

Needs a rebase, too.

@alexcrichton
Copy link
Member Author

Rebased and comments addressed, thanks!

This also starts compiling it in the same manner as linenoise, it's just bundled
with librustrt directly, and we export just a few symbols out of it.
This takes rendering times of documentation down from 30s to 0.5s. Kinda sad
that none of the parallelism is needed, but oh well!

Closes rust-lang#7380
cc rust-lang#3546
    find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g'
    find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g'
    find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
There is less implicit removal of various comment styles, and it also removes
extraneous stars occasionally found in docblock comments. It turns out that the
bug for getops was just a differently formatted block.

Closes rust-lang#9425
Closes rust-lang#9417
In doing so, also remove the collapse-privacy pass because it's a little
over-zealous and may not be right 100% of the time (not used right now as well)
This will probably need to get tweaked once the privacy rules have been fully
agreed on, but for now this has all of the infrastructure necessary for
filtering out private items.

Closes rust-lang#9410
This way each component of a reexport path is click-able to the destination that
it's referencing.
This allows reasonable behavior when an enum is clicked in an import.
The "Unresolved" variant could be completely removed becuase it turns out that
the interim state only very briefly lives.
Doesn't make much sense to unindent each line individually and *then* collapse
them all together.
Turns out eagerly trimming comes back to bite you :(
bors added a commit that referenced this pull request Sep 25, 2013
The commit messages are a good technical summary, a good visual summary (contrib is this version):

Pub use statements now rendered. Notice how almost all components are also clickable!
* http://static.rust-lang.org/doc/master/std/prelude/index.html
* http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/prelude/index.html

Private things hidden by default (for at least some approximation of privacy). I hope to improve this once privacy is totally ironed out.
* http://static.rust-lang.org/doc/master/std/hashmap/struct.HashMap.html
* http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/hashmap/struct.HashMap.html

Unindentation now works properly:
* http://static.rust-lang.org/doc/master/extra/getopts/index.html
* http://www.contrib.andrew.cmu.edu/~acrichto/doc/extra/getopts/index.html

Also sundown has massively reduced compilation time (of docs, not the of the crates)
@bors bors closed this Sep 25, 2013
djkoloski pushed a commit to djkoloski/rust that referenced this pull request Sep 21, 2022
Make module-style lints resilient to --remap-path-prefix

changelog: [`self_named_module_files`], [`mod_module_files`]: Make module-style lints resilient to `--remap-path-prefix`

Without this if a user has configured `--remap-path-prefix` to be used for a prefix containing the current source directory the lints would silently fail to generate a warning.
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.

4 participants