From a6f159f672c76d331a3a37f249a74bee8f59ccad Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 4 Apr 2020 17:14:13 +0200 Subject: [PATCH] docs: update --- README.md | 4 +- .../docs/docs/getting-started/introduction.md | 1 + resources/docs/docs/remote-control.md | 44 +++++++++++++++++++ .../docs/docs/widgets/properties-reference.md | 3 -- scripts/build-widgets-reference.js | 3 -- 5 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 resources/docs/docs/getting-started/introduction.md diff --git a/README.md b/README.md index 8526b913..93a0c8c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -Open Stage Control +Open Stage Control + +Open Stage Control *Libre and modular OSC / MIDI controller* diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md new file mode 100644 index 00000000..cb3acefc --- /dev/null +++ b/resources/docs/docs/getting-started/introduction.md @@ -0,0 +1 @@ +!!! warning "Incomplete documentation" diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md index 553b09a7..d5c93062 100644 --- a/resources/docs/docs/remote-control.md +++ b/resources/docs/docs/remote-control.md @@ -3,6 +3,8 @@ All widgets that send osc messages respond to the same messages. Additionnaly, Open Stage Control responds to some general osc commands. +---- + #### `/EDIT id options` @@ -16,6 +18,9 @@ Apply a set of options to an existing widget by replacing the old ones with the !!! info "" Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea + +---- + #### `/EDIT/MERGE id options` Apply a set of options to an existing widget by merging them to the widget's options. @@ -28,14 +33,23 @@ Apply a set of options to an existing widget by merging them to the widget's opt !!! info "" Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea + +---- + #### `/EDIT/UNDO` Undo editing action + +---- + #### `/EDIT/REDO` Redo editing action + +---- + #### `/EDIT/GET target id` Sends back a widget's data (JSON stringified object), including its children, to specified target. @@ -48,6 +62,9 @@ Replies `/EDIT/GET id data` - `id`: `string` - `data`: `string` + +---- + #### `/EDIT/GET target address preArg1 preArg2 ...` Sends back a widget's data (JSON stringified object), including its children, to specified target. @@ -63,6 +80,9 @@ Replies `/EDIT/GET address preArg1 preArg2 ... data` - `data`: `string` + +---- + #### `/GET target id` Sends back a widget's value to specified target. @@ -75,6 +95,9 @@ Replies `/GET id value` - `id`: `string` - `value`: `*` + +---- + #### `/GET target address preArg1 preArg2 ...` Sends back a widget's value to specified target. @@ -89,10 +112,16 @@ Replies `/GET address preArg1 preArg2 ... value` - `preArg[1...]`: `*`, widget's `preArgs` - `value`: `*` + +---- + #### `/GET/#` Same as `/GET` but uses the widget's address instead of `/GET` to reply. + +---- + #### `/SET target id value` Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value. @@ -100,6 +129,9 @@ Set a widget's value as if it was interacted with from the interface. This is li - `id`: `string`, widget's `id` - `value`: `*`, widget's new value + +---- + #### `/SET address preArg1 preArg2 ... value` Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value. @@ -109,12 +141,18 @@ Set a widget's value as if it was interacted with from the interface. This is li - `value`: `*`, widget's new value + +---- + #### `/STATE/GET target` Sends back the app's state to specified target - `target`: `string`, `ip:port` pair + +---- + #### `/STATE/SET state` Set widgets' state @@ -122,10 +160,16 @@ Set widgets' state - `state`: `string`, json stringified object (`"widget_id": value` pairs) + +---- + #### `/STATE/STORE` Save the state of all widgets in the temporary slot. + +---- + #### `/STATE/RECALL` Reload saved state from the temporary slot. diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 04f6ed63..e3c0ce11 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -1,7 +1,4 @@ - -# Widget reference -
diff --git a/scripts/build-widgets-reference.js b/scripts/build-widgets-reference.js index 46fec69f..3e59381a 100644 --- a/scripts/build-widgets-reference.js +++ b/scripts/build-widgets-reference.js @@ -8,9 +8,6 @@ var widgets = require('../src/client/widgets'), doc.push(` - - # Widget reference -