Fix GitHub Pages documentation deployment and add navigation redirects

This commit is contained in:
Admin9705
2025-05-16 18:23:12 -04:00
parent 84a26aab68
commit fd4e1eb877
3 changed files with 100 additions and 1 deletions

62
404.html Normal file
View File

@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Not Found - Huntarr Documentation</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #eee;
background-color: #121824;
max-width: 800px;
margin: 0 auto;
padding: 2em;
text-align: center;
}
h1 {
font-size: 2.5em;
margin-bottom: 0.5em;
}
p {
margin: 1em 0;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.redirect-message {
background-color: rgba(52, 152, 219, 0.1);
border: 1px solid rgba(52, 152, 219, 0.3);
border-radius: 5px;
padding: 1em;
margin: 2em 0;
}
</style>
</head>
<body>
<h1>404 - Page Not Found</h1>
<p>The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.</p>
<div class="redirect-message">
<p>It looks like you're trying to access Huntarr documentation.</p>
<p><a href="docs/">Go to Documentation Home</a></p>
</div>
<p>If you were redirected here from a link in the Huntarr application, please report this issue on
<a href="https://github.com/plexguide/Huntarr.io/issues">our GitHub issues page</a>.
</p>
<script>
// Check if we're looking for documentation
if (window.location.href.includes('docs/') || window.location.href.includes('documentation')) {
window.location.href = window.location.origin + '/Huntarr.io/docs/';
}
</script>
</body>
</html>

View File

@@ -21,7 +21,7 @@
auto2top: true,
homepage: 'README.md',
themeColor: '#3498db',
basePath: '/Huntarr.io/docs/',
basePath: '',
search: {
maxAge: 86400000,
paths: 'auto',

37
index.html Normal file
View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Huntarr Documentation</title>
<meta http-equiv="refresh" content="0;url=docs/">
<link rel="canonical" href="docs/">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #eee;
background-color: #121824;
max-width: 800px;
margin: 0 auto;
padding: 2em;
text-align: center;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Huntarr Documentation</h1>
<p>Redirecting to <a href="docs/">documentation</a>...</p>
<script>
window.location.href = 'docs/';
</script>
</body>
</html>