From 1cb5acd066c293673e8bc62d9e2355ecb144d0e7 Mon Sep 17 00:00:00 2001 From: sHa Date: Mon, 28 Apr 2025 10:14:18 +0300 Subject: [PATCH] fix: Update Makefile and documentation for logo scanning command --- DEVELOPMENT.md | 4 ++-- Makefile | 4 ++-- public/data/logos.json | 10 ++++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 78871e4..918730e 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -34,7 +34,7 @@ No local Node.js installation is required as all operations run inside Docker co 1. Add logo files (SVG or PNG preferred) to the `public/logos/` directory 2. Scan the logos directory and update the data file: ``` - make scan-logos-dev + make scan-logos ``` (This runs `npm run scan-logos` inside the dev container) 3. The application will automatically rebuild with the new logos @@ -110,7 +110,7 @@ Run `make help` to see all available commands: - `make restart` - Restart the application - `make logs` - View the application logs - `make run CMD=` - Run a command in the container -- `make scan-logos-dev` - Scan logos directory and update logos.json +- `make scan-logos` - Scan logos directory and update logos.json - `make clean` - Clean up build artifacts - `make rebuild` - Completely rebuild from scratch diff --git a/Makefile b/Makefile index e716d51..95ae846 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ CONTAINER_NAME = logo-gallery DEV_PORT = 5006 # Main targets -.PHONY: all build start stop restart logs clean scan-logos-dev dev +.PHONY: all build start stop restart logs clean scan-logos dev all: build start @@ -45,7 +45,7 @@ run: $(DOCKER_COMPOSE) -f compose.dev.yml run --rm $(CONTAINER_NAME) $(CMD) # Scan logos.json from files in the logos directory (for dev mode) -scan-logos-dev: +scan-logos: @echo "Scanning logos directory and updating logos.json for development..." $(DOCKER_COMPOSE) -f compose.dev.yml run --rm logo-gallery-dev npm run scan-logos @echo "Logos have been updated - refresh the browser to see changes" diff --git a/public/data/logos.json b/public/data/logos.json index 0448918..4093b86 100644 --- a/public/data/logos.json +++ b/public/data/logos.json @@ -49,8 +49,14 @@ }, { "name": "Shkafnik", - "path": "logos/shkafnik.png", + "path": "logos/shkafnik.svg", + "format": "SVG", + "disable": false + }, + { + "name": "Shkafnik Small", + "path": "logos/shkafnik_small.png", "format": "PNG", "disable": false } -] +] \ No newline at end of file