parent
c9db2d13b8
commit
604db2f293
|
|
@ -9,13 +9,13 @@ available like the standard library. There’s two ways to go about this.
|
||||||
|
|
||||||
## Document everything
|
## Document everything
|
||||||
|
|
||||||
```bash
|
```ignore
|
||||||
./x.py doc
|
./x.py doc
|
||||||
```
|
```
|
||||||
|
|
||||||
## If you want to avoid the whole Stage 2 build
|
## If you want to avoid the whole Stage 2 build
|
||||||
|
|
||||||
```bash
|
```ignore
|
||||||
./x.py doc --stage 1
|
./x.py doc --stage 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -24,10 +24,10 @@ and then it documents the files.
|
||||||
|
|
||||||
## Document specific components
|
## Document specific components
|
||||||
|
|
||||||
```bash
|
```ignore
|
||||||
./x.py doc src/doc/book
|
./x.py doc src/doc/book
|
||||||
./x.py doc src/doc/nomicon
|
./x.py doc src/doc/nomicon
|
||||||
./x.py doc src/doc/book src/libstd
|
./x.py doc src/doc/book src/libstd
|
||||||
```
|
```
|
||||||
|
|
||||||
Much like individual tests or building certain components you can build only
|
Much like individual tests or building certain components you can build only
|
||||||
|
|
@ -41,14 +41,14 @@ But, when enabled, compiler documentation does include internal items.
|
||||||
|
|
||||||
Next open up config.toml and make sure these two lines are set to true:
|
Next open up config.toml and make sure these two lines are set to true:
|
||||||
|
|
||||||
```bash
|
```toml
|
||||||
docs = true
|
docs = true
|
||||||
compiler-docs = true
|
compiler-docs = true
|
||||||
```
|
```
|
||||||
|
|
||||||
When you want to build the compiler docs as well run this command:
|
When you want to build the compiler docs as well run this command:
|
||||||
|
|
||||||
```bash
|
```ignore
|
||||||
./x.py doc
|
./x.py doc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue