Documentation > HTML: add caption to images
In order to get centered images with caption in the documentation, the simplest solution is to use the module markdown_caption
which use the image annotation as caption (See: https://github.com/squidfunk/mkdocs-material/issues/4974#issuecomment-1412485827).
To do:
-
update the Docker image to add pip and install the markdown_caption
module. -
update mkdocs-xx.yml
and add:
markdown_extensions:
- markdown_captions