fix(docs): hide sidebar placeholders on index pages

Use a data attribute on docs index containers so sidebar placeholders and panels can be hidden with CSS while preserving the existing layout column override.
This commit is contained in:
Andras Bacsai
2026-05-24 18:19:36 +02:00
parent 0a3a91e3c3
commit 6b0b1b8fa5
2 changed files with 6 additions and 3 deletions
+1 -3
View File
@@ -236,10 +236,8 @@ function Page() {
const indexLayoutProps = data.isIndex
? {
sidebar: {
enabled: false,
},
containerProps: {
'data-docs-index': true,
style: {
'--fd-sidebar-col': '0px',
} as CSSProperties,
+5
View File
@@ -62,3 +62,8 @@ body {
[data-media-card] p {
margin: 0 !important;
}
[data-docs-index] [data-sidebar-placeholder],
[data-docs-index] [data-sidebar-panel] {
display: none;
}