diff --git a/Doxyfile b/Doxyfile index cc66fb1..5393457 100644 --- a/Doxyfile +++ b/Doxyfile @@ -8,8 +8,6 @@ USE_MDFILE_AS_MAINPAGE = README.md EXTRACT_ALL = YES GENERATE_HTML = YES HTML_OUTPUT = html -HTML_HEADER = docs/html-header.html -HTML_EXTRA_FILES = docs/version-selector.js GENERATE_LATEX = NO GENERATE_XML = NO QUIET = YES diff --git a/docs/html-header.html b/docs/html-header.html deleted file mode 100644 index a3f0fd1..0000000 --- a/docs/html-header.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - -$projectname: $title -$title - - - - -$treeview -$search -$mathjax -$darkmode - -$extrastylesheet - - - - -
-
-
- - - - - - - - - - - - - - - - -
-
$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