]> git.proxmox.com Git - rustc.git/blame - src/doc/README.md
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / doc / README.md
CommitLineData
1a4d82fc
JJ
1# Rust documentations
2
1a4d82fc
JJ
3## Building
4
b039eaaf
SL
5To generate all the docs, follow the "Building Documentation" instructions in
6the README in the root of the repository. This will convert the distributed
7Markdown docs to HTML and generate HTML doc for the books, 'std' and 'extra'
8libraries.
1a4d82fc
JJ
9
10To generate HTML documentation from one source file/crate, do something like:
11
12~~~~
13rustdoc --output html-doc/ --output-format html ../src/libstd/path.rs
14~~~~
15
16(This, of course, requires a working build of the `rustdoc` tool.)
17
18## Additional notes
19
20To generate an HTML version of a doc from Markdown manually, you can do
21something like:
22
23~~~~
e9174d1e 24rustdoc reference.md
1a4d82fc
JJ
25~~~~
26
27(`reference.md` being the Rust Reference Manual.)
28
e9174d1e
SL
29An overview of how to use the `rustdoc` command is available [in the docs][1].
30Further details are available from the command line by with `rustdoc --help`.
1a4d82fc 31
92a42be0 32[1]: https://github.com/rust-lang/rust/blob/master/src/doc/book/documentation.md