-
Notifications
You must be signed in to change notification settings - Fork 40
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
How to specify pages #10
Comments
Could you provide a sample repo please? |
plugins: [ |
|
const barConfig = getConfig("./",["/blog/","/docs/"]) I think add a pages list will better |
You should add all your content to a subfolder for For example: Add all your content to Then in const getConfig = require("vuepress-bar");
const barConfig = getConfig(`${__dirname}/..`);
module.exports = {
// ... your config
themeConfig: {
sidebar: barConfig.sidebar,
nav: [] // your nav details
}
} |
So dir like this?
Two .vuepress dir? |
No, just single Only in
|
But I have other pages... this is my website: sealyun.com, and I don't expect other pages have sidebar |
Maybe you can create two vuepress sites and add manual links between them in nav:
|
I think that is not very nice, vuepress bar add a config to filter out which pages need it will better. Like this :
It is my suggestion 😄 |
I only want my blog pages auto-generate, but all other pages generate sidebar too, and I can't remove the root dir.
The text was updated successfully, but these errors were encountered: