fix: respect geekdocFileTreeSortBy
parameter while creating the toc tree (#771)
This commit is contained in:
parent
1d789048f3
commit
b750f4ab53
3 changed files with 50 additions and 4 deletions
|
@ -8,10 +8,18 @@ The `toc-tree` shortcode will generate a Table of Content from a section file tr
|
|||
|
||||
<!-- prettier-ignore-start -->
|
||||
```tpl
|
||||
{{</* toc-tree */>}}
|
||||
{{</* toc-tree [sortBy="title"] */>}}
|
||||
```
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
### Attributes
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- spellchecker-disable -->
|
||||
{{< propertylist name=shortcode-toc-tree sort=name order=asc >}}
|
||||
<!-- spellchecker-enable -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## Example
|
||||
|
||||
As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the [ToC Tree](/toc-tree/) section.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue