Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
22 changes: 21 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,24 @@ div:has(> .vhsImage) {
.breadcrumbs-with-actions nav {
flex: 1;
min-width: 0;
}
}

/*
* 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;
}
Loading