jekyll_example_embed
Display the code for and result of an example.
Installation
- Add this line to your application's Gemfile
gem 'jekyll_example_embed'
. - And then execute
bundle
. - Add the following to your
_config.yml
:gems: [jekyll_example_embed]
. - Run
mkdir -p _collections/examples
- Set up an examples collection:
collections:
examples:
output: true
Usage
Make separate directories within _collections/examples
for each language you
would like to prcoess. The directory is used to highlight the code therein,
and, as such, is necessary for proper output.
Contributing
- Fork it ( https://github.com/sonnym/jekyll_example_embed/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request