lowdefy/packages/docs/templates/actions.yaml.njk
2021-05-25 10:44:53 +02:00

68 lines
1.7 KiB
Plaintext

# Copyright 2020-2021 Lowdefy, Inc
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
_ref:
path: templates/general.yaml.njk
vars:
pageId:
_var: pageId
pageTitle:
_var: pageTitle
section: Actions
content:
- id: warning
type: Alert
visible:
_not:
_not:
_var: warning
properties:
message:
_var: warning
type: warning
- id: types
type: Markdown
style:
'.markdown-body':
fontSize: 14px
properties:
content:
_var: types
- id: description
type: MarkdownWithCode
properties:
content:
_var: description
{% if params %}
- id: params_title
type: Markdown
properties:
content: '#### Parameters'
- id: params
type: MarkdownWithCode
properties:
content:
_var: params
{% endif %}
{% if examples %}
- id: examples_title
type: Markdown
properties:
content: '#### Examples'
- id: examples
type: MarkdownWithCode
properties:
content:
_var: examples
{% endif %}