Skip to content

Commit

Permalink
feat: make sidebar always show (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
IZUMI-Zu authored Oct 24, 2024
1 parent 30a4966 commit b4d77e1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ module.exports = {
({
docs: {
sidebarPath: "./sidebars.js",
editUrl:
"https://github.com/casdoor/casdoor-app/tree/main/docs/",
sidebarCollapsed: false,
editUrl: ({docPath}) => {
return `https://github.com/casdoor/casdoorapp-website/edit/master/docs/${docPath}`;
},
},
blog: {
showReadingTime: true,
editUrl:
"https://github.com/casdoor/casdoorapp-website/",
editUrl: ({blogDirPath, blogPath}) => {
return `https://github.com/casdoor/casdoorapp-website/edit/master/${blogDirPath}/${blogPath}`;
},
},
theme: {
customCss: "./src/css/custom.css",
Expand All @@ -59,8 +62,8 @@ module.exports = {
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
type: "doc",
docId: "overview",
position: "left",
label: "Docs",
},
Expand Down

0 comments on commit b4d77e1

Please sign in to comment.