rustc/src/doc
2015-02-22 09:41:28 +01:00
..
style Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
trpl Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
complement-design-faq.md Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
complement-lang-faq.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
complement-project-faq.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
favicon.inc Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
footer.inc Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
full-toc.inc Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
grammar.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-crates.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-error-handling.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-ffi.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-macros.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-ownership.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-plugins.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-pointers.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-strings.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-tasks.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-testing.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide-unsafe.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
guide.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
index.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
intro.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
not_found.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
README.md Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
reference.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
rust.css Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
rust.md Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
rustdoc.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
tutorial.md Imported Upstream version 1.0.0-alpha.2 2015-02-22 09:41:28 +01:00
uptack.tex Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00
version_info.html.template Imported Upstream version 1.0.0~0alpha 2015-01-19 10:06:37 -08:00

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: