Visual content makes documentation more engaging and easier to understand. This guide shows you how to add images, videos, and other media to your Mintlify docs.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sorgm/data-architecture-docs/llms.txt
Use this file to discover all available pages before exploring further.
Adding images
Using Markdown syntax
The simplest way to add images is with standard Markdown:Always include descriptive alt text for accessibility. Alt text helps screen readers and appears when images fail to load.
Image paths
Organize images in the/images directory for easy management:
Using HTML for more control
Use HTML<img> tags when you need more control over image display:
The Frame component
Mintlify’s<Frame> component enhances images with borders, shadows, and captions:

Frame with caption
Add captions to provide context:
Image cards
Combine images with cards for organized visual navigation:Light Mode

Dark Mode

Hosting images
Local images (< 5MB)
Store images under 5MB in your/images directory. They’re automatically optimized and served with your documentation.
External hosting (> 5MB)
For larger images or videos, use external hosting:- Cloudinary
- AWS S3
- CDN
Cloudinary offers free image hosting with automatic optimization and transformations.
Embedding videos
YouTube videos
Embed YouTube videos using iframes:Loom videos
Embed Loom recordings for walkthroughs:Self-hosted videos
For self-hosted videos, use the HTML5<video> tag:
Image optimization tips
Compress images
Use tools like TinyPNG or ImageOptim to reduce file sizes without losing quality.
Choose the right format
- PNG: Screenshots, diagrams, images with transparency
- JPG: Photos, images with many colors
- SVG: Logos, icons, simple graphics
- WebP: Modern format with better compression (when supported)
Use appropriate dimensions
Resize images to the size they’ll be displayed. Don’t upload a 4K image if it only displays at 800px wide.
Diagrams and illustrations
Mermaid diagrams
Create diagrams with code using Mermaid (if supported):Architecture diagrams
For architecture diagrams, consider tools like:Excalidraw
Hand-drawn style diagrams
Lucidchart
Professional diagramming tool
draw.io
Free diagram editor
Figma
Design and prototyping tool
Best practices
Use descriptive filenames
Use descriptive filenames
Name files descriptively:
user-dashboard-overview.png instead of img1.png. This helps with organization and SEO.Maintain consistent styling
Maintain consistent styling
Keep image styles consistent throughout your docs. Use the same border radius, shadows, and dimensions for similar content types.
Update screenshots regularly
Update screenshots regularly
Outdated screenshots confuse users. Review and update images when your product UI changes.
Consider dark mode
Consider dark mode
If your docs support dark mode, ensure images look good in both themes. Consider using separate images or transparent backgrounds.
Annotate when helpful
Annotate when helpful
Add arrows, labels, or highlights to screenshots to draw attention to important elements.