Help make docs beautiful for everyone! https://paper.dropbox.com/doc/Rustdoc-issue-roundup-WG-docs-rustdoc-ZSIIXNDGEPozTM9axn0BO Gist mirror: https://gist.github.com/QuietMisdreavus/be4141da320cdc8bb32226b5a4ac196b
^Z
to hide my vim and add ; echo -e '\a'
to spit a terminal bell when a build/test is done
htmldocck.py
could be just called directly like that, i should keep that in mind
x.py test
which ropes in way more things
>_>
)
>_>
)
>_>
)
src/librustdoc/html/render.rs
there's a function called item_trait
that prints everything in the main body of a trait page
trait_item
that it runs on everything in the trait definition (associated items and methods) to print its docs https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/render.rs#L2365-L2381
[src]
links are created with the help of a local Item type and its method src_href
, which tries to assemble a URL for the given item
item_trait
, so you can even steal its html generation for it, since it'll work the same https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/render.rs#L2494-L2499
item_trait
takes two Items, so the one you want is m
- the other one is the trait itself