Skip to content

Commit 60591b4

Browse files
committed
Move attributes redirect to book.toml
This removes the custom redirect and uses the built-in mdbook version.
1 parent e1cbc45 commit 60591b4

File tree

3 files changed

+17
-30
lines changed

3 files changed

+17
-30
lines changed

book.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@ use-boolean-and = true
2222
"grammar.md" = { enable = false }
2323

2424
[output.html.redirect]
25+
"/attributes.html#cold-attribute" = "attributes/codegen.html#the-cold-attribute"
26+
"/attributes.html#conditional-compilation" = "conditional-compilation.html"
27+
"/attributes.html#crate-only-attributes" = "attributes.html#built-in-attributes-index"
28+
"/attributes.html#deprecation" = "attributes/diagnostics.html#the-deprecated-attribute"
29+
"/attributes.html#derive" = "attributes/derive.html"
30+
"/attributes.html#documentation" = "../rustdoc/the-doc-attribute.html"
31+
"/attributes.html#ffi-attributes" = "attributes.html#built-in-attributes-index"
32+
"/attributes.html#inline-attribute" = "attributes/codegen.html#the-inline-attribute"
33+
"/attributes.html#lint-check-attributes" = "attributes/diagnostics.html#lint-check-attributes"
34+
"/attributes.html#macro-related-attributes" = "attributes.html#built-in-attributes-index"
35+
"/attributes.html#miscellaneous-attributes" = "attributes.html#built-in-attributes-index"
36+
"/attributes.html#must_use" = "attributes/diagnostics.html#the-must_use-attribute"
37+
"/attributes.html#optimization-hints" = "attributes/codegen.html#optimization-hints"
38+
"/attributes.html#path" = "items/modules.html#the-path-attribute"
39+
"/attributes.html#preludes" = "crates-and-source-files.html#preludes-and-no_std"
40+
"/attributes.html#testing" = "attributes/testing.html"
41+
"/attributes.html#tool-lint-attributes" = "attributes/diagnostics.html#tool-lint-attributes"
2542
"/crates-and-source-files.html#preludes-and-no_std" = "names/preludes.html"
2643
"/expressions/enum-variant-expr.html" = "struct-expr.html"
2744
"/expressions/if-expr.html#if-let-expressions" = "if-expr.html#if-let-patterns"

src/attributes-redirect.html

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/attributes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{#include attributes-redirect.html}}
21
r[attributes]
32
# Attributes
43

0 commit comments

Comments
 (0)