From 47e7ed54b44fd52db8a8fa0f1a9a5f0ef05d63e0 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 30 Oct 2019 12:01:36 +0100 Subject: [PATCH] docs: update --- resources/docs/docs/widgets-reference.md | 2 +- resources/mkdocs.yml | 12 ++++++++---- resources/src/scss/styles.scss | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index 254ffff8..731bfe3d 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -567,7 +567,7 @@ Evaluates a script each time it receives a value. | --- | --- | --- | --- | |

script#

|||| |

condition#

| `string` | 1 | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:
- `value`: the value received by the widget | -|

script#

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: value received by the widget
- `id`: id of the widget that triggered the script
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value
- `get(id)`: function for getting a widget's value (dynamic equivalent of @{id})
- `getProp(id, property)`: function for getting a widget's property value ((dynamic equivalent of @{id.property})



* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution | +|

script#

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: value received by the widget
- `id`: id of the widget that triggered the script
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value
- `get(id)`: function for getting a widget's value (dynamic equivalent of @{id})
- `getProp(id, property)`: function for getting a widget's property value ((dynamic equivalent of @{id.property})
- `httpGet(url, callback)`: function for making http requests (asynchronous "GET" request and local urls only)



* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution | ### gyroscope diff --git a/resources/mkdocs.yml b/resources/mkdocs.yml index 2a776b8f..04c43496 100644 --- a/resources/mkdocs.yml +++ b/resources/mkdocs.yml @@ -46,13 +46,16 @@ nav: markdown_extensions: - markdown.extensions.admonition - - markdown.extensions.codehilite(guess_lang=false) + - codehilite: + guess_lang: False - markdown.extensions.def_list - markdown.extensions.footnotes - markdown.extensions.meta - - markdown.extensions.toc(permalink=#) + - markdown.extensions.toc: + permalink: "#" - pymdownx.arithmatex - - pymdownx.betterem(smart_enable=all) + - pymdownx.betterem: + smart_enable: all - pymdownx.caret - pymdownx.critic - pymdownx.inlinehilite @@ -60,7 +63,8 @@ markdown_extensions: - pymdownx.mark - pymdownx.smartsymbols - pymdownx.superfences - - pymdownx.tasklist(custom_checkbox=true) + - pymdownx.tasklist: + custom_checkbox: true - pymdownx.tilde plugins: diff --git a/resources/src/scss/styles.scss b/resources/src/scss/styles.scss index b77b55cb..1077d36c 100644 --- a/resources/src/scss/styles.scss +++ b/resources/src/scss/styles.scss @@ -211,7 +211,7 @@ code, tt { code { background-color: #fafafa; - padding: 2px; + padding: 2px!important; } h1,h2,h3,h4,h5 {