jekyll-prettier

Jekyll (Ruby static website generator) plugin that runs prettier on generated outputs.


License
MIT
Install
gem install jekyll-prettier -v 0.0.0

Documentation

jekyll-prettier

Post-render hooks for cleaning up Jekyll outputs with prettier. Really basic — this README is longer than the plugin itself.

Written as an alternative to jekyll-tidy, which uses htmlbeautifier under-the-hood. Key distinctions:


Installation

  1. If using Bundler (recommended); in Gemfile:
group :jekyll_plugins do
  gem "jekyll-prettier"
end
  1. Alternatively, in _config.yml:
plugins:
  - jekyll-prettier

Dependencies

Requires that prettier is installed and in the PATH.

Can be installed with npm:

npm install --global prettier

or with Yarn:

yarn global add prettier