Skip to content

Commit

Permalink
refactor: rename sidebar.leftArrow to sidebar.style
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Oct 23, 2024
1 parent 2be0a40 commit fdac366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/layout/AsideTreeItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@click="isOpen = !isOpen"
>
<SmartIcon
v-if="link.sidebar?.leftArrow"
v-if="link.sidebar?.style === 'tree'"
name="lucide:chevron-down"
class="transition-transform"
:class="[!isOpen && '-rotate-90']"
Expand All @@ -29,7 +29,7 @@
</span>

<SmartIcon
v-if="!link.sidebar?.leftArrow"
v-if="link.sidebar?.style !== 'tree'"
name="lucide:chevron-down"
class="ml-auto transition-transform"
:class="[!isOpen && '-rotate-90']"
Expand Down
7 changes: 2 additions & 5 deletions content/1.getting-started/3.writing/3.folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
title: Folders
icon: lucide:folder
description: Configure directory nodes via _dir.yml files.
navBadges:
- value: New
type: lime
---

You can customize folders by creating a `_dir.yml` file in the folder.
Expand All @@ -15,7 +12,7 @@ title: Writing
icon: lucide:edit
navigation.redirect: /getting-started/writing/markdown
sidebar:
leftArrow: true
style: tree
```
```[Directory structure]
content/
Expand All @@ -37,7 +34,7 @@ content/
::
::field{name="sidebar" type="object"}
::collapsible{title="Details"}
::field{name="leftArrow" type="boolean" default-value="false"}
::field{name="style" type="'normal' | 'tree'" default-value="normal"}
Whether the collapse icon should be on the left.
::
::
Expand Down

0 comments on commit fdac366

Please sign in to comment.