-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path404.html
More file actions
44 lines (44 loc) · 2.3 KB
/
404.html
File metadata and controls
44 lines (44 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta charset="utf-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link media="all" href="css/pygments.css" type="text/css" rel="stylesheet" />
<link media="all" href="css/gwpy.css" type="text/css" rel="stylesheet" />
<script src="js/https.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<title>GWpy</title>
<link rel="shortcut icon" href="images/favicon.png"/>
</head>
<body>
<div class="container" style="max-width: 800px; padding-top: 10px;">
<div id="logo">
<center>
<img src="/images/gwpy_1200.png" alt="GWpy logo" title="GWpy logo" width="400" style="width: 100%; max-width: 400px; max-height: 80%"/>
</center>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-warning fade show" role="alert">
<p><strong>404 Not Found:</strong> GWpy documentation has moved to <a href="https://gwpy.readthedocs.io/" class="alert-link">Read the Docs</a>, please replace <code>https://gwpy.github.io/docs/</code> with <code>https://gwpy.readthedocs.io/en/</code> in your URL and try again.</p>
<p><a href="#" id="rtd-link" class="alert-link">Click here</a> to see if the current page exists on Read the Docs.</p>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Get the current URL that resulted in 404
var currentUrl = window.location.href;
// Replace gwpy.github.io docs path with readthedocs equivalent
var redirectUrl = currentUrl.replace('https://gwpy.github.io/docs/', 'https://gwpy.readthedocs.io/en/');
// Set the link href
var rtdLink = document.getElementById('rtd-link');
if (rtdLink) {
rtdLink.href = redirectUrl;
}
});
</script>
</body>
</html>