fix(content-docs): render category with no subitems as a normal link (#6495)

This commit is contained in:
Joshua Chen 2022-02-02 21:45:00 +08:00 committed by GitHub
parent 049b2c84c6
commit 3573b5e4a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 120 additions and 5 deletions

View file

@ -194,6 +194,19 @@ Naming your introductory document `README.md` makes it show up when browsing the
:::
:::tip
If a folder only has one index page, it will be turned into a link instead of a category. This is useful for **asset collocation**:
```
some-doc
├── index.md
├── img1.png
└── img2.png
```
:::
<details>
<summary>Customizing category index matching</summary>