discover/web/content/fr/shortcodes/toc-tree.md

16 lines
467 B
Markdown
Raw Permalink Normal View History

2023-09-24 22:41:28 +00:00
---
title: ToC-Tree
---
The `toc-tree` shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.
<!-- prettier-ignore-start -->
```tpl
{{</* toc-tree */>}}
```
<!-- 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.