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
15
exampleSite/data/properties/shortcode-propertylist.yaml
Normal file
15
exampleSite/data/properties/shortcode-propertylist.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
properties:
|
||||
- name: name
|
||||
type: string
|
||||
description: Name of the file from the `data/properties/` directory.
|
||||
required: true
|
||||
- name: sort
|
||||
type: string
|
||||
description: Field name to use for sorting.
|
||||
required: false
|
||||
- name: order
|
||||
type: string
|
||||
description: Sort order, only applied if `sort` is set. Supported values are `asc|desc`.
|
||||
required: false
|
||||
defaultValue: asc
|
Loading…
Add table
Add a link
Reference in a new issue