When using sidebarDepth: 0 in a page YAML the header links keep being displayed.
Add a sidebarDepth to a element in the sidebar object.
If this element has h2 headers (created with ## in markdown), they will appear as a submenu in the navbar.
config.json
{
sidebar: {
'/resources/': [
{
title: '📦 Resources',
path: '/resources/',
collapsable: false,
children: [
'/resources/sdks',
{
title: 'FAQ',
path: '/resources/faq.md',
sidebarDepth: 0,
},
'/resources/contact',
],
},
]
}
}
The h2 title should not appear in the sidebar.
The h2 titles does appear in the sidebar.
preview of the sidebar:

sample of code from faq.md:
# FAQ
This FAQ is still a work in progress.<br>
If you have any questions we want to hear from you. Your feedback will help us improve this page!
## Table of contents
...
similar issue: #1701
npx vuepress info in my VuePress project:Environment Info:
System:
OS: macOS Mojave 10.14.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Binaries:
Node: 14.0.0 - /usr/local/bin/node
Yarn: 1.21.1 - ~/.yarn/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Browsers:
Chrome: 81.0.4044.122
Firefox: 72.0.2
Safari: 13.1
npmPackages:
@vuepress/core: 1.4.1
@vuepress/theme-default: 1.4.1
vuepress: ^1.4.1 => 1.4.1
npmGlobalPackages:
vuepress: Not Found
你配置错了。
sidebarDepth 不是 sidebar 的配置属性。


你也可以在 md 文件开头加这一句:
sidebarDepth: 0
---
## title
blabla......
It actually is @koibi2. At least that is what the documentation claims:
https://vuepress.vuejs.org/theme/default-theme-config.html#sidebar-groups
Because I have exactly the same problem. It works totally fine fine on the top level themeConfig.sidebarDepth but it is not possible to overwrite it in a Sidebar Group as described in the above link.
So I can not have it as default set to 2 and then overwrite it for some groups to 0.