From 324176f0ac7d52a9c8019b1892d568a29a3dfc22 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 26 Dec 2025 11:22:45 -0600 Subject: [PATCH] switch timer and interval to new namespace --- astro.config.mjs | 4 ++-- src/content/docs/modules/{generator => time}/interval.md | 6 +++--- src/content/docs/modules/{generator => time}/timer.md | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/content/docs/modules/{generator => time}/interval.md (55%) rename src/content/docs/modules/{generator => time}/timer.md (59%) diff --git a/astro.config.mjs b/astro.config.mjs index 96bc080..42b9189 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -31,9 +31,9 @@ export default defineConfig({ label: 'Modules', items: [ { - label: "Generator", + label: "Time", collapsed: true, - autogenerate: { directory: 'modules/generator' } + autogenerate: { directory: 'modules/time' } }, { label: "Network", diff --git a/src/content/docs/modules/generator/interval.md b/src/content/docs/modules/time/interval.md similarity index 55% rename from src/content/docs/modules/generator/interval.md rename to src/content/docs/modules/time/interval.md index 7cc9dd0..c54219c 100644 --- a/src/content/docs/modules/generator/interval.md +++ b/src/content/docs/modules/time/interval.md @@ -3,9 +3,9 @@ title: Interval sidebar: order: 2 --- -The `gen.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer. +The `time.interval` module emits a message at a specified duration. Sending any message to this module will reset the interval timer. -- **type**: `gen.interval` +- **type**: `time.interval` - **params**: - **duration**: time in milliseconds between messsages @@ -13,7 +13,7 @@ The `gen.interval` module emits a message at a specified duration. Sending any m Emits a message every 3 seconds ``` - id: every3Secs - type: gen.interval + type: time.interval params: duration: 3000 ``` \ No newline at end of file diff --git a/src/content/docs/modules/generator/timer.md b/src/content/docs/modules/time/timer.md similarity index 59% rename from src/content/docs/modules/generator/timer.md rename to src/content/docs/modules/time/timer.md index 2c07f72..5dc67a7 100644 --- a/src/content/docs/modules/generator/timer.md +++ b/src/content/docs/modules/time/timer.md @@ -3,9 +3,9 @@ title: Timer sidebar: order: 1 --- -The `gen.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer. +The `time.timer` module emits only one message after a specified duration. Sending any message to this module will reset the timer. -- **type**: `gen.timer` +- **type**: `time.timer` - **params**: - **duration**: time in milliseconds to wait before emitting message @@ -13,7 +13,7 @@ The `gen.timer` module emits only one message after a specified duration. Sendin Emits a message 5 seconds after the module is initialized ``` - id: 5secs - type: gen.timer + type: time.timer params: duration: 5000 ``` \ No newline at end of file