Image Guide for EnergyAtlas Wiki¶
Best Practices¶
1. Where to Store Images¶
Place images in docs/assets/images/ directory:
1 2 3 4 5 6 | |
2. Basic Image Syntax¶
Standard markdown image:
1 | |
3. Image Sizing Classes¶
Use CSS classes for sizing:
1 2 3 4 | |
4. Image Alignment¶
Float images left or right:
1 2 | |
5. Image with Caption¶
Using HTML for better control:
1 2 3 4 | |
Or using markdown with emphasis:
1 2 3 | |
6. External Images¶
External images work the same way:
1 | |
7. Image Styling Features¶
- Automatic centering: Images in paragraphs are centered
- Borders: All images have subtle borders
- Responsive: Images scale down on smaller screens
- Rounded corners: Images have border-radius
8. Examples¶
Centered medium image:
1 | |
Left-aligned thumbnail:
1 | |
Full-width hero image:
1 | |
Image with caption:
1 2 3 4 | |
Tips¶
- Optimize images: Use compressed formats (WebP, optimized PNG/JPG)
- Descriptive alt text: Always include meaningful alt text
- Consistent naming: Use descriptive, lowercase filenames with hyphens
- SVG for icons: Use SVG for logos and icons (scalable, small file size)
- PNG for screenshots: Use PNG for screenshots with text
- JPG for photos: Use JPG for photographs