From 9389d47434fc43511e173807c6eba70aaddbf1ed Mon Sep 17 00:00:00 2001 From: Zain Rizvi Date: Fri, 22 Aug 2025 13:33:44 -0500 Subject: [PATCH] Auto redirect pages that get migrated to meta-pytorch --- 404.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/404.html b/404.html index dccbfd661ab7..1e39ebf5a0cc 100644 --- a/404.html +++ b/404.html @@ -20,11 +20,46 @@ FOUROHFOUR_CUSTOM: 3, }; + // Repos that are expected to be moved to the meta-pytorch.org domain + const META_PYTORCH_PROJECTS = [ + "ao", + "helion", + "torchcodec", + "torchft", + "data", + "torchx", + "torchtune", + "mobile-docs", + "tnt", + "botorch", + "captum", + "opacus", + "torchsnapshot", + "torcheval", + "multipy", + "text", + "live-website", + "live-old", + // Temporary test entries + "tritonparse", + "monarch", + "fakerepo", + ] + const PROJECTS = { live: { location: 'https://playtorch.dev/', style: REDIRECT_STYLE.FULL, }, + ...Object.fromEntries( + META_PYTORCH_PROJECTS.map(project => [ + project, + { + location: `https://meta-pytorch.org/${project}`, + style: REDIRECT_STYLE.FULL, + } + ]) + ), }; // eg "https://facebook.github.io/flux/docs/overview/"