diff --git a/astro.config.mjs b/astro.config.mjs index 64bf988..a4e10d9 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -53,7 +53,13 @@ export default defineConfig({ { label: "OSC", collapsed: true, - autogenerate: { directory: 'processors/osc' } + items: [ + { + label: "Message", + collapsed: true, + autogenerate: { directory: 'processors/osc/message' } + } + ] }, { label: "String", diff --git a/src/content/docs/processors/osc/decode.md b/src/content/docs/processors/osc/decode.md deleted file mode 100644 index ba0e29c..0000000 --- a/src/content/docs/processors/osc/decode.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Decode -sidebar: - order: 1 ---- -The osc decode module takes a array of bytes and turn it into OSC message if it can be. This processor will return an error if the bytes cannot be parsed as an OSC message - -- **type**: `osc.message.decode` - -### Example -``` -- type: osc.message.encode -``` \ No newline at end of file diff --git a/src/content/docs/processors/osc/encode.md b/src/content/docs/processors/osc/encode.md deleted file mode 100644 index 9be7c79..0000000 --- a/src/content/docs/processors/osc/encode.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Encode -sidebar: - order: 2 ---- -The osc encode module takes an OSC message and turns it into an array of bytes. This processor will return an error if the OSC message cannot be turned into bytes. - -- **type**: `osc.message.encode` - -### Example -``` -- type: osc.message.encode -``` \ No newline at end of file diff --git a/src/content/docs/processors/osc/message/decode.md b/src/content/docs/processors/osc/message/decode.md new file mode 100644 index 0000000..4e04563 --- /dev/null +++ b/src/content/docs/processors/osc/message/decode.md @@ -0,0 +1,13 @@ +--- +title: Decode +sidebar: + order: 1 +--- +The `osc.message.decode` module takes a array of bytes and turn it into OSC message if it can be. This processor will return an error if the bytes cannot be parsed as an OSC message + +- **type**: `osc.message.decode` + +### Example +``` +- 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 new file mode 100644 index 0000000..da99fdc --- /dev/null +++ b/src/content/docs/processors/osc/message/encode.md @@ -0,0 +1,13 @@ +--- +title: Encode +sidebar: + order: 2 +--- +The `osc.message.encode` module takes an OSC message and turns it into an array of bytes. This processor will return an error if the OSC message cannot be turned into bytes. + +- **type**: `osc.message.encode` + +### Example +``` +- type: osc.message.encode +``` \ No newline at end of file