-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Auto Sidebar Per Page #17
Labels
Comments
@meteorlxy @Mister-Hope thoughts? I can put up a PR for this if we want to try this out. |
LGTM |
You may check other features in my theme hope, this feature is called heading in my theme.https://theme-hope.vuejs.press/guide/layout/sidebar.html If you think that structure sidebar is useful, then we 'd better not calling this one as auto. |
nruffing
added a commit
to nruffing/vuepress-ecosystem
that referenced
this issue
Jan 21, 2024
nruffing
added a commit
to nruffing/vuepress-ecosystem
that referenced
this issue
Jan 21, 2024
nruffing
added a commit
to nruffing/vuepress-ecosystem
that referenced
this issue
Jan 21, 2024
5 tasks
nruffing
added a commit
to nruffing/vuepress-ecosystem
that referenced
this issue
Jan 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear and concise description of the problem
The auto sidebar feature of the default theme is quite useful, especially in cases where the pages are autogenerated documentation from something like TypeDoc.
Currently you can only use the auto feature on all pages or manually specify the sidebar for every page. It would be great if you could turn the feature on per page as well.
I was able to hack it to make it work for the data-grid-vue site using vue router nav guards but its not maintainable and would probably be pretty easy to implement in the theme unless the changes to not use the vue router are going to make the auto sidebar feature more difficult to implement in general.
https://github.com/nruffing/data-grid-vue/blob/main/vuepress/.vuepress/client.ts#L63
Suggested solution
Implement passing 'auto' to a
SidebarConfigArray
for a given page in the theme's config object.We could also change
SidebarConfigObject
to allow a string directly.Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: