@@ -49,10 +49,10 @@ To build a local static HTML site, install [`mdbook`](https://github.com/rust-la
49
49
and execute the following command in the root of the repository:
50
50
51
51
```
52
- > mdbook build
52
+ > mdbook build --open
53
53
```
54
54
55
- The build files are found in the ` book ` directory.
55
+ The build files are found in the ` book/html ` directory.
56
56
57
57
### Link Validations
58
58
@@ -64,25 +64,6 @@ We use `mdbook-linkcheck` to validate URLs included in our documentation.
64
64
We use ` mdbook-toc ` to auto-generate TOCs for long sections. You can invoke the preprocessor by
65
65
including the ` <!-- toc --> ` marker at the place where you want the TOC.
66
66
67
- ### Pre-commit script
68
-
69
- We also test that line lengths are less than 100 columns. To test this locally,
70
- you can run ` ci/check_line_lengths.sh ` .
71
-
72
- You can also set this to run automatically.
73
-
74
- On Linux:
75
-
76
- ``` bash
77
- ln -s ../../ci/check_line_lengths.sh .git/hooks/pre-commit
78
- ```
79
-
80
- On Windows:
81
-
82
- ``` powershell
83
- New-Item -Path .git/hooks/pre-commit -ItemType HardLink -Value <absolute_path/to/check_line_lengths.sh>
84
- ```
85
-
86
67
## How to fix toolstate failures
87
68
88
69
> ** NOTE** : Currently, we do not track the rustc-dev-guide toolstate due to
@@ -118,7 +99,7 @@ git submodule update --remote src/doc/rustc-dev-guide
118
99
git add -u
119
100
git commit -m " Update rustc-dev-guide"
120
101
# Note that you can use -i, which is short for --incremental, in the following command
121
- ./x.py test --incremental src/doc/rustc-dev-guide # This is optional and should succeed anyway
102
+ ./x test --incremental src/doc/rustc-dev-guide # This is optional and should succeed anyway
122
103
# Open a PR in rust-lang/rust
123
104
```
124
105
0 commit comments