Skip to main content

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.

Plugin

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 is docs).
  • formats - A list of archive formats to create. Supported formats are zip and tar.gz. Default is ['zip'].
  • debug - Optional. If set to true, the plugin will print debug messages to the console. Default is false.
  • 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:

  • supporting me on GitHub Sponsors:

License

MIT

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

mkdocs_zip_folders-1.0.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_zip_folders-1.0.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_zip_folders-1.0.5.tar.gz
Algorithm Hash digest
SHA256 feb6c80a90ee5cbc3db4f4ff69e8fc62d9437477f5918c15b6fcb672da4156dd
MD5 db9dcbc5df3a5303da29e9a63e2fd910
BLAKE2b-256 1ee536a868778f7792abc9ea7e48566f38652864f07aaa8e4fe7b79b1283dc90

See more details on using hashes here.

File details

Details for the file mkdocs_zip_folders-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_zip_folders-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a3dc7ece1aac7aad854553d1e4b981ebc67bbf8bbb7f9fcd3c7846ade7874f
MD5 d3fc5a901843a4e87a980e20979de661
BLAKE2b-256 bdcf4fa4802e7fa8d560f64f19d9d650ce37913480e9240747fb679e751569d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page