Skip to content

hyj0824/mkdocs-images-to-webp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkdocs-images-to-webp

This plugin is designed to convert images in your mkdocs project to the webp format.

Enter in your terminal pip install mkdocs-images-to-webp to install it.

To add a plugin to your mkdocs project, specify the following in mkdocs.yml in the plugins section:

plugins:
  search:
  images-to-webp:
    extensions:
      - <ext1>
      - <ext2>
        ...
    img_dir: docs/<your/path/to/images/folder>

In the extensions section you can specify the most common types of bitmaps: png, jpeg, jpg, bmp.

In the img_dir field you can specify where are your images stored. Default value: docs/img.

About

Convert images to .webp format in mkdocs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%