Skip to content

Commit aad09cb

Browse files
authored
redirect /docs/
1 parent f553556 commit aad09cb

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

404.html

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Error 404 - Page Not Found</title>
38

4-
<head>
5-
<meta charset="UTF-8">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title>Error 404 - Page Not Found</title>
9+
<!-- Favicon -->
10+
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
911

10-
<!-- Favicon -->
11-
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
12+
<!-- Stylesheets -->
13+
<link rel="stylesheet" href="/styles/404.css">
14+
</head>
1215

13-
<!-- Stylesheets -->
14-
<link rel="stylesheet" href="/styles/404.css">
15-
</head>
16+
<body>
17+
<div class="error-container">
18+
<h1>Error 404 - Page Not Found</h1>
19+
<p>The page you are looking for might have been removed or is temporarily unavailable.</p>
20+
<p>Go back to the <a href="/">homepage</a>.</p>
21+
</div>
22+
</body>
1623

17-
<body>
18-
<div class="error-container">
19-
<h1>Error 404 - Page Not Found</h1>
20-
<p>The page you are looking for might have been removed or is temporarily unavailable.</p>
21-
<p>Go back to the <a href="/">homepage</a>.</p>
22-
</div>
23-
</body>
24+
<script>
25+
const path = window.location.pathname;
26+
const search = window.location.search;
27+
const hash = window.location.hash;
2428

25-
</html>
29+
if (path.startsWith("/docs/")) {
30+
const target = "https://docs.is-a.dev" + path.replace(/^\/docs/, '') + search + hash;
31+
window.location.replace(target);
32+
}
33+
</script>
34+
</html>

docs.html

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

0 commit comments

Comments
 (0)