-
-
-
-
-
-  |
-
-
-
- $projectname $projectnumber
- $projectbrief
- |
-
-
- $projectbrief |
-
- $searchbox |
-
- | $searchbox |
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/version-selector.js b/docs/version-selector.js
deleted file mode 100644
index 6491d65..0000000
--- a/docs/version-selector.js
+++ /dev/null
@@ -1,42 +0,0 @@
-document.addEventListener("DOMContentLoaded", async () => {
- const path = window.location.pathname.split("/").filter(Boolean);
- if (path.length < 2 || path[0] !== "HTS221") {
- return;
- }
-
- const siteRoot = `${window.location.origin}/HTS221/`;
- let versions;
- try {
- const response = await fetch(`${siteRoot}versions.json`);
- if (!response.ok) {
- return;
- }
- versions = await response.json();
- } catch {
- return;
- }
-
- const selector = document.getElementById("doc-version");
- const selectorContainer = document.getElementById("doc-version-selector");
- if (!selector || !selectorContainer) {
- return;
- }
-
- const currentVersion = path[1];
- for (const entry of versions) {
- for (const name of [entry.version, ...entry.aliases]) {
- const option = document.createElement("option");
- option.value = name;
- option.textContent = name === "latest" ? `latest (${entry.version})` : name;
- option.selected = name === currentVersion;
- selector.add(option);
- }
- }
-
- selector.addEventListener("change", () => {
- const pagePath = path.slice(2).map(encodeURIComponent).join("/");
- const target = `${siteRoot}${encodeURIComponent(selector.value)}/${pagePath}`;
- window.location.assign(`${target}${window.location.search}${window.location.hash}`);
- });
- selectorContainer.hidden = false;
-});
\ No newline at end of file