Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 909 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 909 Bytes

A torrent plugin for jekyll

A simple plugin that uses mktorrent to create a .torrent file with your whole site after it's generated by jekyll. It monkeypatches Jekyll::Site.process.

It's used on En Defensa del Software Libre.

Configuration

Default configuration (change it by superseding in _config.yml):

torrent:
  announce: 'udp://tracker.publicbt.com:80'
  file:     'site.torrent'
  flags:    '--verbose'
  bin:      'mktorrent'
  • announce is the URL of the tracker.

  • file is the torrent filename.

  • flags is a string with the flags you will normally pass to mktorrent on cli, besides --output and --announce

  • bin is the mktorrent binary path

How to run

Execute jekyll like always, just make sure you have mktorrent installed and it's binary is accessible.