MkDocs plugin to zip configured folders and add them to the site.
Project description
ZipFolders MkDocs Plugin
The ZipFolders plugin is used to create archives (zip and tar.gz) of specified folders in your MkDocs project after the site build process. This can be helpful if you need to distribute or backup parts of your documentation.
Installation
Install the plugin using pip from PyPI:
pip install mkdocs-zip-folders
Configuration
To use the ZipFolders plugin, you need to add it to your mkdocs.yml configuration file.
Here is a sample configuration:
plugins:
- search
- zip_folders:
folders:
- myCode
- toShare
- folderX/thisWillBeZipped
formats:
- zip
- tar.gz
hash_extension: ".hash" # default extension
debug: true # optional - default is false
folders- A list of folders to archive. The folders are relative to the root of the MkDocs documentation project - docs_dir (default isdocs).formats- A list of archive formats to create. Supported formats arezipandtar.gz. Default is['zip'].debug- Optional. If set totrue, the plugin will print debug messages to the console. Default isfalse.hash_extension- The extension to use for hashing archives. Default is.hash.
Git configuration
It is highly recommended to add the archive files and hash files to your .gitignore file. This will prevent you from accidentally committing the archive files to your repository.
# Archive files generated by mkdocs-zip-folders
*.zip
*.tar.gz
*.zip.hash
*.tar.gz.hash
Archive files will be generated automatically after each build.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Do You Enjoy My Work?
Then definitely consider:
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_zip_folders-1.0.5.tar.gz.
File metadata
- Download URL: mkdocs_zip_folders-1.0.5.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feb6c80a90ee5cbc3db4f4ff69e8fc62d9437477f5918c15b6fcb672da4156dd
|
|
| MD5 |
db9dcbc5df3a5303da29e9a63e2fd910
|
|
| BLAKE2b-256 |
1ee536a868778f7792abc9ea7e48566f38652864f07aaa8e4fe7b79b1283dc90
|
File details
Details for the file mkdocs_zip_folders-1.0.5-py3-none-any.whl.
File metadata
- Download URL: mkdocs_zip_folders-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a3dc7ece1aac7aad854553d1e4b981ebc67bbf8bbb7f9fcd3c7846ade7874f
|
|
| MD5 |
d3fc5a901843a4e87a980e20979de661
|
|
| BLAKE2b-256 |
bdcf4fa4802e7fa8d560f64f19d9d650ce37913480e9240747fb679e751569d3
|