Skip to content

Instantly share code, notes, and snippets.

@spmallette
Last active June 27, 2019 13:57
Show Gist options
  • Save spmallette/7acf51d32bf2e1ad9dbf5bea6db496c9 to your computer and use it in GitHub Desktop.
Save spmallette/7acf51d32bf2e1ad9dbf5bea6db496c9 to your computer and use it in GitHub Desktop.
  1. git clone https://github.com/spmallette/rouge
  2. cd rouge
  3. git checkout mm-adt
  4. Build the gem: $ gem build rouge.gemspec
  5. Locally install the gem: $ gem install --local rouge-3.4.1.pre.mmadt.gem
  6. In the terminal where you are running asciidoctor set the ROUGE_VERSION environment variable: $ export ROUGE_VERSION=3.4.1.pre.mmadt
  7. Use mmadt as the "format" as in [source,mmadt] within asciidoc files.
  8. Set the source-highlighter to "rouge".
  9. $ asciidoctor -a source-highlighter=rouge -a rouge-style=thankful_eyes *.adoc -D html/

** bundle exec rackup

@okram
Copy link

okram commented Jun 25, 2019

Screen Shot 2019-06-25 at 12 29 14 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment