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,14 +4,6 @@ title: Properties
|
|||
|
||||
The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in `data/properties/`, e.g. `data/properties/demo.yaml`.
|
||||
|
||||
## Attributes
|
||||
|
||||
| Name | Description | default |
|
||||
| ---------------- | ------------------------------------------------------ | --------- |
|
||||
| name | name of the file from the `data/properties/` directory | undefined |
|
||||
| sort (optional) | field name to use for sorting | undefined |
|
||||
| order (optional) | sort order, only applied if `sort` is set | `asc` |
|
||||
|
||||
## Usage
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
|
@ -28,6 +20,14 @@ The supported attributes can be taken from the following example:
|
|||
<!-- spellchecker-enable -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
### Attributes
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- spellchecker-disable -->
|
||||
{{< propertylist name=shortcode-buttons sort=name order=asc >}}
|
||||
<!-- spellchecker-enable -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## Example
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue