Skip to content

Commit bd3ce4e

Browse files
committed
Fix: Add collapsed property to linter sections in astro.config.mjs
The previous commit only updated sidebar-from-site-structure.ts, but the actual sidebar used by the site is defined in astro.config.mjs. This commit adds collapsed: true to both Protobuf Linter and OpenAPI Linter sections in the Astro config to properly close them by default.
1 parent a8fd962 commit bd3ce4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ function transformSiteStructureToSidebar(siteStructure) {
7777
if (siteStructure.tooling.linterRules?.length > 0) {
7878
toolingItems.push({
7979
label: "Protobuf Linter",
80+
collapsed: true,
8081
items: [
8182
"tooling/linter",
8283
{
@@ -94,6 +95,7 @@ function transformSiteStructureToSidebar(siteStructure) {
9495
if (siteStructure.tooling.openAPILinterRules?.length > 0) {
9596
toolingItems.push({
9697
label: "OpenAPI Linter",
98+
collapsed: true,
9799
items: [
98100
"tooling/openapi-linter",
99101
{

0 commit comments

Comments
 (0)