Skip to content

Commit 11d4eb2

Browse files
authored
Auto redirect pages that get migrated to meta-pytorch (#2039)
1 parent 1cd595f commit 11d4eb2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

404.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,46 @@
2020
FOUROHFOUR_CUSTOM: 3,
2121
};
2222

23+
// Repos that are expected to be moved to the meta-pytorch.org domain
24+
const META_PYTORCH_PROJECTS = [
25+
"ao",
26+
"helion",
27+
"torchcodec",
28+
"torchft",
29+
"data",
30+
"torchx",
31+
"torchtune",
32+
"mobile-docs",
33+
"tnt",
34+
"botorch",
35+
"captum",
36+
"opacus",
37+
"torchsnapshot",
38+
"torcheval",
39+
"multipy",
40+
"text",
41+
"live-website",
42+
"live-old",
43+
// Temporary test entries
44+
"tritonparse",
45+
"monarch",
46+
"fakerepo",
47+
]
48+
2349
const PROJECTS = {
2450
live: {
2551
location: 'https://playtorch.dev/',
2652
style: REDIRECT_STYLE.FULL,
2753
},
54+
...Object.fromEntries(
55+
META_PYTORCH_PROJECTS.map(project => [
56+
project,
57+
{
58+
location: `https://meta-pytorch.org/${project}`,
59+
style: REDIRECT_STYLE.FULL,
60+
}
61+
])
62+
),
2863
};
2964

3065
// eg "https://facebook.github.io/flux/docs/overview/"

0 commit comments

Comments
 (0)