jooy2 / vitepress-sidebar

🔌 VitePress Sidebar is a plugin for VitePress that automatically configures and manages the sidebar of your page with simple settings.
https://vitepress-sidebar.cdget.com
MIT License
144 stars 7 forks source link

[Feature request] Add a parameter to sort by real folder/file names when using `sortMenusOrderNumerically` and `useFolderTitleFromIndexFile` or `useTitleFromFileHeading` #136

Closed joris-fonck-loreal closed 5 months ago

joris-fonck-loreal commented 7 months ago

Hello,

First, thank you for your amazing vitepress plugin!

I was studying the features and I have a use case that doesn't seem to be implemented.

Feature

When using sortMenusOrderNumerically and useFolderTitleFromIndexFile together, the sorting rely on the title of the index.md.

I would like to sort them by the real folder name, which are named when the convention (e.g ['1-a', '2-a', '10-a']).

Is it something possible?

Regards.

jooy2 commented 5 months ago

Hello, thank you for using vitepress-sidebar.

The feature you requested was added in version 1.20.0 with the sortMenusOrderNumericallyFromLink option. (The previous option, sortMenusOrderNumerically, has been changed to sortMenusOrderNumericallyFromTitle.) Please refer to the README.md file for more information.

Thank you for your feature request and please open a new issue if you encounter any further issues.

Regards,