Error using Asciidoctor to generate a Maven Site

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Error using Asciidoctor to generate a Maven Site

Romain Deltour
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
Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

jasondlee
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, click here.
NAML


-- 
Jason Lee
http://cubtracker.com 
http://blogs.steeplesoft.com
http://twitter.com/jasondlee
http://blogs.steeplesoft.com/+
http://blogs.steeplesoft.com/in
Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

Romain Deltour
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


-- 
Jason Lee
http://cubtracker.com 
http://blogs.steeplesoft.com
http://twitter.com/jasondlee
http://blogs.steeplesoft.com/+
http://blogs.steeplesoft.com/in



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-tp376p377.html
To unsubscribe from Error using Asciidoctor to generate a Maven Site, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

LightGuardjp
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



--
Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

Romain Deltour
OK, I tried to set the backend to 'xhtml11' in org.asciidoctor.maven.site.AsciidoctorParser, but then the rendering fails with "Couldn't find a view in @views for document".

I'll stop here and fall back to APT or Markdown :( Unfortunately I really need to stop shaving the yack.

Thanks anyway!
Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

LightGuardjp
There is no xhtml backend in asciidoctor. Sorry about that, but would you mind creating a ticket so we can track this down?


On Wed, Jul 10, 2013 at 3:52 PM, Romain Deltour [via Asciidoctor :: Discussion] <[hidden email]> wrote:
OK, I tried to set the backend to 'xhtml11' in org.asciidoctor.maven.site.AsciidoctorParser, but then the rendering fails with "Couldn't find a view in @views for document".

I'll stop here and fall back to APT or Markdown :( Unfortunately I really need to stop shaving the yack.

Thanks anyway!


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-tp376p380.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

Romain Deltour
Ah OK, I didn't know. New issue created:

On 11 juil. 2013, at 00:14, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:

There is no xhtml backend in asciidoctor. Sorry about that, but would you mind creating a ticket so we can track this down?


On Wed, Jul 10, 2013 at 3:52 PM, Romain Deltour [via Asciidoctor :: Discussion] <<a href="x-msg://8368/user/SendEmail.jtp?type=node&amp;node=381&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
OK, I tried to set the backend to 'xhtml11' in org.asciidoctor.maven.site.AsciidoctorParser, but then the rendering fails with "Couldn't find a view in @views for document".

I'll stop here and fall back to APT or Markdown :( Unfortunately I really need to stop shaving the yack.

Thanks anyway!


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-tp376p380.html
To start a new topic under Asciidoctor :: Discussion, email <a href="x-msg://8368/user/SendEmail.jtp?type=node&amp;node=381&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from Asciidoctor :: Discussion, <a href="x-msg://8368/" target="_blank" rel="nofollow" link="external">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-tp376p381.html
To unsubscribe from Error using Asciidoctor to generate a Maven Site, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Error using Asciidoctor to generate a Maven Site

mojavelinux
Administrator
I'll comment in the issue. Let's follow the discussion there.

-Dan


On Wed, Jul 10, 2013 at 4:22 PM, Romain Deltour [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Ah OK, I didn't know. New issue created:

On 11 juil. 2013, at 00:14, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:

There is no xhtml backend in asciidoctor. Sorry about that, but would you mind creating a ticket so we can track this down?


On Wed, Jul 10, 2013 at 3:52 PM, Romain Deltour [via Asciidoctor :: Discussion] <<a href="x-msg://8368/user/SendEmail.jtp?type=node&amp;node=381&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
OK, I tried to set the backend to 'xhtml11' in org.asciidoctor.maven.site.AsciidoctorParser, but then the rendering fails with "Couldn't find a view in @views for document".

I'll stop here and fall back to APT or Markdown :( Unfortunately I really need to stop shaving the yack.

Thanks anyway!


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-tp376p380.html
To start a new topic under Asciidoctor :: Discussion, email <a href="x-msg://8368/user/SendEmail.jtp?type=node&amp;node=381&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from Asciidoctor :: Discussion, <a href="x-msg://8368/" target="_blank" rel="nofollow" link="external">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-tp376p381.html
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-tp376p382.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--