rust/src/doc
Manish Goregaokar 252027768e Rollup merge of #25530 - peferron:doc-closures-whitespace-fix, r=alexcrichton
Tiny fixes collected while reading through the Rust book. If they're too nitpicky please let me know and I'll ignore the next ones. :)

The spaces after the function and closure arguments might be intentional, but they do not make much sense: the usual formatting doesn't have such spaces, and they aren't helping align the three lines together either.

r? @steveklabnik (as suggested by [CONTRIBUTING.md](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md))
2015-05-18 08:55:38 +05:30
..
style Fix invalid references due to the automated string substitution 2015-05-09 02:24:18 +09:00
trpl Rollup merge of #25530 - peferron:doc-closures-whitespace-fix, r=alexcrichton 2015-05-18 08:55:38 +05:30
complement-design-faq.md Auto merge of #25453 - jimblandy:FQA-fiasco-link, r=alexcrichton 2015-05-16 08:37:31 +00:00
complement-lang-faq.md Fix deadlinks in complement-lang-faq.md 2015-05-16 18:06:22 +09:00
complement-project-faq.md doc: fix links to servo 2015-01-14 16:13:58 -08:00
favicon.inc
footer.inc Bump copyright year in doc footer 2015-01-07 09:23:31 -05:00
full-toc.inc
grammar.md Overwrite grammar sections with what was removed from the reference 2015-05-10 22:47:39 -04:00
guide-crates.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-error-handling.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-ffi.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-macros.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-ownership.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-plugins.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-pointers.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-strings.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-tasks.md Fix broken link in old rust guide 2015-03-04 23:18:24 +00:00
guide-testing.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide-unsafe.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
guide.md Grammar tweak to old guide stub documents. 2015-01-16 22:25:22 -05:00
index.md Rollup merge of #25331 - michaelsproul:err-idx-doc-link, r=Manishearth 2015-05-12 22:57:53 +05:30
intro.md Remove the 30 minute intro 2015-04-18 17:55:31 -04:00
not_found.md Fix #24872, XSS in docs not found page. 2015-04-28 13:31:45 +10:00
README.md remove l10n 2014-12-17 21:00:04 -05:00
reference.md Fix link to RFC 255 in Reference. 2015-05-13 19:07:19 -05:00
rust.css Enforce a white background for the docs 2015-02-23 18:04:51 -05:00
rust.md
rustdoc.md Move rustdoc.md into the book 2015-01-21 14:59:25 -05:00
tutorial.md Re-direct to the right place. 2015-01-13 21:11:47 -05:00
uptack.tex Changed LaTex $\bot$s to ⊥ 2014-12-19 18:09:33 -05:00
version_info.html.template

Rust documentations

Dependencies

Pandoc, a universal document converter, is required to generate docs as HTML from Rust's source code.

Building

To generate all the docs, just run make docs from the root of the repository. This will convert the distributed Markdown docs to HTML and generate HTML doc for the 'std' and 'extra' libraries.

To generate HTML documentation from one source file/crate, do something like:

rustdoc --output html-doc/ --output-format html ../src/libstd/path.rs

(This, of course, requires a working build of the rustdoc tool.)

Additional notes

To generate an HTML version of a doc from Markdown manually, you can do something like:

pandoc --from=markdown --to=html5 --number-sections -o reference.html reference.md

(reference.md being the Rust Reference Manual.)

The syntax for pandoc flavored markdown can be found at:

A nice quick reference (for non-pandoc markdown) is at: