-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Contrib doc #28815
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
Contrib doc #28815
Conversation
|
||
[adocs]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AA-docs | ||
|
||
To render documentation you can use rustdoc. For example, `rustdoc | ||
src/doc/reference.md` will render reference to `doc/reference.html`. The css | ||
might be messed up, but you can verify that html is right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
The English is great. 😄 A few things:
rustdoc
should be in graves, so it renders like code.- CSS and HTML not css and html
- Can you add something to indicate that this might not always work? Something like
In many cases, you don't need a full
make doc
. You can userustdoc
directly to check small fixes. For example...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be OK now. Should I squash the last two commits?
Yes please! |
rebased |
@bors: r+ rollup |
📌 Commit c3753ce has been approved by |
This adds a paragraph on how to generate documentation without sloooow `make doc`. I'm not a native English speaker, so there might be some language related bugs (I wish English was as hard to get wrong, as Rust) This also includes whitespace cleanup of contributing.md in a separate commit. Whiltespace is not significant in github flavored markdown, and my Emacs just cleans ws automatically :) r? @steveklabnik
This adds a paragraph on how to generate documentation without sloooow
make doc
. I'm not a native English speaker, so there might be some language related bugs (I wish English was as hard to get wrong, as Rust)This also includes whitespace cleanup of contributing.md in a separate commit. Whiltespace is not significant in github flavored markdown, and my Emacs just cleans ws automatically :)
r? @steveklabnik