vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.26k stars 2.14k forks source link

[feature] Request vitepress to automatically generate a sider from the file directory #4229

Open you-hengh opened 2 months ago

you-hengh commented 2 months ago

Is your feature request related to a problem? Please describe.

I started using VitePress a long time ago, about 4 years back. I don't want to waste developers' time listening to me ramble, but the main reason I'm bringing this up is that I've accumulated a lot of notes.

Every time I publish a new note, I have to manually add the blog path in Sider, which is really inconvenient! I just want to write notes, and filling in the note path in Sider is a hassle for me.

Of course, I noticed this issue: https://github.com/vuejs/vitepress/issues/572#issuecomment-1170116225

But it seems like it would require more work, which just adds to the burden of writing my notes!

Describe the solution you'd like

I just want to happily take notes without worrying about file paths. I hope vitepress can intelligently analyze the note paths and stop making the note authors stress over this.

For example, if vitepress knows all the locations of my notes, then it should refresh the content of the sider and nav every time it builds.

Please don't overlook this issue. Thanks!

The number of notes users have keeps increasing over time, and users migrating from other frameworks face this problem even more. They need to manually fill in a lot of sider and nav, which raises their costs.

Please don't ignore this issue. Thank you!

Describe alternatives you've considered

null

Additional context

null

Validations