diff --git a/docs/config/frontmatter-configs.md b/docs/config/frontmatter-configs.md index dc624ff6..8503a5ed 100644 --- a/docs/config/frontmatter-configs.md +++ b/docs/config/frontmatter-configs.md @@ -200,17 +200,15 @@ interface Feature { } ``` -## rightsidebar +## aside - Type: `boolean` +- Default: `true` -This option only take effect when `layout` is set to `page`. - -By default, the right aside will be shown, if you want to remove it, configure the option to `false`: +If you want the right aside component in `doc` layout not to be shown, set this option to `false`. ```yaml --- -rightsidebar: false +aside: false --- ``` - diff --git a/src/client/theme-default/components/VPDoc.vue b/src/client/theme-default/components/VPDoc.vue index eefc803a..9f07347d 100644 --- a/src/client/theme-default/components/VPDoc.vue +++ b/src/client/theme-default/components/VPDoc.vue @@ -6,7 +6,7 @@ import VPDocAside from './VPDocAside.vue' import VPDocFooter from './VPDocFooter.vue' const route = useRoute() -const { hasSidebar, hasRightSidebar } = useSidebar() +const { hasSidebar, hasAside } = useSidebar() const pageName = computed(() => route.path.replace(/[./]+/g, '_').replace(/_html$/, '') @@ -14,9 +14,12 @@ const pageName = computed(() =>