-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(theme-default): heading-sidebar #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tweaks is suggested.
@@ -69,6 +69,7 @@ export default defineUserConfig({ | |||
], | |||
}, | |||
], | |||
'/heading-sidebar/': 'heading', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change the strcture to:
sidebar/
auto/
auto.md
config/
1.md
2.md
README.md
I believe this could be better, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! but a auto folder and a auto.md, auto folder is for theme config, and auto.md is for frontmatter.
This can be done in another pr, and e2e test cases completion welcome.
I created a docs PR for these changes. vuepress/docs#9 |
Before submitting the PR, please make sure you do the following
close vuepress/core#123
).What is the purpose of this pull request?
Description
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.
This PR also contains the initial setup of the e2e tests for the default theme and a couple e2e tests of this new feature.
Screenshots
Before
After
closes #17