Last modified 2023-05-18.
Time to read: 1 minutes.
make_archive, this Jekyll generator plugin
zip archives according to the
make_archive entry in
Archives are placed in the top-level of the Jekyll project,
and are copied to
_site by Jekyll’s normal build process.
Entries are created in
.gitignore for each of the generated archives.
production mode, the archives are built each time Jekyll generates the web site.
development mode, the archives are only built if they do not already exist,
delete: true is set for that archive in
This plugin supports 4 types of file specifications:
- Absolute filenames (start with
- Filenames relative to the top-level directory of the Jekyll web site (Do not preface with
- Filenames relative to the user home directory (preface with
- Executable programs on the
Jekyll_archive_create is packaged as a Ruby gem.
add the following line to your Jekyll project’s
group :jekyll_plugins do gem 'jekyll_archive_create' end
jekyll_archive_create gem in the usual manner:
Any number of archives can be specified.
Each archive has 3 properties:
delete (defaults to
Take care that the dashes have exactly 2 spaces before them, and that the 2 lines following each dash have exactly 4 spaces in front.
make_archive: - archive_name: cloud9.zip delete: true # This is the default, and need not be specified. files: [ index.html, 404.html, ~/.ssh/config, /etc/passwd, '!update' ] - archive_name: cloud9.tar delete: false # Do not overwrite the archive if it already exists files: [ index.html, 404.html, ~/.ssh/config, /etc/passwd, '!update' ]