From 03272ebd053d50a46470af82673e90c16723e206 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Tue, 6 Oct 2026 15:26:40 +1100 Subject: [PATCH] website: add the Back to StackQL Docs sidebar link Opens the docs sidebar with a link to /stackqldocs, the redirect to the main stackql.io docs, matching the query library site and the provider template. Styled by the new .sidebar-back-link rules in the site stylesheet. No generated docs or dependencies change. Co-Authored-By: Claude Fable 5.1 --- website/sidebars.js | 10 ++++++++++ website/src/css/custom.css | 22 +++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/website/sidebars.js b/website/sidebars.js index 72e3166db..ca437e584 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -21,6 +21,16 @@ const providerTitle = config.title.replace(/^StackQL /, '').replace(/ Provider$/ const sidebars = { mainSidebar: [ + // Way back to the main stackql.io docs, as on the query library site. + // '/stackqldocs' is this site's redirect page (src/pages/stackqldocs.js). + // The arrow and divider come from the .sidebar-back-link rules in the + // site stylesheet. + { + type: 'link', + label: 'Back to StackQL Docs', + href: '/stackqldocs', + className: 'sidebar-back-link', + }, { type: 'link', label: 'All Providers', diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 392c310e1..325c3c145 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -271,4 +271,24 @@ div:has(> .vhsImage) { .breadcrumbs-with-actions nav { flex: 1; min-width: 0; -} \ No newline at end of file +} + +/* +* sidebar: back link to the main stackql.io docs (the first item in +* sidebars.js). Same treatment as the query library site: bold label, +* leading arrow drawn here so the label stays plain text, divider below. +*/ +.sidebar-back-link { + border-bottom: 1px solid var(--ifm-color-emphasis-300); + padding-bottom: 0.5rem; + margin-bottom: 0.5rem !important; +} + +.sidebar-back-link .menu__link { + font-weight: 600; +} + +.sidebar-back-link .menu__link::before { + content: '\2190'; + margin-right: 0.5rem; +}