Skip to content

Commit 5f929be

Browse files
committed
Migrate rustdoc book to MdBook2
1 parent 3ffab36 commit 5f929be

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ book!(
6666
Reference, "src/doc/reference", "reference", RustbookVersion::MdBook1;
6767
RustByExample, "src/doc/rust-by-example", "rust-by-example", RustbookVersion::MdBook1;
6868
RustcBook, "src/doc/rustc", "rustc", RustbookVersion::MdBook1;
69-
RustdocBook, "src/doc/rustdoc", "rustdoc", RustbookVersion::MdBook1;
69+
RustdocBook, "src/doc/rustdoc", "rustdoc", RustbookVersion::MdBook2;
7070
);
7171

7272
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]

src/doc/rustdoc/src/command-line-arguments.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ $ rustdoc src/lib.rs --passes strip-priv-imports
178178
An argument of "list" will print a list of possible "rustdoc passes", and other
179179
arguments will be the name of which passes to run in addition to the defaults.
180180

181-
For more details on passes, see [the chapter on them](passes.html).
181+
For more details on passes, see [the chapter on them](passes.md).
182182

183183
See also `--no-defaults`.
184184

@@ -194,7 +194,7 @@ By default, `rustdoc` will run several passes over your code. This
194194
removes those defaults, allowing you to use `--passes` to specify
195195
exactly which passes you want.
196196

197-
For more details on passes, see [the chapter on them](passes.html).
197+
For more details on passes, see [the chapter on them](passes.md).
198198

199199
See also `--passes`.
200200

@@ -207,7 +207,7 @@ $ rustdoc src/lib.rs --test
207207
```
208208

209209
This flag will run your code examples as tests. For more, see [the chapter
210-
on documentation tests](documentation-tests.html).
210+
on documentation tests](documentation-tests.md).
211211

212212
See also `--test-args`.
213213

@@ -220,7 +220,7 @@ $ rustdoc src/lib.rs --test --test-args ignored
220220
```
221221

222222
This flag will pass options to the test runner when running documentation tests.
223-
For more, see [the chapter on documentation tests](documentation-tests.html).
223+
For more, see [the chapter on documentation tests](documentation-tests.md).
224224

225225
See also `--test`.
226226

src/doc/rustdoc/src/passes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Rustdoc has a concept called "passes". These are transformations that
55

66
In addition to the passes below, check out the docs for these flags:
77

8-
* [`--passes`](command-line-arguments.html#a--passes-add-more-rustdoc-passes)
9-
* [`--no-defaults`](command-line-arguments.html#a--no-defaults-dont-run-default-passes)
8+
* [`--passes`](command-line-arguments.md#--passes-add-more-rustdoc-passes)
9+
* [`--no-defaults`](command-line-arguments.md#--no-defaults-dont-run-default-passes)
1010

1111
## Default passes
1212

0 commit comments

Comments
 (0)