Skip to content

Commit 45bed98

Browse files
authored
feat: Publish every library as Markdown and give each one its own link-preview card. (#2)
1 parent 8438f42 commit 45bed98

31 files changed

Lines changed: 227 additions & 16 deletions

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ preview: ## @setup Serve the built site, search included, on the development por
6767
@echo "Built site at $(SITE_URL)"
6868

6969
.PHONY: og-image
70-
og-image: ## @setup Draw the link-preview card into public/og-image.png
70+
og-image: ## @setup Draw the link-preview cards into public/og-image.png and public/og/
7171
@docker run --rm -u $(HOST_USER) -e HOME=/tmp -v $(CURDIR):/app -w /app python:3.12-slim \
7272
sh -c "pip install --quiet --no-cache-dir --user pillow==11.3.0 && python tools/og-image.py"
7373

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ To serve the built site, search included, as it is published, run:
8383
make preview
8484
```
8585

86-
To draw the link-preview card into `public/og-image.png`, run:
86+
To draw the link-preview cards, `public/og-image.png` and one per library in `public/og/`, run the command
87+
below. Run it again after adding a library to the catalog:
8788

8889
```bash
8990
make og-image

‎public/og/building-blocks.png‎

51.4 KB
Loading

‎public/og/collection.png‎

42.4 KB
Loading

‎public/og/country.png‎

42.5 KB
Loading

‎public/og/currency.png‎

42.6 KB
Loading

‎public/og/docker-container.png‎

50.1 KB
Loading

‎public/og/encoder.png‎

43.3 KB
Loading

‎public/og/environment-variable.png‎

47.9 KB
Loading

‎public/og/http-correlation-id.png‎

50.5 KB
Loading

0 commit comments

Comments
 (0)