Skip to content

Commit f100dfb

Browse files
authored
Rollup merge of #61372 - mati865:books, r=Centril,GuillaumeGomez
Migrate some books to mdbook version 0.2 There are 3 books still using old version but they need more effort so I hope to do them in subsequent PR if I find the time.
2 parents f20b5cc + dacf19c commit f100dfb

File tree

15 files changed

+25
-25
lines changed

15 files changed

+25
-25
lines changed

src/bootstrap/doc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ macro_rules! book {
6262
book!(
6363
EditionGuide, "src/doc/edition-guide", "edition-guide", RustbookVersion::MdBook2;
6464
EmbeddedBook, "src/doc/embedded-book", "embedded-book", RustbookVersion::MdBook2;
65-
Nomicon, "src/doc/nomicon", "nomicon", RustbookVersion::MdBook1;
65+
Nomicon, "src/doc/nomicon", "nomicon", RustbookVersion::MdBook2;
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)]
@@ -134,7 +134,7 @@ impl Step for UnstableBook {
134134
target: self.target,
135135
name: INTERNER.intern_str("unstable-book"),
136136
src: builder.md_doc_out(self.target),
137-
version: RustbookVersion::MdBook1,
137+
version: RustbookVersion::MdBook2,
138138
})
139139
}
140140
}

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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

src/doc/unstable-book/src/language-features/asm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ constraints, etc.
190190
[llvm-docs]: http://llvm.org/docs/LangRef.html#inline-assembler-expressions
191191

192192
If you need more power and don't mind losing some of the niceties of
193-
`asm!`, check out [global_asm](language-features/global-asm.html).
193+
`asm!`, check out [global_asm](global-asm.md).

src/doc/unstable-book/src/language-features/box-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The tracking issue for this feature is: [#29641]
44

55
[#29641]: https://github.com/rust-lang/rust/issues/29641
66

7-
See also [`box_syntax`](language-features/box-syntax.html)
7+
See also [`box_syntax`](box-syntax.md)
88

99
------------------------
1010

src/doc/unstable-book/src/language-features/box-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The tracking issue for this feature is: [#49733]
44

55
[#49733]: https://github.com/rust-lang/rust/issues/49733
66

7-
See also [`box_patterns`](language-features/box-patterns.html)
7+
See also [`box_patterns`](box-patterns.md)
88

99
------------------------
1010

src/doc/unstable-book/src/language-features/global-asm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ usages and placed the larger, single usage in the crate root.
7575
If you don't need quite as much power and flexibility as
7676
`global_asm!` provides, and you don't mind restricting your inline
7777
assembly to `fn` bodies only, you might try the
78-
[asm](language-features/asm.html) feature instead.
78+
[asm](asm.md) feature instead.

src/doc/unstable-book/src/language-features/lang-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ such as "```undefined reference to `__rust_probestack'```". Using this crate
192192
also requires enabling the library feature `compiler_builtins_lib`. You can read
193193
more about this [here][compiler-builtins-lib].
194194

195-
[compiler-builtins-lib]: library-features/compiler-builtins-lib.html
195+
[compiler-builtins-lib]: ../library-features/compiler-builtins-lib.md
196196

197197
## More about the language items
198198

src/doc/unstable-book/src/language-features/non-ascii-idents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ that does _not_ occur in the set of [strict keywords].
4545
4646
[`XID_start`]: http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%3AXID_Start%3A%5D&abb=on&g=&i=
4747
[`XID_continue`]: http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%3AXID_Continue%3A%5D&abb=on&g=&i=
48-
[strict keywords]: ../reference/keywords.html#strict-keywords
48+
[strict keywords]: ../../reference/keywords.md#strict-keywords

src/doc/unstable-book/src/language-features/plugin-registrar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ This feature is part of "compiler plugins." It will often be used with the
88
[`plugin`] and `rustc_private` features as well. For more details, see
99
their docs.
1010

11-
[`plugin`]: language-features/plugin.html
11+
[`plugin`]: plugin.md
1212

1313
------------------------

0 commit comments

Comments
 (0)