Skip to content

Commit

Permalink
feat: collapsed state fine-tuning (#745)
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
Resolves #743
  • Loading branch information
mathieunicolas committed Jan 25, 2023
1 parent d68ed1b commit c9c1b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/docs/DocsAsideTree.vue
Expand Up @@ -46,6 +46,9 @@ const isCollapsed = (link: any) => {
return collapsedMap.value[link._path]
}
// Check if aside.collapsed has been set in YML
if (link.aside?.hasOwnProperty('collapsed')) { return link.aside.collapsed }
// Return value grabbed from the link
if (link?.collapsed) { return link?.collapsed }
Expand Down

1 comment on commit c9c1b27

@vercel
Copy link

@vercel vercel bot commented on c9c1b27 Jan 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.