diff --git a/.dev/skills/authoring-docs/SKILL.md b/.dev/skills/authoring-docs/SKILL.md index ce77a7557..f86e5c0db 100644 --- a/.dev/skills/authoring-docs/SKILL.md +++ b/.dev/skills/authoring-docs/SKILL.md @@ -31,7 +31,7 @@ copy their shape. --- title: description: -icon: +icon: .svg (see Page icons)> --- @@ -69,6 +69,37 @@ icon: - **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 `` +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/.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 diff --git a/docs/images/icons/smol.png b/docs/images/icons/smol.png new file mode 100644 index 000000000..8536d9fc3 Binary files /dev/null and b/docs/images/icons/smol.png differ diff --git a/docs/integrations/smol.mdx b/docs/integrations/smol.mdx index 23e9a06f0..37904bf5b 100644 --- a/docs/integrations/smol.mdx +++ b/docs/integrations/smol.mdx @@ -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