mirror of
https://github.com/hanzo-ml/spark-operator.git
synced 2026-10-30 20:39:07 +00:00
* new local website docs Signed-off-by: vara-bonthu <[email protected]> * homepage UX: ribbon logo, architecture diagram, CNCF footer, code-block fixes Signed-off-by: vara-bonthu <[email protected]> * docs: favicon, social cards, image optimization, consistent paragraph sizing Signed-off-by: vara-bonthu <[email protected]> * Potential fix for pull request finding Signed-off-by: Vara Bonthu <[email protected]> * docs: address PR review feedback (brand link, storage guard, cron, typos) Signed-off-by: vara-bonthu <[email protected]> * docs: address PR review (spec.mode, jar typo, CSS @import order, external-link host check, brand-link fallback) + strict docs build gate Signed-off-by: vara-bonthu <[email protected]> * docs: embed Kubeflow Spark Operator intro video on homepage Signed-off-by: vara-bonthu <[email protected]> * docs: clarify homepage video is the CNCF KubeCon NA 2024 best-practices talk Signed-off-by: vara-bonthu <[email protected]> * docs: fix header logo opening homepage in a new tab (exclude brand link from external-link handling) Signed-off-by: vara-bonthu <[email protected]> * docs: fix header logo navigation and point Kubeflow.org links to kubeflow.org Signed-off-by: vara-bonthu <[email protected]> * ci: add documentation build and link-check workflow Signed-off-by: vara-bonthu <[email protected]> * ci(docs): make linkcheck non-blocking; fix broken links and ignore JS-rendered anchors Signed-off-by: vara-bonthu <[email protected]> * docs: fix benchmarking links (Data on EKS benchmark kit and contributor handle) Signed-off-by: vara-bonthu <[email protected]> * docs: refine homepage copy and add muted color accents to landing cards Signed-off-by: vara-bonthu <[email protected]> * docs: move website under docs/website and manage Python deps with uv - Move the Sphinx site from docs/ to docs/website/ - Replace requirements.txt with pyproject.toml (uv 'docs' group) and uv.lock - Build with uv in Read the Docs, the Makefile targets, and CI - Leave pre-existing docs/{api-docs,kustomize-installation,release}.md in place Signed-off-by: vara-bonthu <[email protected]> * docs: improve sidebar navigation readability and hierarchy Signed-off-by: vara-bonthu <[email protected]> --------- Signed-off-by: vara-bonthu <[email protected]> Signed-off-by: Vara Bonthu <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
document.addEventListener("DOMContentLoaded", function () {
|
|
var mq = window.matchMedia("(min-width: 67em)");
|
|
if (!mq.matches) return;
|
|
|
|
var sidebar = document.querySelector(".sidebar-drawer");
|
|
if (!sidebar) return;
|
|
|
|
var collapsed = false;
|
|
try {
|
|
collapsed = localStorage.getItem("sidebar-collapsed") === "true";
|
|
} catch (e) {
|
|
/* storage may be blocked (privacy mode, hardened browsers) — ignore */
|
|
}
|
|
|
|
var btn = document.createElement("button");
|
|
btn.className = "sidebar-toggle-btn";
|
|
btn.setAttribute("aria-label", "Toggle sidebar");
|
|
btn.title = "Toggle sidebar";
|
|
btn.innerHTML =
|
|
'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"' +
|
|
' stroke-width="2" stroke-linecap="round">' +
|
|
'<line x1="4" y1="6" x2="20" y2="6"/>' +
|
|
'<line x1="4" y1="12" x2="20" y2="12"/>' +
|
|
'<line x1="4" y1="18" x2="20" y2="18"/>' +
|
|
"</svg>";
|
|
document.body.appendChild(btn);
|
|
|
|
function apply(val) {
|
|
collapsed = val;
|
|
document.body.classList.toggle("sidebar-collapsed", collapsed);
|
|
try {
|
|
localStorage.setItem("sidebar-collapsed", collapsed);
|
|
} catch (e) {
|
|
/* storage may be blocked — ignore */
|
|
}
|
|
}
|
|
|
|
btn.addEventListener("click", function () {
|
|
apply(!collapsed);
|
|
});
|
|
|
|
apply(collapsed);
|
|
|
|
mq.addEventListener("change", function (e) {
|
|
btn.style.display = e.matches ? "" : "none";
|
|
if (!e.matches) document.body.classList.remove("sidebar-collapsed");
|
|
});
|
|
});
|