Debian Codegraph @

tests/gui/books/redirect/book.toml

raw
1 [book]
2 title = "redirect"
3
4 [output.html.redirect]
5 "/inner/old.html" = "../new-chapter.html"
6
7 # This is a source without a fragment, and one with a fragment that goes to
8 # the same place. The redirect with the fragment is not necessary, since that
9 # is the default behavior.
10 "/pointless-fragment.html" = "new-chapter.html"
11 "/pointless-fragment.html#foo" = "new-chapter.html#foo"
12
13 "/rename-page-and-fragment.html" = "new-chapter.html"
14 "/rename-page-and-fragment.html#orig" = "new-chapter.html#new"
15
16 "/rename-page-fragment-elsewhere.html" = "new-chapter.html"
17 "/rename-page-fragment-elsewhere.html#orig" = "other-chapter.html#new"
18
19 # Rename fragment on an existing page.
20 "/new-chapter.html#orig" = "new-chapter.html#new"
21 # Rename fragment on an existing page to another page.
22 "/new-chapter.html#orig-new-chapter" = "other-chapter.html#new"
23
24 "/full-url-with-fragment.html" = "https://www.rust-lang.org/#fragment"
25
26 "/full-url-with-fragment-map.html" = "https://www.rust-lang.org/"
27 "/full-url-with-fragment-map.html#a" = "https://www.rust-lang.org/#new1"
28 "/full-url-with-fragment-map.html#b" = "https://www.rust-lang.org/#new2"