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 zip 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
      debug: true # optional - default is false
  • folders - A list of folders to zip. The folders are relative to the root of the MkDocs documentation project - docs_dir (default is docs).
  • debug - Optional. If set to true, the plugin will print debug messages to the console. Default is false.

Git configuration

It is highly recommended to add the zip files to your .gitignore file. This will prevent you from accidentally committing the zip files to your repository.

Zip 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.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

mkdocs_zip_folders-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-zip-folders-1.0.0.tar.gz.

File metadata

  • Download URL: mkdocs-zip-folders-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.17

File hashes

Hashes for mkdocs-zip-folders-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e5991da4d0c5202e64accacf5f3a524da8c60cbfe3f9028a1c6ae873d6b25411
MD5 6e1675cbfd0027e890134539dd0a9b69
BLAKE2b-256 3cb118618d6a1d709443b25fcdba74fae6733790535feb352ac3745123558120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_zip_folders-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ebe77eb83390df831f8868edca2e5cba3b2e5ca863ebbc02bb8f18d61b4c095
MD5 867ac301123a187e91207539fdac5557
BLAKE2b-256 d0d3a048d6bfee72a2f51c1d23fd558a9df2e29493f293c3ac4e93b2db08c2c2

See more details on using hashes here.

Supported by

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