-
Hi all, I can't seem to figure out how I get the sidebar to be automatically generated. The Docs say this is the default behavior. I also tried to force it with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you do not want to configure sidebar manually, you can write a function to read directory and generate the sidebar config. |
Beta Was this translation helpful? Give feedback.
-
If you do want your sidebar be auto generated from file structure, you can search through 3rd party themes and plugins. BTW I have plans to achieve it in my own theme vuepress-theme-hope. |
Beta Was this translation helpful? Give feedback.
sidebar: auto
is for generating sidebar from all your sub headers in current page, which won't generate links to other pages.If you do not want to configure sidebar manually, you can write a function to read directory and generate the sidebar config.