Screenshots & Videos
Purpose
Centralize guidance and conventions for adding high-quality screenshots and videos to documentation.
Conventions
| Asset Type | Location | Format | Naming Pattern |
|---|---|---|---|
| Screenshot | /static/images | png / webp | module-context-action.png |
| Video | /static/videos | mp4 (H.264 + AAC) | module-scenario.mp4 |
| SVG Icon | /static/images | svg | icon-name.svg |
Quality Guidelines
- Hide personal data in screenshots (blur or use placeholder accounts).
- Prefer 1280px width captures; Docusaurus scales responsively.
- Use WebP for large illustrative images to reduce size.
- Keep videos < 25MB; trim dead time; add poster image.
Embedding Examples
Image

Video With Poster
<video controls width="720" poster="/images/placeholder-badges-list.png">
<source src="/videos/badges-user-story.mp4" type="video/mp4" />
<p>Your browser cannot play this video. <a href="/videos/badges-user-story.mp4">Download</a>.</p>
</video>
Side-by-Side Images
| Form List | Form Builder |
|-----------|--------------|
|  |  |
Posters
Add a representative still frame as a poster for each video under /images.
Accessibility
- Provide alt text describing purpose, not visual minutiae.
- Complex diagrams: follow with a textual summary.
- Videos: optional caption track (VTT) recommended for narration.
Optimization Script (Optional)
Use a local script to convert PNG/JPG to WebP (quality 80):
for f in *.png; do cwebp -q 80 "$f" -o "${f%.png}.webp"; done
Checklist Before Commit
- Filenames lowercase, hyphen separated.
- No spaces or personal data.
- Formats correct (.mp4 for videos, .webp for optimized large images).
- Alt text present.
Last updated: 2025-11-24