diff --git a/Gemfile b/Gemfile index 40819697..df43c352 100644 --- a/Gemfile +++ b/Gemfile @@ -19,8 +19,8 @@ gem 'rubypants-unicode' gem 'linkeddata' gem 'rdf-vocab', git: 'https://github.com/ruby-rdf/rdf-vocab.git', branch: 'develop' # for latest code (included in `linkeddata` gem) gem 'rdf', git: 'https://github.com/ruby-rdf/rdf.git', branch: 'develop' # for latest code (included in `linkeddata` gem) -gem 'pygmentize' # for syntax coloring gem 'nanoc-cachebuster', git: 'https://github.com/cdchapman/nanoc-cachebuster', branch: 'nanoc-4' +gem 'rouge' gem 'haml' gem 'pandoc-ruby' # for benefit reports in ConTeXt gem 'git' # for version history and tagging info diff --git a/Gemfile.lock b/Gemfile.lock index f1843ebd..f62397ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -196,7 +196,6 @@ GEM coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) - pygmentize (0.0.3) pygments.rb (0.6.3) posix-spawn (~> 0.3.6) yajl-ruby (~> 1.2.0) @@ -263,6 +262,7 @@ GEM http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) + rouge (2.0.6) rqrcode (0.10.1) chunky_png (~> 1.0) rspec (3.5.0) @@ -347,11 +347,11 @@ DEPENDENCIES nokogiri optipng pandoc-ruby - pygmentize rainpress rdf! rdf-vocab! rest-client + rouge rqrcode rubypants-unicode shortly diff --git a/README.md b/README.md index ee455801..6d33e125 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ The following external dependencies or system packages need to be installed and in scope before compiling: * Ruby (with [bundler], i.e. `gem install bundler`) -* Python (for [pygments]) * [pandoc] and [ConTeXt] for PDF generation of reports * [hunspell] for spell-checking (with the [optional fix][apostrophe fix] for the en_US apostrophe handling) diff --git a/rules/blog.rb b/rules/blog.rb index c3b0ec24..cb887d47 100644 --- a/rules/blog.rb +++ b/rules/blog.rb @@ -29,7 +29,8 @@ compile '/blog/**/*.md' do filter :erb, @config[:erb] filter :kramdown, @config[:kramdown] - filter :colorize_syntax, default_colorizer: :pygmentize, pygmentize: { nowrap: 'True' } + filter :colorize_syntax, + default_colorizer: :rouge filter :absolutify_paths, type: :html filter :spellchecker unless @config[:production] layout '/blog/article.*'