Skip to content

Commit 9d45b2c

Browse files
committed
Got a multi-sidebar for products working
1 parent 101188a commit 9d45b2c

File tree

6 files changed

+403
-176
lines changed

6 files changed

+403
-176
lines changed

astro.config.mjs

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,37 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import starlightUtils from '@lorenzo_lewis/starlight-utils';
45

56
// https://astro.build/config
67
export default defineConfig({
7-
integrations: [
8-
starlight({
9-
title: 'LocalStack Docs',
10-
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
11-
sidebar: [
12-
{
13-
label: 'Tutorials',
14-
items: [
15-
// Each item here is one entry in the navigation menu.
16-
{ label: 'Index', slug: 'index' },
17-
],
18-
},
19-
],
20-
}),
21-
],
8+
integrations: [
9+
starlight({
10+
title: 'LocalStack Docs',
11+
social: [
12+
{
13+
icon: 'github',
14+
label: 'GitHub',
15+
href: 'https://github.com/withastro/starlight',
16+
},
17+
],
18+
plugins: [
19+
starlightUtils({
20+
multiSidebar: {
21+
switcherStyle: 'dropdown',
22+
},
23+
}),
24+
],
25+
sidebar: [
26+
{
27+
label: 'AWS',
28+
autogenerate: { directory: '/aws' },
29+
},
30+
{
31+
label: 'Snowflake',
32+
autogenerate: { directory: '/snowflake' },
33+
},
34+
],
35+
}),
36+
],
2237
});

0 commit comments

Comments
 (0)