Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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-9 Any help is appreciated. . |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
I don't know what the status is of the asciidoctor-html5ruby gem, so I don't think it's a good choice for this exercise. Here are the two gems I would recommend trying: * asciidoctor-bibtex - https://rubygems.org/gems/asciidoctor-bibtex * asciidoctor-pdf-cjk - https://rubygems.org/gems/asciidoctor-pdf-cjk The first seems relatively simple, universally applicable and a good example of an Asciidoctor extension, so it seems to fit best here. -Dan On Sat, Dec 12, 2015 at 2:16 AM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote: As discussed in asciidoctor-maven-examples/issues/27, we need to provide a maven example that downloads a ruby extension as gems. ... [show rest of quote] Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Free forum by Nabble | Edit this page |