1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-17 08:02:38 +02:00

Fix page redirects (#620)

* Fix broken redirects

A few of these were wrong since they assumed the target path is
relative to the root of the course (the path is relative to the page
being redirected).

* Sort redirects
This commit is contained in:
Martin Geisler 2023-05-08 16:31:54 +02:00 committed by GitHub
parent ce7c5fdf22
commit 661f51b06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,21 +44,21 @@ editable = true
[output.html.redirect]
# Redirects in the form of "old-path" = "new-path", where the new path
# is relative to the old path.
"structure.html" = "running-the-course/course-structure.html"
"running-the-course/day-4.html" = "course-structure.html"
"exercises/day-4/afternoon.html" = "exercises/day-4/android.html"
"unsafe/unsafe-functions.html" = "calling-unsafe-functions.html"
"generics/closures.html" = "traits/closures.html"
"generics/impl-trait.html" = "traits/impl-trait.html"
"generics/trait-bounds.html" = "traits/trait-bounds.html"
"welcome-bare-metal.html" = "bare-metal.html"
"welcome-day-4.html" = "concurrency.html"
"exercises/day-4/afternoon.html" = "../android/morning.html"
"exercises/day-4/android.html" = "../android/morning.html"
"exercises/day-4/dining-philosophers.html" = "../concurrency/dining-philosophers.html"
"exercises/day-4/elevator.html" = "../concurrency/elevator.html"
"exercises/day-4/link-checker.html" = "../concurrency/link-checker.html"
"exercises/day-4/morning.html" = "../concurrency/morning.html"
"exercises/day-4/solutions-morning.html" = "../concurrency/solutions-morning.html"
"exercises/day-4/dining-philosophers.html" = "../concurrency/dining-philosophers.html"
"exercises/day-4/link-checker.html" = "../concurrency/link-checker.html"
"exercises/day-4/elevator.html" = "../concurrency/elevator.html"
"generics/closures.html" = "../traits/closures.html"
"generics/impl-trait.html" = "../traits/impl-trait.html"
"generics/trait-bounds.html" = "../traits/trait-bounds.html"
"running-the-course/day-4.html" = "course-structure.html"
"structure.html" = "running-the-course/course-structure.html"
"unsafe/unsafe-functions.html" = "calling-unsafe-functions.html"
"welcome-bare-metal.html" = "bare-metal.html"
"welcome-day-4.html" = "concurrency.html"
[output.exerciser]
output-directory = "comprehensive-rust-exercises"