Asciidoc Chroma Syntax Highlighter
This repository contains a syntax highlighter for Asciidoc files using Chroma. It is designed to be used in Hugo static site generator to provide syntax highlighting for Asciidoc code blocks in the same way as Markdown.
Usage
To use the Asciidoc Chroma syntax highlighter, follow these steps:
- Install the Chroma CLI if you haven't already. You can find installation instructions in the Chroma repository.
- Install this gem by running:
gem install asciidoctor-chroma - Use the
asciidoctor-chromaextension in your Hugo site configuration to enable syntax highlighting for Asciidoc files. - Configure the
chromasyntax highlighter in your Hugo configuration file as needed.
Release
To release a new version of the gem, follow these steps:
- Update the version number in
asciidoctor-chroma.gemspec. - Commit your changes and tag the new version in Git.
- Push the changes and tags to the remote repository.
- Build and push the gem to RubyGems.org using:
gem build asciidoctor-chroma.gemspec gem push asciidoctor-chroma-<version>.gem