diff --git a/docs/config/frontmatter-configs.md b/docs/config/frontmatter-configs.md index 25dd222c..dc624ff6 100644 --- a/docs/config/frontmatter-configs.md +++ b/docs/config/frontmatter-configs.md @@ -199,3 +199,18 @@ interface Feature { details: string } ``` + +## rightsidebar + +- Type: `boolean` + +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`: + +```yaml +--- +rightsidebar: false +--- +``` + diff --git a/src/client/theme-default/components/VPDoc.vue b/src/client/theme-default/components/VPDoc.vue index c5576678..eefc803a 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, hasRightSidebar } = useSidebar() const pageName = computed(() => route.path.replace(/[./]+/g, '_').replace(/_html$/, '') @@ -16,7 +16,7 @@ const pageName = computed(() =>