Upload Assets
Drag and drop image files from your computer directly into the media window, or click Upload to browse your local filesystem.
Visuals, screenshots, and architecture diagrams play an essential role in helping readers comprehend technical documentation quickly. Sveltia CMS includes a built-in Media Library that streamlines uploading and managing graphical assets while maintaining our repository standards.
You can access the asset manager at any time from the left navigation bar by clicking Media, or directly within any document editor by clicking the Insert Image toolbar icon.
Upload Assets
Drag and drop image files from your computer directly into the media window, or click Upload to browse your local filesystem.
Visual File Browser
Browse existing screenshots and diagrams already committed to the project. Search and filter by filename to avoid uploading duplicates.
Direct Insertion
Click on any uploaded asset to insert it directly into your current document at your cursor location.
Safe Deletions
You can remove unused images from the media library. Sveltia commits the deletion directly to Git.
In many static site setups, uploading an image places raw, uncompressed files directly into a public folder, leading to sluggish page loads.
In our Docs-as-Code Blueprint:
src/assets/images/.Every image inserted into our documentation must include meaningful Alternative Text (alt). Alt text serves three vital functions:
alt="Sveltia CMS editor displaying the + Insert menu with Aside and Tabs options highlighted"alt="Architecture diagram showing Git commit triggering GitHub Actions CI pipeline"alt="GitHub OAuth login prompt requesting write access to docs-as-code repository"alt="screenshot" (Vague, provides zero context)alt="image1.png" (File names are not accessible descriptions)alt="click here to see diagram" (Action phrases do not describe image content)alt="" (Missing alt text causes screen readers to read the full file path aloud)Use Kebab-Case Filenames
Name files descriptively using lowercase and hyphens (e.g., sveltia-insert-menu.png rather than Screen Shot 2026-09-10 at 4.21.32 PM.png).
Crop to the Focal Point
Avoid uploading full 4K desktop captures. Crop your screenshot tightly to the relevant dialog, button, or workflow step.
Avoid Text Inside Images
Whenever possible, convey information in Markdown prose rather than embedding text inside an image where it cannot be translated, copied, or searched.
Supported Formats
Use PNG for screenshots, software UIs, and line art; use JPEG/WebP for photographic content; use SVG for vector icons and logos.