Skip to content

Commit 40aebe1

Browse files
authored
Improve redirection strategy. (#62)
1 parent 5f061b5 commit 40aebe1

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

docs/config.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,11 @@ plugins:
148148
macros: {}
149149
redirects:
150150
redirect_maps:
151-
# Old
152-
"en/latest/tutorial/tutorial-1.md": "tutorial/tutorial-1.md"
151+
# Old versioned RTD paths.
152+
"latest/tutorial/tutorial-1.md": "tutorial/tutorial-1.md"
153+
"latest.md": "index.md"
154+
# Old RTD language paths that must continue to exist
153155
"en/latest.md": "index.md"
154-
"de/latest.md": "https://tutorial.beeware.org/de"
155-
"es/latest.md": "https://tutorial.beeware.org/es"
156-
"fr/latest.md": "https://tutorial.beeware.org/fr"
157-
"it/latest.md": "https://tutorial.beeware.org/it"
158-
"pt/latest.md": "https://tutorial.beeware.org/pt"
156+
"en/latest/tutorial/tutorial-1.md": "tutorial/tutorial-1.md"
159157
"zh-cn/latest.md": "https://tutorial.beeware.org/zh_CN"
160158
"zh-tw/latest.md": "https://tutorial.beeware.org/zh_TW"

0 commit comments

Comments
 (0)