add language hints to code blocks

This commit is contained in:
Joel Wetzell
2026-03-28 14:48:30 -05:00
parent 4d76d36d37
commit 694c0e505a
59 changed files with 63 additions and 60 deletions
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -11,6 +11,6 @@ This processor will only pass messages through if the value of the message has c
### Example
```
```yaml
- type: filter.change
```
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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.*"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -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
```
@@ -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
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -11,6 +11,6 @@ This processor will encode an incoming object into a JSON byte array. This proce
### Example
```
```yaml
- type: json.encode
```
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
@@ -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
```
@@ -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
```
@@ -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
```
@@ -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"
@@ -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"
@@ -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"
@@ -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
```
@@ -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
```
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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"
+2 -1
View File
@@ -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: |
+1 -1
View File
@@ -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"
@@ -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
@@ -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
+1 -1
View File
@@ -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}}
+1 -1
View File
@@ -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
```
+1 -1
View File
@@ -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
```
+2 -1
View File
@@ -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: ","
+1 -1
View File
@@ -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