Nanoc Graphviz filter plugin.
This filter converts dot file to PNG.
Add this line to your application's Gemfile:
gem 'nanoc-graphviz'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nanoc-graphviz
This plugin adds :graphviz
filter to nanoc.
In Nanoc Rules file, please write compile and route settings as below.
compile '*' do
if item[:extension] == 'dot'
filter :graphviz
end
end
route '*' do
if item[:extension] == 'dot'
item.identifier.chop + '.png'
end
end
If you forget route setting, the filter will generate PNG file but it extension will be same to source file. (perhaps '.dot')
- Fork it ( https://github.com/tetor/nanoc-graphviz/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