docs: use a propertylist to document shortcode attributes (#732)
This commit is contained in:
parent
76ef8f147c
commit
83469c437f
24 changed files with 256 additions and 94 deletions
|
@ -4,21 +4,22 @@ title: ToC
|
|||
|
||||
Simple wrapper to generate a page Table of Content from a shortcode.
|
||||
|
||||
**Attributes:**
|
||||
## Usage
|
||||
|
||||
| Name | Description | Default |
|
||||
| ------ | -------------------------- | ------------------------------------------------------------- |
|
||||
| format | format of the returned ToC | <!-- spellchecker-disable -->html<!-- spellchecker-enable --> |
|
||||
|
||||
**Usage:**
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- prettier-ignore -->
|
||||
```tpl
|
||||
{{</* toc (format=[html|raw]) */>}}
|
||||
```
|
||||
|
||||
### Attributes
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- spellchecker-disable -->
|
||||
{{< propertylist name=shortcode-toc sort=name order=asc >}}
|
||||
<!-- spellchecker-enable -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
**Example:**
|
||||
## Example
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue