docs(integrations): grey smol machines sidebar icon like its neighbors (#1001)

The smol page icon pointed at the full-color card logo in
/images/integrations/, a white tile the sidebar filter in style.css never
touches. Add a transparent black silhouette under /images/icons/, cropped
and thickened to match the other marks, and document the page icon rules
in the authoring-docs skill.
This commit is contained in:
Kacper Kapuściak
2026-10-09 10:56:57 +00:00
committed by GitHub
parent 3c37d981d9
commit ef1ae5fddc
3 changed files with 36 additions and 2 deletions
+35 -1
View File
@@ -31,7 +31,7 @@ copy their shape.
---
title: <noun the reader searches for>
description: <one sentence: what the reader can do after this page>
icon: <font awesome name>
icon: <font awesome name, or /images/icons/<brand>.svg (see Page icons)>
---
<lede: 2-4 sentences. What it is, what it does.>
@@ -69,6 +69,37 @@ icon: <font awesome name>
- **Link to depth instead of repeating it**: "To read the full procedure,
run `npx e2e guide bug-bash`." or "See [Starting your app](/web#starting-your-app)."
## Page icons
The `icon` in the frontmatter shows in the sidebar beside the page title.
Use a Font Awesome name. Use a file only for a brand mark, such as a
vendor's logo on an integration page.
Mintlify fills Font Awesome icons with one grey. A file loads as an `<img>`
in its own colors. `docs/style.css` turns a file grey only when it is under
`docs/images/icons/`. It makes every opaque pixel a grey silhouette, so the
file must be a silhouette too:
- **Location**: `docs/images/icons/<brand>.svg`. A file anywhere else keeps
its colors and stands out in the sidebar.
- **Color**: black marks on a transparent background. Don't use a filled
tile, a white background, or brand colors. They turn into a solid grey
square.
- **Format**: SVG. If the vendor has only a raster logo, use a transparent
PNG.
- **Shape**: crop the file to the mark, with no padding. Padding makes the
mark smaller than the icons beside it.
- **Weight**: the icon shows at 16 px. Hairline strokes look faint at that
size. Thicken them until the mark is as heavy as the icons beside it.
Card logos in `docs/images/integrations/` are a different set. They keep
their brand colors, and some sit on a filled tile. Don't use one as a page
icon. Make a silhouette copy in `docs/images/icons/`.
Preview a new icon in the sidebar in light and dark mode, on its own page
and on another page. In all four views it must match its neighbors in
color, size, and weight.
## Copy agent prompt
Put a copyable prompt near the top when a coding agent can do the whole
@@ -234,6 +265,9 @@ One page per PR. The reviewer compares old and new side by side.
`scripts/check-docs-examples.ts`, and typechecks with
`pnpm --filter @e2e-dev/docs typecheck`.
- [ ] Status claims checked against `src/`.
- [ ] A page icon from a file is a black silhouette under
`docs/images/icons/` and matches its sidebar neighbors in light and
dark mode.
- [ ] Links and anchors resolve. Moved pages have redirects.
- [ ] `pnpm docs:check` passes.
- [ ] Preview the page with `pnpm docs:dev` and look at it
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+1 -1
View File
@@ -2,7 +2,7 @@
title: smol machines browsers
sidebarTitle: smol machines
description: Run each web test attempt in its own branch of a warm Chromium microVM on your computer with the smol() browser provider from @e2e-dev/smol.
icon: "/images/integrations/smol.png"
icon: "/images/icons/smol.png"
---
`smol()` from `@e2e-dev/smol` is a