diff options
| author | Gavin Baker <gavinb@antonym.org> | 2013-07-07 14:06:54 +1000 | 
|---|---|---|
| committer | Gavin Baker <gavinb@antonym.org> | 2013-07-07 14:45:39 +1000 | 
| commit | 4f2ee0ef3a080ba5cc922dcd96c1fe9a0136e979 (patch) | |
| tree | 5324e3e90e515db95e6081026f47179ed0b3cc3b /man/rustdoc.1 | |
| parent | a9f178c148858b3b121aaf849907905262a41a6c (diff) | |
| download | rust-4f2ee0ef3a080ba5cc922dcd96c1fe9a0136e979.tar.gz rust-4f2ee0ef3a080ba5cc922dcd96c1fe9a0136e979.zip | |
Create man pages for rust tools
Diffstat (limited to 'man/rustdoc.1')
| -rw-r--r-- | man/rustdoc.1 | 63 | 
1 files changed, 63 insertions, 0 deletions
| diff --git a/man/rustdoc.1 b/man/rustdoc.1 new file mode 100644 index 00000000000..93a8f49898c --- /dev/null +++ b/man/rustdoc.1 @@ -0,0 +1,63 @@ +.TH RUSTDOC "1" "July 2013" "rustdoc 0.7" "User Commands" +.SH NAME +rustdoc \- generate documentation from Rust source code +.SH SYNOPSIS +.B rustdoc +[\fIOPTIONS\fR] \fICRATEFILE\fR + +.SH DESCRIPTION +This tool generates API reference documentation by extracting comments from +source code written in the Rust language, available at <\fBhttps://www.rust- +lang.org\fR>. It provides several output formats for the generated +documentation. + +.SH COMMANDS + +.TP +--output-dir <val> +Put documents here (default: .) +.TP +--output-format <val> +markdown or html (default: html) +.TP +--output-style <val> +doc-per-crate or doc-per-mod (default: doc-per-mod) +.TP +--pandoc-cmd <val> +Command for running pandoc +.TP +-h, --help +Print help + +.SH "OUTPUT FORMATS" + +The rustdoc tool can generate documentation in either the Markdown +or HTML formats. It requires the pandoc tool +<\fBhttp://johnmacfarlane.net/pandoc/\fR> for conversion features. + +.SH "EXAMPLES" + +To generate documentation for the source in the current directory: + $ rustdoc hello.rs + +To build documentation into a subdirectory named 'doc' in the Markdown +format: + $ rustdoc --output-dir doc --output-format markdown hello.rs + +The generated HTML can be viewed with any standard web browser, while +the Markdown version is well-suited for conversion into other formats. + +.SH "SEE ALSO" + +rust, rustc, rustpkg, rusti + +.SH "BUGS" +See <\fBhttps://github.com/mozilla/rust/issues\fR> for issues. + +.SH "AUTHOR" +See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare +<\fIgraydon@mozilla.com\fR> is the project leader. + +.SH "COPYRIGHT" +This work is dual-licensed under Apache 2.0 and MIT terms. See \fBCOPYRIGHT\fR +file in the rust source distribution. | 
