Images and Files
Learn where to place logos, screenshots, downloads, and other static files.
Your documentation will often need images, screenshots, diagrams, or downloadable files.
For content files, the main rule is simple: put them in public/, then reference them with a path that starts with /.
Add an image folder
Inside your project, create an images folder inside public/:
public/
└── images/If the folder already exists, you can use it.
Add an image file
Copy an image into that folder.
For example:
public/images/my-image.pngThe file can be a screenshot, diagram, illustration, or any image you want to show in a page.
Show the image in a page
Open the page you created earlier:
content/en/my-first-page.mdAdd this Markdown where you want the image to appear:
Save the file. If your local server is running, the preview should update automatically.
Why the path starts with /
Files inside public/ are available from the site root.
That means this file:
public/images/my-image.pngIs referenced like this:
Do not include public in the Markdown path.
Write useful image descriptions
The text inside the square brackets is called alt text:
Write a short description of what the image shows.
For example:
Good alt text helps readers who use screen readers and gives context if an image cannot load.
What about logos?
The starter project also has this folder:
config/assets/That folder is for site-level images, such as the logo in the header. You do not need to change it yet.
Later, the Assets and Branding page will explain logo and favicon files.