Skip to content
This repository was archived by the owner on Oct 8, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
110 changes: 60 additions & 50 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,61 @@
---
permalink: /404.html
layout: default
---

<script>
(function () {
const migratedRepos = {
"tps-location-sdk-native": "https://qualcomm.github.io/tps-location-sdk-native",
"tps-location-sdk-android": "https://qualcomm.github.io/tps-location-sdk-android",
"aimet-pages": "https://qualcomm.github.io/aimet-pages",
"efficient-transformers": "https://qualcomm.github.io/efficient-transformers"
};

const path = window.location.pathname;
const search = window.location.search;
const hash = window.location.hash;

const pathParts = path.split("/").filter(Boolean);
const repoName = pathParts[0];

if (repoName && Object.prototype.hasOwnProperty.call(migratedRepos, repoName)) {
const remainingPath = path.substring(("/" + repoName).length);
const targetBaseUrl = migratedRepos[repoName].replace(/\/$/, "");
const targetUrl = targetBaseUrl + remainingPath + search + hash;

window.location.replace(targetUrl);
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<title>404 - Page not found</title>

<script>
(function () {
const migratedRepos = {
"tps-location-sdk-native": "https://qualcomm.github.io/tps-location-sdk-native",
"tps-location-sdk-android": "https://qualcomm.github.io/tps-location-sdk-android",
"aimet-pages": "https://qualcomm.github.io/aimet-pages",
"efficient-transformers": "https://qualcomm.github.io/efficient-transformers"
};

const path = window.location.pathname;
const search = window.location.search;
const hash = window.location.hash;

const pathParts = path.split("/").filter(Boolean);
const repoName = pathParts[0];

if (repoName && Object.prototype.hasOwnProperty.call(migratedRepos, repoName)) {
const remainingPath = path.substring(("/" + repoName).length);
const targetBaseUrl = migratedRepos[repoName].replace(/\/$/, "");
const targetUrl = targetBaseUrl + remainingPath + search + hash;

window.location.replace(targetUrl);
}
})();
</script>

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
font-family: sans-serif;
}
})();
</script>

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
</head>

<body>
<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
</body>

</html>
34 changes: 0 additions & 34 deletions Gemfile

This file was deleted.

Loading
Loading