diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..0d70b43 --- /dev/null +++ b/Justfile @@ -0,0 +1,9 @@ +export DOCKER_HOST := "unix://" + env_var("XDG_RUNTIME_DIR") + "/podman/podman.sock" + +# List all available commands +@help: + just --list + +# Generate mermaid diagrams +@diagrams: + podman run --userns keep-id --user ${UID} --rm -v {{ justfile_directory() }}/src:/app:z -w /app --entrypoint sh minlag/mermaid-cli:11.2.1 -c 'find ./data/mermaid -name "*.mmd" -exec sh -c '"'"'/home/mermaidcli/node_modules/.bin/mmdc -p /puppeteer-config.json -b transparent -i "$1" -o ./assets/mermaid/"$(basename "$1" .mmd).svg"'"'"' _ {} \;' diff --git a/package.json b/package.json index f1ecdc8..6f3d995 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "prepare": "husky", "dev": "astro dev", - "build": "pnpm run mermaid && astro build", + "build": "astro build", "check": "astro check && tsc --noEmit", "sync": "astro sync", "preview": "astro preview", @@ -38,7 +38,6 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@mermaid-js/mermaid-cli": "^10.9.1", "@tailwindcss/typography": "^0.5.15", "@types/react": "^18.3.4", "@types/react-dom": "^18.3.0", diff --git a/src/assets/mermaid/hibuddy.svg b/src/assets/mermaid/hibuddy.svg index e213230..e5ab2de 100644 --- a/src/assets/mermaid/hibuddy.svg +++ b/src/assets/mermaid/hibuddy.svg @@ -1 +1 @@ -
Api Layer
Business Logic Layer
Core Layer
User Interaction
Provides
Provides
Provides
Provides
Uses
Uses
Uses
Uses
Uses
Uses
Uses
Uses
API 1
API 2
API 3
API 4
API 5
API 6
API 7
API 8
Use Case 1
Use Case 2
Use Case 3
Use Case 4
Agent
Speech-to-Text
Text-to-Speech
\ No newline at end of file +

Api Layer

Business Logic Layer

Core Layer

User Interaction

Provides

Provides

Provides

Provides

Uses

Uses

Uses

Uses

Uses

Uses

Uses

Uses

Speech-to-Text

Text-to-Speech

Agent

Use Case 1

Use Case 2

Use Case 3

Use Case 4

API 1

API 2

API 3

API 4

API 5

API 6

API 7

API 8

\ No newline at end of file