This repository was archived by the owner on Feb 20, 2026. It is now read-only.
Commit 1b2e3f1
committed
feat: Auto-generate assets.json and enable direct asset URLs
- Add scripts/generate-assets.js to automatically generate assets.json
from filesystem, extracting metadata, tags, and sizes from SVG files
- Add .github/workflows/update-assets.yml to regenerate assets.json
when assets change and commit updates automatically
- Update .github/workflows/pages.yml to:
- Copy assets to root directories (icons/, logos/, images/) during
deployment for direct URL access (e.g., /icons/file.svg)
- Add fallback to generate assets.json if missing
- Regenerate assets.json with updated script output
This enables:
- Direct asset access at shorter URLs (https://assets.awsug.nz/icons/file.svg)
- Automatic assets.json updates when new files are added
- No manual maintenance of assets.json required1 parent 187c584 commit 1b2e3f1
File tree
4 files changed
+411
-96
lines changed- .github/workflows
- scripts
4 files changed
+411
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments