<commit_before>[![Build Status](http://img.shields.io/travis/tetor/nanoc-graphviz.svg?style=flat)](https://travis-ci.org/tetor/nanoc-graphviz)

# Nanoc::Graphviz

Nanoc Graphviz filter plugin.

## Installation

Add this line to your application's Gemfile:

    gem 'nanoc-graphviz'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install nanoc-graphviz

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( https://github.com/[my-github-username]/nanoc-graphviz/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<commit_msg>write how to use docs<commit_after>[![Build Status](http://img.shields.io/travis/tetor/nanoc-graphviz.svg?style=flat)](https://travis-ci.org/tetor/nanoc-graphviz)

# Nanoc::Graphviz

Nanoc Graphviz filter plugin.

This filter converts dot file to PNG.

## Installation

Add this line to your application's Gemfile:

    gem 'nanoc-graphviz'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install nanoc-graphviz

## Usage

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')


## Contributing

1. Fork it ( https://github.com/tetor/nanoc-graphviz/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
{'fraction_non_alphanumeric': 0.11404872991187144, 'fraction_numerical': 0.005184033177812338, 'mean_word_length': 3.498834498834499, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5573667', 'n_tokens_mistral': 663, 'n_tokens_neox': 616, 'n_words': 212}