diff --git a/diagrams/README.md b/diagrams/README.md index f74baa0..9f11128 100644 --- a/diagrams/README.md +++ b/diagrams/README.md @@ -6,10 +6,18 @@ To install dependencies: bun install ``` -To run: +To generate the diagram: ```bash -bun run index.ts +bun run index.ts > arch.svg ``` +or to preview the diagram text bases: + +```bash +bun run index.ts --ascii +``` + +--- + This project was created using `bun init` in bun v1.2.21. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime. diff --git a/diagrams/arch.svg b/diagrams/arch.svg index cca2409..a992981 100644 --- a/diagrams/arch.svg +++ b/diagrams/arch.svg @@ -1,4 +1,4 @@ - + diff --git a/diagrams/index.ts b/diagrams/index.ts index 1d7bbf2..87e1780 100644 --- a/diagrams/index.ts +++ b/diagrams/index.ts @@ -18,6 +18,7 @@ flowchart TD subgraph Node2 wind_speed[Anemometer] --> mc2 wind_dir[Wind Vane] --> mc2 + rain[Rain Detector] --> mc2 mic[MIPS Microphone] --> mc2 end