No commit activity in last 3 years
No release in over 3 years
Embed examples in Jekyll
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0
~> 10

Runtime

 Project Readme

jekyll_example_embed

Display the code for and result of an example.

Installation

  1. Add this line to your application's Gemfile gem 'jekyll_example_embed'.
  2. And then execute bundle.
  3. Add the following to your _config.yml: gems: [jekyll_example_embed].
  4. Run mkdir -p _collections/examples
  5. 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

  1. Fork it ( https://github.com/sonnym/jekyll_example_embed/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request