Login  Register

Re: Error using Asciidoctor to generate a Maven Site

Posted by LightGuardjp on Jul 10, 2013; 9:10pm
URL: https://discuss.asciidoctor.org/Error-using-Asciidoctor-to-generate-a-Maven-Site-tp376p379.html

Sounds to me like parser being used by the maven-site-plugin is in strict mode (or xml), and it doesn't look like you can change that :( At least there's nothing in the documentation. A source dive may find something though.


On Wed, Jul 10, 2013 at 3:03 PM, Romain Deltour [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Well, that's my guess too, precisely, but this link tag is generates by Asciidoctor and it seems I have no control on the backend (xhtml11 vs html) used by the Maven site plugin…

Romain. 

On 10 juil. 2013, at 22:59, "jason [via Asciidoctor :: Discussion]" <[hidden email]> wrote:

Shooting in the dark, but is the link tag closed/ended? <link rel... />

On 07/10/2013 03:50 PM, Romain Deltour [via Asciidoctor :: Discussion] wrote:
Hi,

I'm new to this list, I've been playing with Asciidoctor for a few days and loving it so far.

I'm trying to use Asciidoc to generate pages in a Maven Site to no avail. I've tried to configure my plugin exactly as hinted in the doc at [1], but I get this error:

----
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.2:site (default-site) on project my-maven-plugin: Error during page generation: Error parsing '/Users/Romain/Work/my-maven-plugin/src/site/asciidoc/usage.ad': line [9] Error parsing the model: end tag name </head> must be the same as start tag <link> from line 8 (position: TEXT seen ...<link rel="stylesheet" href="./asciidoctor.css">\n</head>... @9:8) -> [Help 1]
----

It seems to me that the Maven site plugin is not happy with the HTML5 backend and would prefer an XHTML syntax. Is there any way to configure the backend used by the site plugin ? Has anyone been successful in using Asciidoctor for Maven site generation ?

Thanks!
Romain.

[1] http://asciidoctor.org/docs/install-and-use-asciidoctor-maven-plugin/#maven-site-integration


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Error-using-Asciidoctor-to-generate-a-Maven-Site-tp376.html
To unsubscribe from Asciidoctor :: Discussion, <a moz-do-not-send="true" href="x-msg://8175/" target="_top" rel="nofollow" link="external">click here.
NAML
To unsubscribe from Error using Asciidoctor to generate a Maven Site, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Error-using-Asciidoctor-to-generate-a-Maven-Site-tp376p378.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Jason Porter
http://en.gravatar.com/lightguardjp