From 6f94db2311cc9791bc7681841bbfc9bf9bf4d42e Mon Sep 17 00:00:00 2001 From: "Dominykas M." <26067386+Tasty-Kiwi@users.noreply.github.com> Date: Thu, 28 Mar 2024 19:44:32 +0200 Subject: [PATCH] make the sidebar not collapse everything by default and make sidebar collapsible --- docusaurus.config.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index bcaa378..288f6de 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,6 +1,6 @@ -import { themes as prismThemes } from "prism-react-renderer"; -import type { Config } from "@docusaurus/types"; -import type * as Preset from "@docusaurus/preset-classic"; +import { themes as prismThemes } from "prism-react-renderer" +import type { Config } from "@docusaurus/types" +import type * as Preset from "@docusaurus/preset-classic" const config: Config = { title: "PPL Docs", @@ -23,6 +23,7 @@ const config: Config = { docs: { sidebarPath: "./sidebars.ts", editUrl: "https://github.com/pewpewlive/ppl-docs/edit/master/", + sidebarCollapsed: false }, blog: { showReadingTime: true, @@ -99,6 +100,7 @@ const config: Config = { docs: { sidebar: { autoCollapseCategories: false, + hideable: true, }, }, prism: { @@ -108,6 +110,6 @@ const config: Config = { }, } satisfies Preset.ThemeConfig, themes: [require.resolve("@easyops-cn/docusaurus-search-local")], -}; +} -export default config; +export default config