fix(dashboard): the docs link opens the docs, not a 404 (#364)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 3m46s

This commit was merged in pull request #364.
This commit is contained in:
sharang committed 2026-09-24 12:07:58 +00:00
1 parent 12b7e9b6b8
commit d7316dc403
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -2,7 +2,9 @@ FROM rust:1.94-bookworm AS builder
RUN cargo install dioxus-cli --version 0.7.3 --locked
ARG DOCS_URL=/docs
# The docs site, served at /docs/ on the dashboard host. Keep the trailing
# slash: the orca route matches /docs/*, so plain /docs reaches the dashboard.
ARG DOCS_URL=/docs/
# Legal pages linked from the sidebar; the defaults are breakpilot.com's.
ARG IMPRINT_URL=https://breakpilot.com/impressum
ARG PRIVACY_URL=https://breakpilot.com/datenschutz
@@ -89,7 +89,9 @@ pub fn Sidebar() -> Element {
},
];
let docs_url = option_env!("DOCS_URL").unwrap_or("/docs");
// With the trailing slash: the docs route matches /docs/*, and a plain
// /docs lands on the dashboard's "route not found" page.
let docs_url = option_env!("DOCS_URL").unwrap_or("/docs/");
let sidebar_class = if collapsed() {
"sidebar collapsed"