jekyll_site_inspector
jekyll_site_inspector
is a Jekyll tag plugin that displays lots of information from context for websites in development mode if site_inspector: true
in _config.yml
.
<p>{% site_inspector %}</p>
Output is also displayed on the console.
More information is available on Mike Slinn’s website.
Add this line to your application's Gemfile, within the jekyll_plugins
group:
group :jekyll_plugins do
gem 'jekyll_site_inspector'
end
And then execute:
$ bundle
After checking out the repo, run bin/setup
to install dependencies.
You can also run bin/console
for an interactive prompt that will allow you to experiment.
To build and install this gem onto your local machine, run:
$ bundle exec rake install
jekyll_site_inspector 1.0.0 built to pkg/jekyll_site_inspector-0.1.0.gem.
jekyll_site_inspector (1.0.0) installed.
Examine the newly built gem:
$ gem info jekyll_site_inspector
*** LOCAL GEMS ***
jekyll_site_inspector (1.0.0)
Author: Mike Slinn
Homepage:
https://github.com/mslinn/jekyll_site_inspector
License: MIT
Installed at: /home/mslinn/.gems
Generates Jekyll logger with colored output.
To release a new version,
Update the version number in version.rb
.
Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
Run the following:
$ bundle exec rake release
The above creates a git tag for the version, commits the created tag,
and pushes the new .gem
file to RubyGems.org.
The gem is available as open source under the terms of the MIT License.