Skip to content

Commit d2b1cdc

Browse files
authored
Setup redirect for split documentation (#81)
1 parent b56fe76 commit d2b1cdc

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

404.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Error 404 :(</title>
7+
8+
<script>
9+
window.onload = function () {
10+
const destination = window.location.href;
11+
if (window.location.href.includes("trixi-framwork.github.io/Trixi.jl")) {
12+
const redirectLocation = window.location.href.replace(
13+
"trixi-framework.github.io/Trixi.jl",
14+
"trixi-frameowkr.github.io/TrixiDocumentation"
15+
);
16+
document.getElementById("body").innerHTML = "Trixi.jl documentation has moved!<br/><br/>Redirecting to " + redirectLocation + " ...";
17+
window.location.href = redirectLocation;
18+
}
19+
}
20+
</script>
21+
</head>
22+
23+
<body id="body" style="text-align: center">
24+
Page not found
25+
</body>
26+
27+
</html>

404.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)