Skip to content

Commit

Permalink
make the sidebar not collapse everything by default and make sidebar …
Browse files Browse the repository at this point in the history
…collapsible
  • Loading branch information
Tasty-Kiwi committed Mar 28, 2024
1 parent 49c3f1d commit 6f94db2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -99,6 +100,7 @@ const config: Config = {
docs: {
sidebar: {
autoCollapseCategories: false,
hideable: true,
},
},
prism: {
Expand All @@ -108,6 +110,6 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,
themes: [require.resolve("@easyops-cn/docusaurus-search-local")],
};
}

export default config;
export default config

0 comments on commit 6f94db2

Please sign in to comment.