Building documentation - Rust Compiler Development Guide (original) (raw)

Rust Compiler Development Guide

Building documentation

This chapter describes how to build documentation of toolchain components, like the standard library (std) or the compiler (rustc).

./x doc  

If you want to be sure the documentation looks the same as on CI:

./x doc --stage 1  

This ensures that (current) rustdoc gets built, then that is used to document the components.

./x doc src/doc/book  
./x doc src/doc/nomicon  
./x doc compiler library  

See the nightly docs index page for a full list of books.

[build]  
compiler-docs = true  

Note that when enabled, documentation for internal compiler items will also be built.
NOTE: The documentation for the compiler is found at this link.