Images
Put images in apps/docs/src/assets/ and reference them with a relative path. Astro optimizes raster images and sets their dimensions, which avoids layout shift. Always write alt text that says what the image shows.
Markdown syntax
Section titled “Markdown syntax”The Image component in MDX
Section titled “The Image component in MDX”import { Image } from 'astro:assets';import layout from '../../../assets/dashboard-layout.svg';
<Image src={layout} alt="Wireframe of the dashboard" width={640} />Guidelines
Section titled “Guidelines”- Prefer SVG for diagrams and interface sketches, and keep them in the design system’s neutral palette.
- Screenshots should be of the dark dashboard, at a width of at least 1280 pixels, with no personal data.
- Files in
public/are served as is, at the same path (public/favicon.svgis/favicon.svg). Usepublic/only for files that must keep their name.