Skip to content

Commit da72388

Browse files
Merge pull request #9 from codeplaysoftware/better-legacy-routes-n-fixes
Improved Legacy Route Handling
2 parents 1d095b5 + f2f665e commit da72388

File tree

7 files changed

+1838
-22
lines changed

7 files changed

+1838
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
cache: 'pip'
3232
- name: Install Dependencies
3333
run: pip install -r ./scripts/routes/requirements.txt --require-hashes --no-deps
34-
- run: python ./scripts/routes/generate.py "$CONTENT_URL" >> routes.txt
34+
- name: Inject Generated Routes
35+
run: python ./scripts/routes/generate.py "$CONTENT_URL" >> routes.txt
36+
- name: Inject Legacy Routes
37+
run: cat legacy-routes.txt >> routes.txt
3538
- name: Upload to GitHub Artifacts
3639
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b
3740
with:

legacy-routes.txt

Lines changed: 369 additions & 0 deletions
Large diffs are not rendered by default.

routes.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,3 @@
1414
/privacy
1515
/cookies
1616
/404
17-
/learn
18-
/releases
19-
/projects
20-
/research
21-
/sessions
22-
/summer-sessions/2020/sessions
23-
/summer-sessions/2021/sessions

src/404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>SYCL.tech - 404</title>
5-
<meta http-equiv="refresh" content="0; url=/e404">
6-
<script type="text/javascript">window.location.href = "/e404"</script>
4+
<title>404 - SYCL.tech</title>
5+
<meta http-equiv="refresh" content="0; url=/404/">
6+
<script type="text/javascript">window.location.href = "/404/"</script>
77
<link rel="icon" type="image/png" href="favicon.png"/>
88
</head>
99
<body></body>

0 commit comments

Comments
 (0)