Skip to content

Commit

Permalink
place some redirect files in the static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kalsky committed Sep 10, 2024
1 parent 79f368d commit 7148ff3
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
cp docusaurus-prod.config.js docusaurus.config.js
- name: Build website
run: npm run build
- name: Post build renames
run: |
find build/Online%20Help -type f -name "index.html" -execdir mv {} Default.htm \;
# - name: Post build renames
# run: |
# find build/Online%20Help -type f -name "index.html" -execdir mv {} Default.htm \;

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand Down
22 changes: 11 additions & 11 deletions docusaurus-prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ const config = {
to: 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSR/Tst-Run.htm',
from: ['/2022.1.0.1858/RUN/', '/2022.2.0.1470/RUN/', '/2023.1.0.655/RUN/', '/2023.2.0.1763/RUN/', '/2023.3.0.979/RUN/', '/2024.1.0.2508/RUN/'],
},
{
to: '/',
from: [
'/Online%20Help/2022.1.0.1858/Portal/',
'/Online%20Help/2022.2.0.1470/Portal/',
'/Online%20Help/2023.1.0.655/Portal/',
'/Online%20Help/2023.2.0.1763/Portal/',
'/Online%20Help/2023.3.0.979/Portal/',
'/Online%20Help/2024.1.0.2508/Portal/',
],
},
// {
// to: '/',
// from: [
// '/Online%20Help/2022.1.0.1858/Portal/',
// '/Online%20Help/2022.2.0.1470/Portal/',
// '/Online%20Help/2023.1.0.655/Portal/',
// '/Online%20Help/2023.2.0.1763/Portal/',
// '/Online%20Help/2023.3.0.979/Portal/',
// '/Online%20Help/2024.1.0.2508/Portal/',
// ],
// },
],
createRedirects(existingPath) {
var versions = ["0.0", "2022.1", "2022.1.0.1858", "2022.2", "2022.2.0.1470", "2023.1", "2023.1.0.655", "2023.2", "2023.2.0.1763", "2023.3", "2023.3.0.979", "2024.1", "2024.1.0.2508"];
Expand Down
11 changes: 11 additions & 0 deletions static/Online%20Help/2022.1.0.1858/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>
11 changes: 11 additions & 0 deletions static/Online%20Help/2022.2.0.1470/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>
11 changes: 11 additions & 0 deletions static/Online%20Help/2023.1.0.655/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>
11 changes: 11 additions & 0 deletions static/Online%20Help/2023.2.0.1763/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>
11 changes: 11 additions & 0 deletions static/Online%20Help/2023.3.0.979/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>
11 changes: 11 additions & 0 deletions static/Online%20Help/2024.1.0.2508/Portal/Default.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=/">
<link rel="canonical" href="/" />
</head>
<script>
window.location.href = '/' + window.location.search + window.location.hash;
</script>
</html>

0 comments on commit 7148ff3

Please sign in to comment.