diff --git a/netlify.toml b/netlify.toml index 4b155f947..d9a6cfa12 100644 --- a/netlify.toml +++ b/netlify.toml @@ -33,11 +33,21 @@ to = "/assets/downloads/Machine-Learning-Systems.pdf" status = 301 +[[redirects]] + from = "/pdf/" + to = "/assets/downloads/Machine-Learning-Systems.pdf" + status = 301 + [[redirects]] from = "/epub" to = "/assets/downloads/Machine-Learning-Systems.epub" status = 301 +[[redirects]] + from = "/epub/" + to = "/assets/downloads/Machine-Learning-Systems.epub" + status = 301 + [[redirects]] from = "/changelog" to = "/contents/frontmatter/changelog/changelog.html" diff --git a/quarto/_redirects b/quarto/_redirects index 46cbc7793..6f22df39a 100644 --- a/quarto/_redirects +++ b/quarto/_redirects @@ -3,12 +3,21 @@ /kits /contents/labs/kits.html 301 /kits/ /contents/labs/kits.html 301 + /labs /contents/labs/labs.html 301 /labs/ /contents/labs/labs.html 301 + /pdf /assets/downloads/Machine-Learning-Systems.pdf 301 -/pdf/ /assets/downloads/Machine-Learning-Systems.pdf 301 -/epub /assets/Machine-Learning-Systems.epub 301 -/epub/ /assets/Machine-Learning-Systems.epub 301 +/pdf/ /assets/downloads/Machine-Learning-Systems.pdf 301 + +/epub /assets/downloads/Machine-Learning-Systems.epub 301 +/epub/ /assets/downloads/Machine-Learning-Systems.epub 301 + +/changelog /contents/frontmatter/changelog/changelog.html 301 +/changelog/ /contents/frontmatter/changelog/changelog.html 301 + +/tinytorch https://mlsysbook.github.io/TinyTorch/intro.html 301 +/tinytorch/ https://mlsysbook.github.io/TinyTorch/intro.html 301 # GitHub Pages fallback: use HTML redirect pages # See kits.html for client-side redirect implementation \ No newline at end of file