rust/doc
Kevin Ballard de6f213927 Restore missing line breaks in doc/index.html
a30d61b05a removed all of the trailing whitespace in doc/index.md.
Unfortunately, that trailing whitespace was actually markdown syntax for
line breaks.
2014-01-11 19:15:05 -08:00
..
lib
po/ja Remove *.pot files and ignore them now. 2014-01-10 07:21:32 +09:00
complement-bugreport.md Various READMEs and docs cleanup 2014-01-11 19:41:31 +01:00
complement-cheatsheet.md Fix cheatsheet examples on 32-bit platforms. 2014-01-09 02:16:36 +11:00
complement-lang-faq.md Various READMEs and docs cleanup 2014-01-11 19:41:31 +01:00
complement-project-faq.md Various READMEs and docs cleanup 2014-01-11 19:41:31 +01:00
complement-usage-faq.md Various READMEs and docs cleanup 2014-01-11 19:41:31 +01:00
favicon.inc doc: add favicon to tutorial/manual 2013-11-13 09:32:50 +01:00
full-toc.inc First phase of migrating the wiki to the internal docs #11078 2014-01-06 15:27:49 -06:00
guide-conditions.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
guide-container.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
guide-ffi.md 'borrowed pointer' -> 'reference' 2014-01-07 18:49:13 -08:00
guide-lifetimes.md 'borrowed pointer' -> 'reference' 2014-01-07 18:49:13 -08:00
guide-macros.md doc: Title guides consistently 2014-01-07 17:01:06 -08:00
guide-pointers.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
guide-rustpkg.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
guide-tasks.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
guide-testing.md Remove ApproxEq and assert_approx_eq! 2014-01-09 15:41:46 +11:00
index.md Restore missing line breaks in doc/index.html 2014-01-11 19:15:05 -08:00
po4a.conf Update doc/po4a.conf for recent changes. 2014-01-10 07:21:32 +09:00
prep.js
README.md Various READMEs and docs cleanup 2014-01-11 19:41:31 +01:00
rust.css First phase of migrating the wiki to the internal docs #11078 2014-01-06 15:27:49 -06:00
rust.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
rustdoc.md auto merge of #11185 : huonw/rust/doc-ignore, r=cmr 2013-12-30 05:51:51 -08:00
rustpkg.md Update Docs to use crateid 2013-12-29 15:25:43 -05:00
tutorial.md Remove re-exports of std::io::stdio::{print, println} in the prelude. 2014-01-11 10:46:00 +11:00
version_info.html.template doc/rust.HTML: proper version box 2013-10-19 20:31:53 +02:00

Dependencies

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

Node.js is also required for generating HTML from the Markdown docs (reference manual, tutorials, etc.) distributed with this git repository.

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-dir 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 without having Node.js installed, you can do something like:

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

(rust.md being the Rust Reference Manual.)

The syntax for pandoc flavored markdown can be found at: http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown

A nice quick reference (for non-pandoc markdown) is at: http://kramdown.rubyforge.org/quickref.html