asciidoctor-html5ruby broken?
Posted by
Jeremie Bresson on
URL: https://discuss.asciidoctor.org/asciidoctor-html5ruby-broken-tp4081.html
As discussed in
asciidoctor-maven-examples/issues/27, we need to provide a maven example that downloads a ruby extension as gems.
That is currently the case with "asciidoctor-diagram-example", but this might change if we change "asciidoctor-diagram-example" to use "asciidoctorj-diagram" instead of the "asciidoctor-diagram" gems. (see
asciidoctor-maven-examples/pull/12)
As suggested in
asciidoctor-maven-examples/issues/27 I have taken the simple extension
asciidoctor-html5ruby and I have tried to implement something.
About the other gems suggested in the issues:
*
asciidoctor-latex seems too big for a simple example.
*
asciidoctor-diagram-cacoo requires a Cacoo API key
Now I get this error:
[INFO] --- asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (generate-html-doc) @ ruby-extension-example ---
[WARNING] Using inherited external environment to resolve gems (C:/*****/git/asciidoctor-maven-examples/ruby-extension-example/target/gems-provided), i.e. build is platform dependent!
Dez 12, 2015 10:00:21 AM org.asciidoctor.internal.JRubyAsciidoctor renderFile
SEVERE: (ArgumentError) asciidoctor: FAILED: C:/*****/git/asciidoctor-maven-examples/ruby-extension-example/src/docs/asciidoc/example-manual.adoc:
Failed to load AsciiDoc document - Invalid arguments specified for registering inline macro extension: [:html5ruby, HTML5RubyMacro, {}]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.617 s
[INFO] Finished at: 2015-12-12T10:00:21+01:00
[INFO] Final Memory: 61M/989M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc (generate-html-doc) on project ruby-extension-example:
Execution generate-html-doc of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2.1:process-asciidoc failed: org.jruby.exceptions.RaiseException: (ArgumentError) asciidoctor: FAILED:
C:/*****/git/asciidoctor-maven-examples/ruby-extension-example/src/docs/asciidoc/example-manual.adoc:
Failed to load AsciiDoc document - Invalid arguments specified for registering inline macro extension: [:html5ruby, HTML5RubyMacro, {}] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
And I have no idea how I can debug or I can continue to work on it.
My guess is that the "asciidoctor-html5ruby" extension is not up to date... But I am not sure I understand everything.
By the way, my code is pushed:
https://github.com/jmini/asciidoctor-maven-examples/tree/patch-9Any help is appreciated.
.