Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Last active August 29, 2015 13:56
Show Gist options
  • Save xcoulon/9140090 to your computer and use it in GitHub Desktop.
Save xcoulon/9140090 to your computer and use it in GitHub Desktop.
require 'asciidoctor'
require 'asciidoctor/extensions'
require 'asciidoctor/related_jira'
include ::Asciidoctor
module Awestruct
module Extensions
class AsciidoctorExtensions
def initialize()
puts "Registering Asciidoctor extension(s)..."
Asciidoctor::Extensions.register :jira do
block_macro RelatedJIRA
end
end
def execute(site)
end
end
end
end
...
gem 'asciidoctor', '1.5.0.preview.2'
...
...
extension Awestruct::Extensions::AsciidoctorExtensions.new
...

LiveReload What’s New in 1.1.0.Alpha2

Asciidoc support

This release of JBoss Tools LiveReload brings support for Asciidoc files (.adoc and .asciidoc). Using a basic Text Editor in combination with the LiveReload tooling and the Asciidoctor.js Chrome extension and FireFox add-on, users will now have instant reload of their documentation in their browser !

jira:JBIDE-15506

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