Description
Feature request
Hi,
I was using sidebar: 'auto'
until now.
For a specific page, I want to override the sidebar.
I thought I could so this with the in YAML config of that specific page but after looking at the docs, it looks like I need to do this in the theme config.
So I added my sidebar, but it remove the automatic sidebar from every other page !
By looking at the example for the default theme config (https://vuepress.vuejs.org/theme/default-theme-config.html#sidebar), I see there is a fallback option.
If I use the fallback options with auto, the whole site does not load but there is no error while generating.
sidebar: {
'/documentation/vue/': [
'',
'why-vue',
'plugins',
],
// fallback
'/': 'auto',
},
The only possible way to bypass this that works would be to not provide a fallback and add a YAML config for EVERY page with
---
sidebar: auto
---
What problem does this feature solve?
Allow to have an auto sidebar for everypage expect a few specific pages.
What does the proposed API look like?
A) Allow overriding an auto sidebar in the YAML of the page
B) Allowing auto option on sidebar fallback in config.json
How should this be implemented in your opinion?
Option B