Skip to content

Commit

Permalink
Make index pages redirect to latest/
Browse files Browse the repository at this point in the history
Rough steps, committing just the needed files in the end:
```sh
mike deploy --update-aliases --alias-type=redirect latest index
find index -name '*.html' -exec sed -i 's:\.\./latest:latest:g' {} +
for f in index/{,*/,*/*/}*.html; do git mv "$f" "${f#index/}"; done
```
  • Loading branch information
ThinkChaos committed Jan 18, 2024
1 parent d7749da commit b0f7a78
Show file tree
Hide file tree
Showing 10 changed files with 180 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=latest/404.html" />
</noscript>
<script>
window.location.replace(
"latest/404.html" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="latest/404.html">latest/404.html</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions additional_information/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/additional_information/" />
</noscript>
<script>
window.location.replace(
"../latest/additional_information/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/additional_information/">../latest/additional_information/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions configuration/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/configuration/" />
</noscript>
<script>
window.location.replace(
"../latest/configuration/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/configuration/">../latest/configuration/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions includes/abbreviations/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../../latest/includes/abbreviations/" />
</noscript>
<script>
window.location.replace(
"../../latest/includes/abbreviations/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../../latest/includes/abbreviations/">../../latest/includes/abbreviations/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=latest/" />
</noscript>
<script>
window.location.replace(
"latest/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="latest/">latest/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions installation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/installation/" />
</noscript>
<script>
window.location.replace(
"../latest/installation/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/installation/">../latest/installation/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions interfaces/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/interfaces/" />
</noscript>
<script>
window.location.replace(
"../latest/interfaces/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/interfaces/">../latest/interfaces/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions network_configuration/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/network_configuration/" />
</noscript>
<script>
window.location.replace(
"../latest/network_configuration/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/network_configuration/">../latest/network_configuration/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions prometheus_grafana/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=../latest/prometheus_grafana/" />
</noscript>
<script>
window.location.replace(
"../latest/prometheus_grafana/" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="../latest/prometheus_grafana/">../latest/prometheus_grafana/</a>...
</body>
</html>
18 changes: 18 additions & 0 deletions rapidoc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta http-equiv="refresh" content="1; url=latest/rapidoc.html" />
</noscript>
<script>
window.location.replace(
"latest/rapidoc.html" + window.location.search + window.location.hash
);
</script>
</head>
<body>
Redirecting to <a href="latest/rapidoc.html">latest/rapidoc.html</a>...
</body>
</html>

0 comments on commit b0f7a78

Please sign in to comment.