From 694c0e505af193fa39871dc3b6674386aa604be6 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 28 Mar 2026 14:48:30 -0500 Subject: [PATCH] add language hints to code blocks --- src/content/docs/modules/db/sqlite.md | 2 +- src/content/docs/modules/http/http-server.md | 2 +- src/content/docs/modules/midi/input.mdx | 2 +- src/content/docs/modules/midi/output.mdx | 2 +- src/content/docs/modules/mqtt/client.mdx | 2 +- src/content/docs/modules/nats/client.md | 2 +- src/content/docs/modules/nats/server.md | 2 +- src/content/docs/modules/net/tcp/client.md | 2 +- src/content/docs/modules/net/tcp/server.md | 2 +- src/content/docs/modules/net/udp/client.md | 2 +- src/content/docs/modules/net/udp/multicast.md | 2 +- src/content/docs/modules/net/udp/server.md | 2 +- src/content/docs/modules/psn/client.md | 3 +-- src/content/docs/modules/redis/client.mdx | 2 +- src/content/docs/modules/serial/client.mdx | 2 +- src/content/docs/modules/sip/call/server.md | 2 +- src/content/docs/modules/sip/dtmf/server.md | 2 +- src/content/docs/modules/time/interval.md | 2 +- src/content/docs/modules/time/timer.md | 2 +- src/content/docs/processors/artnet/decode.md | 2 +- src/content/docs/processors/artnet/encode.md | 2 +- src/content/docs/processors/db/query.md | 2 +- src/content/docs/processors/debug/log.md | 2 +- src/content/docs/processors/filter/change.md | 2 +- src/content/docs/processors/filter/expr.md | 2 +- src/content/docs/processors/filter/regex.md | 2 +- src/content/docs/processors/float/parse.md | 2 +- src/content/docs/processors/float/random.md | 2 +- src/content/docs/processors/free-d/create.md | 2 +- src/content/docs/processors/free-d/decode.md | 2 +- src/content/docs/processors/free-d/encode.md | 2 +- src/content/docs/processors/http/request/do.md | 2 +- src/content/docs/processors/http/response/create.md | 2 +- src/content/docs/processors/int/parse.md | 2 +- src/content/docs/processors/int/random.md | 2 +- src/content/docs/processors/int/scale.md | 2 +- src/content/docs/processors/json/decode.md | 2 +- src/content/docs/processors/json/encode.md | 2 +- src/content/docs/processors/kv/get.md | 2 +- src/content/docs/processors/kv/set.md | 2 +- src/content/docs/processors/midi/message/decode.md | 2 +- src/content/docs/processors/midi/message/encode.md | 2 +- src/content/docs/processors/midi/message/unpack.md | 2 +- src/content/docs/processors/mqtt/message/create.md | 2 +- src/content/docs/processors/nats/message/create.md | 2 +- src/content/docs/processors/osc/message/create.md | 2 +- src/content/docs/processors/osc/message/decode.md | 2 +- src/content/docs/processors/osc/message/encode.md | 2 +- src/content/docs/processors/router/output.md | 3 ++- src/content/docs/processors/script/expr.md | 3 ++- src/content/docs/processors/script/js.mdx | 3 ++- src/content/docs/processors/script/wasm.md | 2 +- src/content/docs/processors/sip/response/audio/create.md | 2 +- src/content/docs/processors/sip/response/dtmf/create.md | 2 +- src/content/docs/processors/string/create.md | 2 +- src/content/docs/processors/string/decode.md | 2 +- src/content/docs/processors/string/encode.md | 2 +- src/content/docs/processors/string/split.md | 3 ++- src/content/docs/processors/time/sleep.md | 2 +- 59 files changed, 63 insertions(+), 60 deletions(-) diff --git a/src/content/docs/modules/db/sqlite.md b/src/content/docs/modules/db/sqlite.md index 4385bc3..c3da0ba 100644 --- a/src/content/docs/modules/db/sqlite.md +++ b/src/content/docs/modules/db/sqlite.md @@ -13,7 +13,7 @@ The `db.sqlite` module can open/create SQLite databases ### Example snippet Opens an in-memory SQLite database -``` +```yaml - id: db type: db.sqlite params: diff --git a/src/content/docs/modules/http/http-server.md b/src/content/docs/modules/http/http-server.md index a12d8ad..f357ec9 100644 --- a/src/content/docs/modules/http/http-server.md +++ b/src/content/docs/modules/http/http-server.md @@ -12,7 +12,7 @@ The `http.server` module emits a message for every HTTP request that is made to ### Example Start an HTTP server listening on port 3000 -``` +```yaml - id: httpServer type: http.server params: diff --git a/src/content/docs/modules/midi/input.mdx b/src/content/docs/modules/midi/input.mdx index d53a537..6683d4a 100644 --- a/src/content/docs/modules/midi/input.mdx +++ b/src/content/docs/modules/midi/input.mdx @@ -19,7 +19,7 @@ The `midi.input` module connects to a midi device (or virtual device) and emits ### Example Open a MIDI connection to `Logic Pro Virtual Out`. -``` +```yaml - id: midiInput type: midi.input params: diff --git a/src/content/docs/modules/midi/output.mdx b/src/content/docs/modules/midi/output.mdx index 3f6e73c..a44fc55 100644 --- a/src/content/docs/modules/midi/output.mdx +++ b/src/content/docs/modules/midi/output.mdx @@ -18,7 +18,7 @@ The `midi.output` module connects to a midi device (or virtual device) and allow ### Example Open a MIDI connection to `Logic Pro Virtual In`. -``` +```yaml - id: midiOutput type: midi.output params: diff --git a/src/content/docs/modules/mqtt/client.mdx b/src/content/docs/modules/mqtt/client.mdx index 2c1a8f2..2f434fa 100644 --- a/src/content/docs/modules/mqtt/client.mdx +++ b/src/content/docs/modules/mqtt/client.mdx @@ -15,7 +15,7 @@ The `mqtt.client` module connects to a MQTT broker and emits a message messages ### Example Open a mqtt connection to `test.mosquitto.org` subscribing to the `showbridge` topic. -``` +```yaml - id: mqttClient type: mqtt.client params: diff --git a/src/content/docs/modules/nats/client.md b/src/content/docs/modules/nats/client.md index dce8152..8e7ee23 100644 --- a/src/content/docs/modules/nats/client.md +++ b/src/content/docs/modules/nats/client.md @@ -12,7 +12,7 @@ This module connects to a [NATS](https://nats.io/) server and subscribes to a su ### Example Connect to a local NATS server and subscribe to the `events` subject -``` +```yaml - id: natsClient type: nats.client params: diff --git a/src/content/docs/modules/nats/server.md b/src/content/docs/modules/nats/server.md index c101204..e17e50c 100644 --- a/src/content/docs/modules/nats/server.md +++ b/src/content/docs/modules/nats/server.md @@ -12,7 +12,7 @@ This module starts a NATS server that listens for incoming connections. ### Example Start a local NATS server listening on port 5555 -``` +```yaml - id: httpServer type: http.server params: diff --git a/src/content/docs/modules/net/tcp/client.md b/src/content/docs/modules/net/tcp/client.md index 85e327e..3b37a0a 100644 --- a/src/content/docs/modules/net/tcp/client.md +++ b/src/content/docs/modules/net/tcp/client.md @@ -20,7 +20,7 @@ The `net.tcp.client` module connects to TCP server and emits messages based on t ### Example Open a TCP connection to `127.0.0.1` port 8888, any incoming data will be split on line-feed (`\n`) -``` +```yaml - id: tcpClient type: net.tcp.client params: diff --git a/src/content/docs/modules/net/tcp/server.md b/src/content/docs/modules/net/tcp/server.md index b8bcdf8..ee0a6e8 100644 --- a/src/content/docs/modules/net/tcp/server.md +++ b/src/content/docs/modules/net/tcp/server.md @@ -20,7 +20,7 @@ The `net.tcp.server` module emits a message messages based on the data it receiv ### Example Start a TCP server listening on port 8888, incoming data will be split on line-feed (`\n`) -``` +```yaml - id: tcpServer type: net.tcp.server params: diff --git a/src/content/docs/modules/net/udp/client.md b/src/content/docs/modules/net/udp/client.md index 50addab..2b27f1f 100644 --- a/src/content/docs/modules/net/udp/client.md +++ b/src/content/docs/modules/net/udp/client.md @@ -13,7 +13,7 @@ The `net.udp.client` module sends messages to a the configured `host` and `port` ### Example setup up a UDP client that will send UDP packets to `127.0.0.1` on port 8888 -``` +```yaml - id: udpClient type: net.udp.client params: diff --git a/src/content/docs/modules/net/udp/multicast.md b/src/content/docs/modules/net/udp/multicast.md index 2e521c4..1bf1481 100644 --- a/src/content/docs/modules/net/udp/multicast.md +++ b/src/content/docs/modules/net/udp/multicast.md @@ -12,7 +12,7 @@ sidebar: ### Example Listen to the mDNS multicast address on port 5353 -``` +```yaml - id: mdnsListener type: net.udp.multicast params: diff --git a/src/content/docs/modules/net/udp/server.md b/src/content/docs/modules/net/udp/server.md index a059d88..8283155 100644 --- a/src/content/docs/modules/net/udp/server.md +++ b/src/content/docs/modules/net/udp/server.md @@ -14,7 +14,7 @@ The `net.udp.server` module emits a message for every incoming UDP datagram. ### Example Start a UDP server listening on port 8888 and only on `127.0.0.1` -``` +```yaml - id: udpServer type: net.udp.server params: diff --git a/src/content/docs/modules/psn/client.md b/src/content/docs/modules/psn/client.md index a5cc3d5..dd0f03c 100644 --- a/src/content/docs/modules/psn/client.md +++ b/src/content/docs/modules/psn/client.md @@ -10,8 +10,7 @@ sidebar: This module listens on the [PosiStageNet](http://posistage.net/) multicast address and emits tracker states anytime a new PSN message is received. ### Example -List -``` +```yaml - id: psnClient type: psn.client ``` \ No newline at end of file diff --git a/src/content/docs/modules/redis/client.mdx b/src/content/docs/modules/redis/client.mdx index b110eb5..df3763e 100644 --- a/src/content/docs/modules/redis/client.mdx +++ b/src/content/docs/modules/redis/client.mdx @@ -14,7 +14,7 @@ The `redis.client` module connects to a Redis server. This module does not produ ### Example Connect to a Redis server running on `localhost` at port `6379`. -``` +```yaml - id: redisClient type: redis.client params: diff --git a/src/content/docs/modules/serial/client.mdx b/src/content/docs/modules/serial/client.mdx index 8a4a4bd..71c8abe 100644 --- a/src/content/docs/modules/serial/client.mdx +++ b/src/content/docs/modules/serial/client.mdx @@ -26,7 +26,7 @@ The `serial.client` module connects to a serial device and emits a message messa ### Example Open a serial connection to `/dev/ttyS0` with a buad rate of `115200`, any incoming data will be split on line-feed (`\n`) -``` +```yaml - id: serialClient type: serial.client params: diff --git a/src/content/docs/modules/sip/call/server.md b/src/content/docs/modules/sip/call/server.md index 942f852..6aafd34 100644 --- a/src/content/docs/modules/sip/call/server.md +++ b/src/content/docs/modules/sip/call/server.md @@ -14,7 +14,7 @@ This module starts a [SIP](https://en.wikipedia.org/wiki/Session_Initiation_Prot ### Example Start a UDP SIP server listening on port 5060 -``` +```yaml - id: sipCallServer type: sip.call.server params: diff --git a/src/content/docs/modules/sip/dtmf/server.md b/src/content/docs/modules/sip/dtmf/server.md index 289116a..03870af 100644 --- a/src/content/docs/modules/sip/dtmf/server.md +++ b/src/content/docs/modules/sip/dtmf/server.md @@ -16,7 +16,7 @@ This module starts a [SIP](https://en.wikipedia.org/wiki/Session_Initiation_Prot ### Example Start a UDP SIP server listening on port 5060 that will emit events whenever the user presses the `#` key on their phone during a call -``` +```yaml - id: sipDTMFServer type: sip.dtmf.server params: diff --git a/src/content/docs/modules/time/interval.md b/src/content/docs/modules/time/interval.md index c54219c..2daec4a 100644 --- a/src/content/docs/modules/time/interval.md +++ b/src/content/docs/modules/time/interval.md @@ -11,7 +11,7 @@ The `time.interval` module emits a message at a specified duration. Sending any ### Example snippet Emits a message every 3 seconds -``` +```yaml - id: every3Secs type: time.interval params: diff --git a/src/content/docs/modules/time/timer.md b/src/content/docs/modules/time/timer.md index 5dc67a7..9987406 100644 --- a/src/content/docs/modules/time/timer.md +++ b/src/content/docs/modules/time/timer.md @@ -11,7 +11,7 @@ The `time.timer` module emits only one message after a specified duration. Sendi ### Example snippet Emits a message 5 seconds after the module is initialized -``` +```yaml - id: 5secs type: time.timer params: diff --git a/src/content/docs/processors/artnet/decode.md b/src/content/docs/processors/artnet/decode.md index f3bc737..c4be5d9 100644 --- a/src/content/docs/processors/artnet/decode.md +++ b/src/content/docs/processors/artnet/decode.md @@ -10,6 +10,6 @@ sidebar: This processor will decode incoming bytes into an ArtNet packet. This processor will return an error if the message being processed is not an array of bytes. ### Example -``` +```yaml - type: artnet.packet.decode ``` \ No newline at end of file diff --git a/src/content/docs/processors/artnet/encode.md b/src/content/docs/processors/artnet/encode.md index 29350ff..ee985aa 100644 --- a/src/content/docs/processors/artnet/encode.md +++ b/src/content/docs/processors/artnet/encode.md @@ -9,6 +9,6 @@ sidebar: This processor will encode an ArtNet packet into an array of bytes. This processor will return an error if the message being processed is not an ArtNet packet. ### Example -``` +```yaml - type: artnet.packet.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/db/query.md b/src/content/docs/processors/db/query.md index 0e9e08c..f646ee3 100644 --- a/src/content/docs/processors/db/query.md +++ b/src/content/docs/processors/db/query.md @@ -12,7 +12,7 @@ The `db.query` processor will issue a query to the specified module and return t - **query**: the query to execute. ### Example Issue a `SELECT` statement to a module with id `sqlite`. -``` +```yaml - type: db.query params: module: sqlite diff --git a/src/content/docs/processors/debug/log.md b/src/content/docs/processors/debug/log.md index bf43ce9..096aa92 100644 --- a/src/content/docs/processors/debug/log.md +++ b/src/content/docs/processors/debug/log.md @@ -9,6 +9,6 @@ sidebar: This processor will log information about the message being processed to the console. This processor does not modify the message in any way and will pass the message through to the next processor in the chain. ### Example -``` +```yaml - type: debug.log ``` \ No newline at end of file diff --git a/src/content/docs/processors/filter/change.md b/src/content/docs/processors/filter/change.md index 6ff0268..5d54289 100644 --- a/src/content/docs/processors/filter/change.md +++ b/src/content/docs/processors/filter/change.md @@ -11,6 +11,6 @@ This processor will only pass messages through if the value of the message has c ### Example -``` +```yaml - type: filter.change ``` \ No newline at end of file diff --git a/src/content/docs/processors/filter/expr.md b/src/content/docs/processors/filter/expr.md index 727a64e..79410cf 100644 --- a/src/content/docs/processors/filter/expr.md +++ b/src/content/docs/processors/filter/expr.md @@ -12,7 +12,7 @@ The `filter.expr` processor evaluates an [Expr expression](https://expr-lang.org ### Example Match a payload great than or equal to 0 -``` +```yaml - type: filter.expr params: pattern: "Payload >= 0" diff --git a/src/content/docs/processors/filter/regex.md b/src/content/docs/processors/filter/regex.md index 4b2ce56..6e6dbd6 100644 --- a/src/content/docs/processors/filter/regex.md +++ b/src/content/docs/processors/filter/regex.md @@ -12,7 +12,7 @@ The `filter.regex` processor matches incoming string payload against a regular e ### Example Match strings starting with `hello` -``` +```yaml - type: filter.regex params: pattern: "^hello.*" diff --git a/src/content/docs/processors/float/parse.md b/src/content/docs/processors/float/parse.md index cf3f553..f734f72 100644 --- a/src/content/docs/processors/float/parse.md +++ b/src/content/docs/processors/float/parse.md @@ -12,7 +12,7 @@ The `float.parse` processor takes a string and parses it as a float with the spe ### Example This would parse the string payload as a 32 bit float and set the payload to that value. -``` +```yaml - type: float.parse params: bitSize: 32 diff --git a/src/content/docs/processors/float/random.md b/src/content/docs/processors/float/random.md index 1e60758..f5354d6 100644 --- a/src/content/docs/processors/float/random.md +++ b/src/content/docs/processors/float/random.md @@ -14,7 +14,7 @@ The `float.random` processor will set the payload to a random float between the ### Example This would generate a random 64-bit float between 1.1 and 1.5 and set the payload to that value. -``` +```yaml - type: float.random params: bitSize: 64 diff --git a/src/content/docs/processors/free-d/create.md b/src/content/docs/processors/free-d/create.md index b673c51..92713a8 100644 --- a/src/content/docs/processors/free-d/create.md +++ b/src/content/docs/processors/free-d/create.md @@ -21,7 +21,7 @@ This processor will create a new FreeD message with the specified parameters. ### Example -``` +```yaml - type: free.d.create params: id: "1" diff --git a/src/content/docs/processors/free-d/decode.md b/src/content/docs/processors/free-d/decode.md index 59242d3..8f92281 100644 --- a/src/content/docs/processors/free-d/decode.md +++ b/src/content/docs/processors/free-d/decode.md @@ -10,6 +10,6 @@ This processor will decode incoming bytes into a FreeD message. This processor w - **type**: `free.d.decode` ### Example -``` +```yaml - type: free.d.decode ``` \ No newline at end of file diff --git a/src/content/docs/processors/free-d/encode.md b/src/content/docs/processors/free-d/encode.md index 229eb3a..df57d19 100644 --- a/src/content/docs/processors/free-d/encode.md +++ b/src/content/docs/processors/free-d/encode.md @@ -10,6 +10,6 @@ This processor will encode a FreeD message into an array of bytes. This processo - **type**: `free.d.encode` ### Example -``` +```yaml - type: free.d.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/http/request/do.md b/src/content/docs/processors/http/request/do.md index ebacbd5..9e8d22c 100644 --- a/src/content/docs/processors/http/request/do.md +++ b/src/content/docs/processors/http/request/do.md @@ -15,7 +15,7 @@ This process will make an HTTP request to the specified URL using the specified ### Example Make a GET request to `https://example.com` -``` +```yaml - type: http.request.do params: method: GET diff --git a/src/content/docs/processors/http/response/create.md b/src/content/docs/processors/http/response/create.md index 6385fac..3101150 100644 --- a/src/content/docs/processors/http/response/create.md +++ b/src/content/docs/processors/http/response/create.md @@ -14,7 +14,7 @@ This processor will create a new HTTP response with the specified status code an ### Example This would create an HTTP response with a status code of `200` and a body of `OK` -``` +```yaml - type: http.response.create params: status: 200 diff --git a/src/content/docs/processors/int/parse.md b/src/content/docs/processors/int/parse.md index 171a59a..dfbae73 100644 --- a/src/content/docs/processors/int/parse.md +++ b/src/content/docs/processors/int/parse.md @@ -13,7 +13,7 @@ The `int.parse` processor takes a string and parses it as an integer with the sp ### Example This would parse the string payload as a 32 bit, base 10 integer and set the payload to that value. -``` +```yaml - type: int.parse params: bitSize: 32 diff --git a/src/content/docs/processors/int/random.md b/src/content/docs/processors/int/random.md index e817ae8..8b115c8 100644 --- a/src/content/docs/processors/int/random.md +++ b/src/content/docs/processors/int/random.md @@ -12,7 +12,7 @@ The `int.random` processor will set the payload to a random integer between the ### Example This would generate a random integer between -127 and 127 and set the payload to that value. -``` +```yaml - type: int.random params: min: -127 diff --git a/src/content/docs/processors/int/scale.md b/src/content/docs/processors/int/scale.md index 7661121..f1bf298 100644 --- a/src/content/docs/processors/int/scale.md +++ b/src/content/docs/processors/int/scale.md @@ -16,7 +16,7 @@ This processor will scale an integer value from one range to another. This proce ### Example Scale an integer value from the range 0-255 to the range 0-100 -``` +```yaml - type: int.scale params: inMin: 0 diff --git a/src/content/docs/processors/json/decode.md b/src/content/docs/processors/json/decode.md index 24e0d9d..0ca8a8c 100644 --- a/src/content/docs/processors/json/decode.md +++ b/src/content/docs/processors/json/decode.md @@ -8,6 +8,6 @@ Convert an incoming byte array or raw string into a JSON object. This processor - **type**: `json.decode` ### Example -``` +```yaml - type: json.decode ``` \ No newline at end of file diff --git a/src/content/docs/processors/json/encode.md b/src/content/docs/processors/json/encode.md index 5d2e0b4..f353124 100644 --- a/src/content/docs/processors/json/encode.md +++ b/src/content/docs/processors/json/encode.md @@ -11,6 +11,6 @@ This processor will encode an incoming object into a JSON byte array. This proce ### Example -``` +```yaml - type: json.encode ``` diff --git a/src/content/docs/processors/kv/get.md b/src/content/docs/processors/kv/get.md index 52882ea..2e25317 100644 --- a/src/content/docs/processors/kv/get.md +++ b/src/content/docs/processors/kv/get.md @@ -13,7 +13,7 @@ The `kv.get` processor gets the value associated with a key from a compatible mo ### Example This will attempt to get the value for the `counter` key from the module with an id of `redis` -``` +```yaml - type: kv.get params: module: redis diff --git a/src/content/docs/processors/kv/set.md b/src/content/docs/processors/kv/set.md index 03c8d54..0a365d6 100644 --- a/src/content/docs/processors/kv/set.md +++ b/src/content/docs/processors/kv/set.md @@ -14,7 +14,7 @@ The `kv.set` processor sets the value associated with a key from a compatible mo ### Example This will attempt to set the key `hello` to `world` using the module with an id of `redis` -``` +```yaml - type: kv.set params: module: redis diff --git a/src/content/docs/processors/midi/message/decode.md b/src/content/docs/processors/midi/message/decode.md index 291f865..075b0c1 100644 --- a/src/content/docs/processors/midi/message/decode.md +++ b/src/content/docs/processors/midi/message/decode.md @@ -9,6 +9,6 @@ This processor will decode incoming bytes into a MIDI message. This processor wi - **type**: `midi.message.decode` ### Example -``` +```yaml - type: midi.message.decode ``` diff --git a/src/content/docs/processors/midi/message/encode.md b/src/content/docs/processors/midi/message/encode.md index 190613b..70a35ee 100644 --- a/src/content/docs/processors/midi/message/encode.md +++ b/src/content/docs/processors/midi/message/encode.md @@ -9,6 +9,6 @@ This processor will encode a MIDI message into an array of bytes. This processor - **type**: `midi.message.encode` ### Example -``` +```yaml - type: midi.message.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/midi/message/unpack.md b/src/content/docs/processors/midi/message/unpack.md index b3f4644..6d462d0 100644 --- a/src/content/docs/processors/midi/message/unpack.md +++ b/src/content/docs/processors/midi/message/unpack.md @@ -9,6 +9,6 @@ This processor will unpack a MIDI message into its individual components. This p - **type**: `midi.message.unpack` ### Example -``` +```yaml - type: midi.message.unpack ``` \ No newline at end of file diff --git a/src/content/docs/processors/mqtt/message/create.md b/src/content/docs/processors/mqtt/message/create.md index 5fdff97..9e2ec57 100644 --- a/src/content/docs/processors/mqtt/message/create.md +++ b/src/content/docs/processors/mqtt/message/create.md @@ -13,7 +13,7 @@ This processor will create an MQTT message from the provided parameters. This pr - **payload**: the payload of the message. This can be a string or a byte array. ### Example -``` +```yaml - type: mqtt.message.create params: topic: "test/topic" diff --git a/src/content/docs/processors/nats/message/create.md b/src/content/docs/processors/nats/message/create.md index 05914d4..cb4b218 100644 --- a/src/content/docs/processors/nats/message/create.md +++ b/src/content/docs/processors/nats/message/create.md @@ -12,7 +12,7 @@ This processor will create a NATS message from the provided parameters. This pro - **payload**: the payload of the message. ### Example -``` +```yaml - type: nats.message.create params: subject: "events" diff --git a/src/content/docs/processors/osc/message/create.md b/src/content/docs/processors/osc/message/create.md index 9b847cb..0da2525 100644 --- a/src/content/docs/processors/osc/message/create.md +++ b/src/content/docs/processors/osc/message/create.md @@ -15,7 +15,7 @@ This processor will create an OSC message from the provided parameters. This pro ### Example Create an OSC message with the address `/test/message` and two integer arguments from the payload of the message being processed. -``` +```yaml - type: osc.message.create params: address: "/test/message" diff --git a/src/content/docs/processors/osc/message/decode.md b/src/content/docs/processors/osc/message/decode.md index 4f91975..c214ddd 100644 --- a/src/content/docs/processors/osc/message/decode.md +++ b/src/content/docs/processors/osc/message/decode.md @@ -9,6 +9,6 @@ The `osc.message.decode` processor takes a array of bytes and turn it into OSC m - **type**: `osc.message.decode` ### Example -``` +```yaml - type: osc.message.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/osc/message/encode.md b/src/content/docs/processors/osc/message/encode.md index 9157cc8..6fcd7b6 100644 --- a/src/content/docs/processors/osc/message/encode.md +++ b/src/content/docs/processors/osc/message/encode.md @@ -9,6 +9,6 @@ The `osc.message.encode` processor takes an OSC message and turns it into an arr - **type**: `osc.message.encode` ### Example -``` +```yaml - type: osc.message.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/router/output.md b/src/content/docs/processors/router/output.md index 4c33f29..0880853 100644 --- a/src/content/docs/processors/router/output.md +++ b/src/content/docs/processors/router/output.md @@ -13,7 +13,8 @@ The `router.output` processor takes any payload and outputs to the specified mod ### Example Output to the `osc-out` module. -``` + +```yaml - type: router.output params: module: osc-out diff --git a/src/content/docs/processors/script/expr.md b/src/content/docs/processors/script/expr.md index 78c983b..f7e98be 100644 --- a/src/content/docs/processors/script/expr.md +++ b/src/content/docs/processors/script/expr.md @@ -11,7 +11,8 @@ The processor will execute the provided Expr expression and return the result as ### Example This example will add 1 to the wrapped payload. -``` + +```yaml - type: script.expr params: expression: "Payload + 1" diff --git a/src/content/docs/processors/script/js.mdx b/src/content/docs/processors/script/js.mdx index a8c8fa3..5e28bfa 100644 --- a/src/content/docs/processors/script/js.mdx +++ b/src/content/docs/processors/script/js.mdx @@ -16,7 +16,8 @@ This run your JavaScript program in a [sandboxed environment](https://gitlab.com - **program**: The JavaScript program to run. The payload is available as a global variable called `payload`. ### Example Replace all occurrences of `|` with `,` in the payload -``` + +```yaml - type: script.js params: program: | diff --git a/src/content/docs/processors/script/wasm.md b/src/content/docs/processors/script/wasm.md index 49f47c0..fed8649 100644 --- a/src/content/docs/processors/script/wasm.md +++ b/src/content/docs/processors/script/wasm.md @@ -14,7 +14,7 @@ This processor will load and execute a WASM plugin using the [Extism](https://ex ### Example This example will load the plugin at `./test.wasm` and execute the `test` function -``` +```yaml - type: script.wasm params: path: "./test.wasm" diff --git a/src/content/docs/processors/sip/response/audio/create.md b/src/content/docs/processors/sip/response/audio/create.md index bdd5af4..e68795f 100644 --- a/src/content/docs/processors/sip/response/audio/create.md +++ b/src/content/docs/processors/sip/response/audio/create.md @@ -14,7 +14,7 @@ This processor will create a SIP response message with an audio file as the payl ### Example This example will create a SIP response that will wait 1 second then play `response.wav` then wait another second before completing the response. -``` +```yaml - type: sip.response.audio.create params: preWait: 1000 diff --git a/src/content/docs/processors/sip/response/dtmf/create.md b/src/content/docs/processors/sip/response/dtmf/create.md index c344872..5a68726 100644 --- a/src/content/docs/processors/sip/response/dtmf/create.md +++ b/src/content/docs/processors/sip/response/dtmf/create.md @@ -14,7 +14,7 @@ This processor will create a SIP DTMF response from the provided parameters. If ### Example This example will create a SIP response that will wait 1 second then play the DTMF digits "1234" then wait another second before completing the response. -``` +```yaml - type: sip.response.dtmf.create params: preWait: 1000 diff --git a/src/content/docs/processors/string/create.md b/src/content/docs/processors/string/create.md index f79a150..ecc9cc0 100644 --- a/src/content/docs/processors/string/create.md +++ b/src/content/docs/processors/string/create.md @@ -12,7 +12,7 @@ The `string.create` processor creates a string based on the provided template. T ### Example This would create a string using the `Address` property of the incoming message like and OSC message -``` +```yaml - type: string.create params: template: "{{.Address}} diff --git a/src/content/docs/processors/string/decode.md b/src/content/docs/processors/string/decode.md index c428dab..63823e5 100644 --- a/src/content/docs/processors/string/decode.md +++ b/src/content/docs/processors/string/decode.md @@ -9,6 +9,6 @@ The `string.decode` processor takes a array of bytes and turn it into string. Th - **type**: `string.decode` ### Example -``` +```yaml - type: string.decode ``` \ No newline at end of file diff --git a/src/content/docs/processors/string/encode.md b/src/content/docs/processors/string/encode.md index d76053e..fe4c36e 100644 --- a/src/content/docs/processors/string/encode.md +++ b/src/content/docs/processors/string/encode.md @@ -9,6 +9,6 @@ The `string.encode` processor takes a string and turns it into an array of bytes - **type**: `string.encode` ### Example -``` +```yaml - type: string.encode ``` \ No newline at end of file diff --git a/src/content/docs/processors/string/split.md b/src/content/docs/processors/string/split.md index 67ef818..1928881 100644 --- a/src/content/docs/processors/string/split.md +++ b/src/content/docs/processors/string/split.md @@ -12,7 +12,8 @@ The `string.split` processor takes a string and turns it into an array of string ### Example Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]` -``` + +```yaml - type: string.split params: separator: "," diff --git a/src/content/docs/processors/time/sleep.md b/src/content/docs/processors/time/sleep.md index 9df7c47..4f1845e 100644 --- a/src/content/docs/processors/time/sleep.md +++ b/src/content/docs/processors/time/sleep.md @@ -12,7 +12,7 @@ The `time.sleep` processor will sleep for the specified `duration` in millisecon ### Example This would sleep for 5 seconds before passing the message to the next processor. -``` +```yaml - type: time.sleep params: duration: 5000