Skip to content

Commit b0e0ad6

Browse files
committed
Update to mdbook 0.3.
This updates to mdbook 0.3 which uses relative links, which are much better (the pages mostly work when viewing on GitHub for example).
1 parent c0c912d commit b0e0ad6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1059
-1074
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rust:
44
- nightly
55

66
install:
7-
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.1.7/mdbook-v0.1.7-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
7+
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.1/mdbook-v0.3.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
88

99
script:
1010
- export PATH=$PATH:/home/travis/.cargo/bin && mdbook test

book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ title = "The Rust Reference"
44
author = "The Rust Project Developers"
55

66
[output.html]
7-
8-
additional-css = ["src/theme/reference.css"]
7+
additional-css = ["theme/reference.css"]
8+
git-repository-url = "https://github.com/rust-lang-nursery/reference/"

src/abi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ to specify the symbol name.
8585
pub fn name_in_rust() { }
8686
```
8787

88-
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax
89-
[`static` items]: items/static-items.html
90-
[attribute]: attributes.html
91-
[extern functions]: items/functions.html#extern-functions
92-
[external blocks]: items/external-blocks.html
93-
[function]: items/functions.html
94-
[item]: items.html
95-
[static]: items/static-items.html
88+
[_MetaNameValueStr_]: attributes.md#meta-item-attribute-syntax
89+
[`static` items]: items/static-items.md
90+
[attribute]: attributes.md
91+
[extern functions]: items/functions.md#extern-functions
92+
[external blocks]: items/external-blocks.md
93+
[function]: items/functions.md
94+
[item]: items.md
95+
[static]: items/static-items.md

src/attributes.md

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -237,72 +237,72 @@ The following is an index of all built-in attributes.
237237
- `feature` — Used to enable unstable or experimental compiler features. See
238238
[The Unstable Book] for features implemented in `rustc`.
239239

240-
[Doc comments]: comments.html#doc-comments
240+
[Doc comments]: comments.md#doc-comments
241241
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
242242
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
243-
[Expression Attributes]: expressions.html#expression-attributes
244-
[IDENTIFIER]: identifiers.html
245-
[RAW_STRING_LITERAL]: tokens.html#raw-string-literals
246-
[STRING_LITERAL]: tokens.html#string-literals
243+
[Expression Attributes]: expressions.md#expression-attributes
244+
[IDENTIFIER]: identifiers.md
245+
[RAW_STRING_LITERAL]: tokens.md#raw-string-literals
246+
[STRING_LITERAL]: tokens.md#string-literals
247247
[The Rustdoc Book]: ../rustdoc/the-doc-attribute.html
248248
[The Unstable Book]: ../unstable-book/index.html
249-
[_DelimTokenTree_]: macros.html
250-
[_LiteralExpression_]: expressions/literal-expr.html
251-
[_SimplePath_]: paths.html#simple-paths
252-
[`allow`]: attributes/diagnostics.html#lint-check-attributes
253-
[`cfg_attr`]: conditional-compilation.html#the-cfg_attr-attribute
254-
[`cfg`]: conditional-compilation.html#the-cfg-attribute
255-
[`cold`]: attributes/codegen.html#the-cold-attribute
256-
[`crate_name`]: crates-and-source-files.html#the-crate_name-attribute
257-
[`crate_type`]: linkage.html
258-
[`deny`]: attributes/diagnostics.html#lint-check-attributes
259-
[`deprecated`]: attributes/diagnostics.html#the-deprecated-attribute
260-
[`derive`]: attributes/derive.html
261-
[`export_name`]: abi.html#the-export_name-attribute
262-
[`forbid`]: attributes/diagnostics.html#lint-check-attributes
263-
[`global_allocator`]: runtime.html#the-global_allocator-attribute
264-
[`ignore`]: attributes/testing.html#the-ignore-attribute
265-
[`inline`]: attributes/codegen.html#the-inline-attribute
266-
[`link_name`]: items/external-blocks.html#the-link_name-attribute
267-
[`link_section`]: abi.html#the-link_section-attribute
268-
[`link`]: items/external-blocks.html#the-link-attribute
269-
[`macro_export`]: macros-by-example.html#path-based-scope
270-
[`macro_use`]: macros-by-example.html#the-macro_use-attribute
271-
[`meta` macro fragment specifier]: macros-by-example.html
272-
[`must_use`]: attributes/diagnostics.html#the-must_use-attribute
273-
[`no_builtins`]: attributes/codegen.html#the-no_builtins-attribute
274-
[`no_implicit_prelude`]: items/modules.html#prelude-items
275-
[`no_link`]: items/extern-crates.html#the-no_link-attribute
276-
[`no_main`]: crates-and-source-files.html#the-no_main-attribute
277-
[`no_mangle`]: abi.html#the-no_mangle-attribute
278-
[`no_std`]: crates-and-source-files.html#preludes-and-no_std
279-
[`panic_handler`]: runtime.html#the-panic_handler-attribute
280-
[`path`]: items/modules.html#the-path-attribute
281-
[`proc_macro_attribute`]: procedural-macros.html#attribute-macros
282-
[`proc_macro_derive`]: procedural-macros.html#derive-macros
283-
[`proc_macro`]: procedural-macros.html#function-like-procedural-macros
284-
[`recursion_limit`]: attributes/limits.html#the-recursion_limit-attribute
285-
[`repr`]: type-layout.html#representations
286-
[`should_panic`]: attributes/testing.html#the-should_panic-attribute
287-
[`target_feature`]: attributes/codegen.html#the-target_feature-attribute
288-
[`test`]: attributes/testing.html#the-test-attribute
289-
[`type_length_limit`]: attributes/limits.html#the-type_length_limit-attribute
290-
[`used`]: abi.html#the-used-attribute
291-
[`warn`]: attributes/diagnostics.html#lint-check-attributes
292-
[`windows_subsystem`]: runtime.html#the-windows_subsystem-attribute
293-
[attribute macros]: procedural-macros.html#attribute-macros
294-
[block expressions]: expressions/block-expr.html
249+
[_DelimTokenTree_]: macros.md
250+
[_LiteralExpression_]: expressions/literal-expr.md
251+
[_SimplePath_]: paths.md#simple-paths
252+
[`allow`]: attributes/diagnostics.md#lint-check-attributes
253+
[`cfg_attr`]: conditional-compilation.md#the-cfg_attr-attribute
254+
[`cfg`]: conditional-compilation.md#the-cfg-attribute
255+
[`cold`]: attributes/codegen.md#the-cold-attribute
256+
[`crate_name`]: crates-and-source-files.md#the-crate_name-attribute
257+
[`crate_type`]: linkage.md
258+
[`deny`]: attributes/diagnostics.md#lint-check-attributes
259+
[`deprecated`]: attributes/diagnostics.md#the-deprecated-attribute
260+
[`derive`]: attributes/derive.md
261+
[`export_name`]: abi.md#the-export_name-attribute
262+
[`forbid`]: attributes/diagnostics.md#lint-check-attributes
263+
[`global_allocator`]: runtime.md#the-global_allocator-attribute
264+
[`ignore`]: attributes/testing.md#the-ignore-attribute
265+
[`inline`]: attributes/codegen.md#the-inline-attribute
266+
[`link_name`]: items/external-blocks.md#the-link_name-attribute
267+
[`link_section`]: abi.md#the-link_section-attribute
268+
[`link`]: items/external-blocks.md#the-link-attribute
269+
[`macro_export`]: macros-by-example.md#path-based-scope
270+
[`macro_use`]: macros-by-example.md#the-macro_use-attribute
271+
[`meta` macro fragment specifier]: macros-by-example.md
272+
[`must_use`]: attributes/diagnostics.md#the-must_use-attribute
273+
[`no_builtins`]: attributes/codegen.md#the-no_builtins-attribute
274+
[`no_implicit_prelude`]: items/modules.md#prelude-items
275+
[`no_link`]: items/extern-crates.md#the-no_link-attribute
276+
[`no_main`]: crates-and-source-files.md#the-no_main-attribute
277+
[`no_mangle`]: abi.md#the-no_mangle-attribute
278+
[`no_std`]: crates-and-source-files.md#preludes-and-no_std
279+
[`panic_handler`]: runtime.md#the-panic_handler-attribute
280+
[`path`]: items/modules.md#the-path-attribute
281+
[`proc_macro_attribute`]: procedural-macros.md#attribute-macros
282+
[`proc_macro_derive`]: procedural-macros.md#derive-macros
283+
[`proc_macro`]: procedural-macros.md#function-like-procedural-macros
284+
[`recursion_limit`]: attributes/limits.md#the-recursion_limit-attribute
285+
[`repr`]: type-layout.md#representations
286+
[`should_panic`]: attributes/testing.md#the-should_panic-attribute
287+
[`target_feature`]: attributes/codegen.md#the-target_feature-attribute
288+
[`test`]: attributes/testing.md#the-test-attribute
289+
[`type_length_limit`]: attributes/limits.md#the-type_length_limit-attribute
290+
[`used`]: abi.md#the-used-attribute
291+
[`warn`]: attributes/diagnostics.md#lint-check-attributes
292+
[`windows_subsystem`]: runtime.md#the-windows_subsystem-attribute
293+
[attribute macros]: procedural-macros.md#attribute-macros
294+
[block expressions]: expressions/block-expr.md
295295
[built-in attributes]: #built-in-attributes-index
296-
[derive macro helper attributes]: procedural-macros.html#derive-macro-helper-attributes
297-
[enum]: items/enumerations.html
298-
[expression statement]: statements.html#expression-statements
299-
[external blocks]: items/external-blocks.html
300-
[functions]: items/functions.html
301-
[generics]: items/generics.html
302-
[implementations]: items/implementations.html
303-
[item declarations]: items.html
304-
[match expressions]: expressions/match-expr.html
305-
[modules]: items/modules.html
306-
[statements]: statements.html
307-
[struct]: items/structs.html
308-
[union]: items/unions.html
296+
[derive macro helper attributes]: procedural-macros.md#derive-macro-helper-attributes
297+
[enum]: items/enumerations.md
298+
[expression statement]: statements.md#expression-statements
299+
[external blocks]: items/external-blocks.md
300+
[functions]: items/functions.md
301+
[generics]: items/generics.md
302+
[implementations]: items/implementations.md
303+
[item declarations]: items.md
304+
[match expressions]: expressions/match-expr.md
305+
[modules]: items/modules.md
306+
[statements]: statements.md
307+
[struct]: items/structs.md
308+
[union]: items/unions.md

src/attributes/codegen.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ feature detection on the x86 platforms.
139139
> may be enabled or disabled for an entire crate with the
140140
> [`-C target-feature`] flag.
141141
142-
[_MetaListNameValueStr_]: attributes.html#meta-item-attribute-syntax
143-
[`-C target-cpu`]: ../rustc/codegen-options/index.html#target-cpu
144-
[`-C target-feature`]: ../rustc/codegen-options/index.html#target-feature
145-
[`is_x86_feature_detected`]: ../std/macro.is_x86_feature_detected.html
146-
[`target_feature` conditional compilation option]: conditional-compilation.html#target_feature
147-
[attribute]: attributes.html
148-
[attributes]: attributes.html
149-
[functions]: items/functions.html
150-
[target architecture]: conditional-compilation.html#target_arch
151-
[trait]: items/traits.html
152-
[undefined behavior]: behavior-considered-undefined.html
153-
[unsafe function]: unsafe-functions.html
142+
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
143+
[`-C target-cpu`]: ../../rustc/codegen-options/index.html#target-cpu
144+
[`-C target-feature`]: ../../rustc/codegen-options/index.html#target-feature
145+
[`is_x86_feature_detected`]: ../../std/macro.is_x86_feature_detected.html
146+
[`target_feature` conditional compilation option]: ../conditional-compilation.md#target_feature
147+
[attribute]: ../attributes.md
148+
[attributes]: ../attributes.md
149+
[functions]: ../items/functions.md
150+
[target architecture]: ../conditional-compilation.md#target_arch
151+
[trait]: ../items/traits.md
152+
[undefined behavior]: ../behavior-considered-undefined.md
153+
[unsafe function]: ../unsafe-functions.md

src/attributes/derive.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ impl<T: PartialEq> PartialEq for Foo<T> {
3333

3434
You can implement `derive` for your own traits through [procedural macros].
3535

36-
[_MetaListPaths_]: attributes.html#meta-item-attribute-syntax
37-
[`Clone`]: ../std/clone/trait.Clone.html
38-
[`PartialEq`]: ../std/cmp/trait.PartialEq.html
39-
[`impl` item]: items/implementations.html
40-
[items]: items.html
41-
[derive macros]: procedural-macros.html#derive-macros
42-
[procedural macros]: procedural-macros.html#derive-macros
36+
[_MetaListPaths_]: ../attributes.md#meta-item-attribute-syntax
37+
[`Clone`]: ../../std/clone/trait.Clone.html
38+
[`PartialEq`]: ../../std/cmp/trait.PartialEq.html
39+
[`impl` item]: ../items/implementations.md
40+
[items]: ../items.md
41+
[derive macros]: ../procedural-macros.md#derive-macros
42+
[procedural macros]: ../procedural-macros.md#derive-macros

src/attributes/diagnostics.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -253,29 +253,29 @@ When used on a function in a trait implementation, the attribute does nothing.
253253
> ```
254254
255255
[Clippy]: https://github.com/rust-lang/rust-clippy
256-
[_MetaListNameValueStr_]: attributes.html#meta-item-attribute-syntax
257-
[_MetaListPaths_]: attributes.html#meta-item-attribute-syntax
258-
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax
259-
[`Drop`]: special-types-and-traits.html#drop
260-
[attributes]: attributes.html
261-
[block expression]: expressions/block-expr.html
262-
[call expression]: expressions/call-expr.html
263-
[enum variant]: items/enumerations.html
264-
[enum]: items/enumerations.html
265-
[expression statement]: statements.html#expression-statements
266-
[expression]: expressions.html
267-
[external block item]: items/external-blocks.html
268-
[functions]: items/functions.html
269-
[impl trait]: types/impl-trait.html
270-
[implementation]: items/implementations.html
271-
[item]: items.html
272-
[let statement]: statements.html#let-statements
273-
[module]: items/modules.html
274-
[rustc book]: ../rustc/lints/index.html
275-
[struct field]: items/structs.html
276-
[struct]: items/structs.html
277-
[trait declaration]: items/traits.html
278-
[trait implementation items]: items/implementations.html#trait-implementations
279-
[trait item]: items/traits.html
280-
[traits]: items/traits.html
281-
[union]: items/unions.html
256+
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
257+
[_MetaListPaths_]: ../attributes.md#meta-item-attribute-syntax
258+
[_MetaNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
259+
[`Drop`]: ../special-types-and-traits.md#drop
260+
[attributes]: ../attributes.md
261+
[block expression]: ../expressions/block-expr.md
262+
[call expression]: ../expressions/call-expr.md
263+
[enum variant]: ../items/enumerations.md
264+
[enum]: ../items/enumerations.md
265+
[expression statement]: ../statements.md#expression-statements
266+
[expression]: ../expressions.md
267+
[external block item]: ../items/external-blocks.md
268+
[functions]: ../items/functions.md
269+
[impl trait]: ../types/impl-trait.md
270+
[implementation]: ../items/implementations.md
271+
[item]: ../items.md
272+
[let statement]: ../statements.md#let-statements
273+
[module]: ../items/modules.md
274+
[rustc book]: ../../rustc/lints/index.html
275+
[struct field]: ../items/structs.md
276+
[struct]: ../items/structs.md
277+
[trait declaration]: ../items/traits.md
278+
[trait implementation items]: ../items/implementations.md#trait-implementations
279+
[trait item]: ../items/traits.md
280+
[traits]: ../items/traits.md
281+
[union]: ../items/unions.md

src/attributes/limits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ fn f<T>(x: T) {}
5757
f((1, 2, 3, 4, 5, 6, 7, 8, 9));
5858
```
5959

60-
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax
61-
[attributes]: attributes.html
62-
[crate]: crates-and-source-files.html
60+
[_MetaNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
61+
[attributes]: ../attributes.md
62+
[crate]: ../crates-and-source-files.md

src/attributes/testing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ fn mytest() {
8282
}
8383
```
8484

85-
[_MetaListNameValueStr_]: attributes.html#meta-item-attribute-syntax
86-
[_MetaNameValueStr_]: attributes.html#meta-item-attribute-syntax
87-
[`Termination`]: ../std/process/trait.Termination.html
88-
[`test` conditional compilation option]: conditional-compilation.html#test
89-
[attributes]: attributes.html
85+
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
86+
[_MetaNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
87+
[`Termination`]: ../../std/process/trait.Termination.html
88+
[`test` conditional compilation option]: ../conditional-compilation.md#test
89+
[attributes]: ../attributes.md

src/behavior-considered-undefined.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ code.
5252
[undef]: http://llvm.org/docs/LangRef.html#undefined-values
5353
[`offset`]: ../std/primitive.pointer.html#method.offset
5454
[`std::ptr::copy_nonoverlapping_memory`]: ../std/ptr/fn.copy_nonoverlapping.html
55-
[`target_feature`]: attributes/codegen.html#the-target_feature-attribute
55+
[`target_feature`]: attributes/codegen.md#the-target_feature-attribute
5656
[`UnsafeCell<U>`]: ../std/cell/struct.UnsafeCell.html
5757
[`read_unaligned`]: ../std/ptr/fn.read_unaligned.html
5858
[`write_unaligned`]: ../std/ptr/fn.write_unaligned.html

src/conditional-compilation.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -310,19 +310,19 @@ let machine_kind = if cfg!(unix) {
310310
println!("I'm running on a {} machine!", machine_kind);
311311
```
312312

313-
[IDENTIFIER]: identifiers.html
314-
[RAW_STRING_LITERAL]: tokens.html#raw-string-literals
315-
[STRING_LITERAL]: tokens.html#string-literals
316-
[Testing]: attributes/testing.html
317-
[_Attr_]: attributes.html
318-
[`--cfg`]: ../rustc/command-line-arguments.html#a--cfg-configure-the-compilation-environment
319-
[`--test`]: ../rustc/command-line-arguments.html#a--test-build-a-test-harness
313+
[IDENTIFIER]: identifiers.md
314+
[RAW_STRING_LITERAL]: tokens.md#raw-string-literals
315+
[STRING_LITERAL]: tokens.md#string-literals
316+
[Testing]: attributes/testing.md
317+
[_Attr_]: attributes.md
318+
[`--cfg`]: ../rustc/command-line-arguments.html#--cfg-configure-the-compilation-environment
319+
[`--test`]: ../rustc/command-line-arguments.html#--test-build-a-test-harness
320320
[`cfg`]: #the-cfg-attribute
321321
[`cfg` macro]: #the-cfg-macro
322322
[`cfg_attr`]: #the-cfg_attr-attribute
323323
[`debug_assert!`]: ../std/macro.debug_assert.html
324-
[`target_feature` attribute]: attributes/codegen.html#the-target_feature-attribute
325-
[attribute]: attributes.html
326-
[attributes]: attributes.html
327-
[crate type]: linkage.html
328-
[static C runtime]: linkage.html#static-and-dynamic-c-runtimes
324+
[`target_feature` attribute]: attributes/codegen.md#the-target_feature-attribute
325+
[attribute]: attributes.md
326+
[attributes]: attributes.md
327+
[crate type]: linkage.md
328+
[static C runtime]: linkage.md#static-and-dynamic-c-runtimes

0 commit comments

Comments
 (0)