From 6f5ada70c809960d04cc3bb31e0cbeb856ad5b55 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 14 Jul 2022 12:07:11 +0530 Subject: [PATCH] chore: rename option to aside --- docs/config/frontmatter-configs.md | 10 ++++------ src/client/theme-default/components/VPDoc.vue | 13 ++++++++----- src/client/theme-default/composables/sidebar.ts | 9 ++++++--- 3 files changed, 18 insertions(+), 14 deletions(-) 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(() =>