]> git.lizzy.rs Git - rust.git/commitdiff
Add notes about building documentation to the README.
authorSteve Klabnik <steve@steveklabnik.com>
Tue, 18 Aug 2015 17:49:20 +0000 (13:49 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 18 Aug 2015 17:49:20 +0000 (13:49 -0400)
Fixes #27632

README.md

index 0ae93380e5920dab03029f9c2c798a065073faf7..391ada0efef17270eed5a461cde769b9779c65d9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -82,6 +82,28 @@ Read ["Installing Rust"] from [The Book].
    $ make && make install
    ```
 
+## Building Documentation
+
+If you’d like to build the documentation, it’s almost the same:
+
+```sh
+./configure
+$ make docs
+```
+
+Building the documentation requires building the compiler, so the above
+details will apply. Once you have the compiler built, you can
+
+```sh
+$ make docs NO_REBUILD=1 
+```
+
+To make sure you don’t re-build the compiler because you made a change
+to some documentation.
+
+The generated documentation will appear in a top-level `doc` directory,
+created by the `make` rule.
+
 ## Notes
 
 Since the Rust compiler is written in Rust, it must be built by a