diff --git a/docs/config/frontmatter-configs.md b/docs/config/frontmatter-configs.md index 25dd222c182e..8503a5eda478 100644 --- a/docs/config/frontmatter-configs.md +++ b/docs/config/frontmatter-configs.md @@ -199,3 +199,16 @@ interface Feature { details: string } ``` + +## aside + +- Type: `boolean` +- Default: `true` + +If you want the right aside component in `doc` layout not to be shown, set this option to `false`. + +```yaml +--- +aside: false +--- +``` diff --git a/src/client/theme-default/components/VPDoc.vue b/src/client/theme-default/components/VPDoc.vue index c55766781951..9f07347d68e8 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 } = useSidebar() +const { hasSidebar, hasAside } = useSidebar() const pageName = computed(() => route.path.replace(/[./]+/g, '_').replace(/_html$/, '') @@ -14,9 +14,12 @@ const pageName = computed(() =>