|
5 | 5 | - "docs/.vitepress/config.ts" |
6 | 6 | - "packages/stackctl/package.json" |
7 | 7 | - "packages/stackctl/src/cli.ts" |
8 | | - - "docs/public/logo.svg" |
| 8 | + - "logo/**" |
9 | 9 | --- |
10 | 10 |
|
11 | 11 | # How stackctl describes itself — one wording and one icon, everywhere, in lockstep |
@@ -51,21 +51,32 @@ Where each one lives: |
51 | 51 |
|
52 | 52 | ## The icon |
53 | 53 |
|
54 | | -`docs/public/logo.svg` is the icon: a prompt in front of three log lines, the middle one yellow, |
55 | | -on a dark rounded tile. Everything else is made from it, so a change to it is a change to all of |
56 | | -them, in the same change: |
| 54 | +`logo/` holds the icon and everything made from it. `logo/logo.svg` is the icon: a prompt in |
| 55 | +front of three log lines, the middle one yellow, on a dark rounded tile. `logo/logo-small.svg` is |
| 56 | +the same icon for small sizes, with the three lines as thick as the prompt's stroke. Everything |
| 57 | +else is made from one of the two, so a change to the icon is a change to both and to all of |
| 58 | +these, in the same change: |
57 | 59 |
|
58 | 60 | | Place | File | Wired in | |
59 | 61 | | --------------------------------------- | ---------------------------------- | ------------------------------------------ | |
60 | | -| The browser tab | `logo.svg`, and `favicon-32.png` | `head` in `docs/.vitepress/config.ts` | |
61 | | -| An iPhone's home screen | `apple-touch-icon.png` (180 px, square: iOS rounds it) | `head` | |
62 | | -| The site's nav bar | `logo.svg` | `themeConfig.logo` | |
| 62 | +| The browser tab | `logo-small.svg`, and `site/favicon-32.png` | `head` in `docs/.vitepress/config.ts` | |
| 63 | +| An iPhone's home screen | `site/apple-touch-icon.png` (180 px, square: iOS rounds it) | `head` | |
| 64 | +| The site's nav bar | `logo-small.svg` | `themeConfig.logo` | |
63 | 65 | | The home page, beside the headline | `logo.svg` | `hero.image` in `docs/index.md` | |
64 | | -| A link's preview (Slack, X, …) | `og-image.png` (512 px, square corners: Slack rounds it) | `og:image` in `head` | |
| 66 | +| A link's preview (Slack, X, …) | `site/og-image.png` (512 px, square corners: Slack rounds it) | `og:image` in `head` | |
| 67 | +| `stackctl.config.*` in VS Code's icon themes | `icon-themes/vscode/<theme id>/` (from `logo-small.svg`) | upstream, by pull request ([its README](../../logo/icon-themes/README.md)) | |
65 | 68 |
|
66 | | -- **The PNGs are renders of the SVG.** Re-render all three when it changes, at their sizes, from |
67 | | - a browser (headless Chrome with a transparent background; the touch icon and the preview from |
68 | | - the SVG with the tile's corners squared). |
| 69 | +- **The site serves them through links.** VitePress only serves files from `docs/public/`, so |
| 70 | + each file the site uses has a relative symlink there, under the name its URL uses |
| 71 | + (`docs/public/logo.svg` → `../../logo/logo.svg`). A new file the site needs gets one too. |
| 72 | + `docs.yaml` deploys on a change to `logo/` as well as `docs/`. |
| 73 | +- **The PNGs are renders of the SVGs.** Re-render all three when either changes, at their sizes, |
| 74 | + from a browser (headless Chrome with a transparent background): `favicon-32.png` from |
| 75 | + `logo-small.svg`; the touch icon and the preview from `logo.svg` with the tile's corners |
| 76 | + squared. |
| 77 | +- **The icon themes' SVGs are written from `logo-small.svg`** by |
| 78 | + `node maintenance/scripts/icon-themes.ts`. Run it when that changes; a theme that already |
| 79 | + carries the icon then needs a pull request of its own. |
69 | 80 | - **Every URL to them carries a hash of the file** (`versioned()` in the site config), so a |
70 | 81 | changed icon is a new URL and no browser or CDN keeps the old one. Reference a public file |
71 | 82 | through it, never by its bare path. |
0 commit comments