You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image-formatter: MkDocs plugin for easier management of image sizes
This plugin is being developed as part of Advanced Programming in Python course (23L edition)
Team members:
Mateusz Wasilewski
Aleksandra Sypuła
Julia Jodczyk
Description:
The plugin allows you to define image size categories and use them as tags in your documentation. The images annotated with tags will be resized to the size specified in the configuration file.
Installation:
You can install the plugin using pip: pip install mkdocs-image-formatter-plugin
Usage:
Prerequisites
Plugin works by replacing your tags with attribute list that is later interpreted by attr_list markdown extension. Make sure you add it to mkdocs.yaml like so:
Annotate images in your documents with desired tags.
Example:
![MyImage]@small(../images/b.png)
Demo:
You can see the plugin in action after you clone this project to your local repository. Depending on whether you're a dog or a cat person, execute make demo_dogs or make demo_cats.