You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexandre Poitras <al...@gmail.com> on 2006/02/25 00:51:03 UTC

Strange site plugin behaviour

Hi,

I am able to generate and customize my website quite elegantly but I 
still have a little annoying bug, ie. there is a <div class="section">
outputted in the web site body content. What I find perticulary
annoying is the tag isn't even closed but I need my web site to be
XHTML strict compatible. I taught I could fix it by modifying the
velocity template but the tags seems to come from the generated site
content. In the mean, as a temporary fix, I putted a ending div tag in
the velocity template straight after the generated body content but it
isn't very elegant and practical.  Has anyone noticed the same problem
and found a solution?

By the way, does anyone know where I can edit the html generated by
reports (like for the project-info reports)?

Thank!
--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Strange site plugin behaviour

Posted by Alexandre Poitras <al...@gmail.com>.
Thank I'll create the report right now.

On 2/27/06, Yann Le Du <le...@gmail.com> wrote:
> Hi Alexandre,
>
> The pages are generated using Doxia, where the "true" HTML is generated [1]
>
> I think your problem is with the "About" page (index.html). This page is
> generated in maven-site-plugin. In SiteMojo.java [2] , generateIndexPage(),
> there is indeed a <div class="section"> generated by section1() that is not
> closed with section1_() . As you're the reporter, you can create an issue, I
> have a patch ready to be attached.
>
> maven-site-plugin also generates the "Project info" and "Project reports"
> pages (respectively project-info.html and maven-reports.html ). For other
> pages, you must look into plugins that generate them. I believe the same
> problem happens for some of them, e.g. for maven-checkstyle-plugin [3] ,
> doHeading() .
>
> [1]
> http://svn.apache.org/viewcvs.cgi/maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?view=markup
> [2]
> http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java?view=markup
> [3]
> http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java?view=markup
>
> - Yann
>
> 2006/2/25, Alexandre Poitras <al...@gmail.com>:
> >
> > Hi,
> >
> > I am able to generate and customize my website quite elegantly but I
> > still have a little annoying bug, ie. there is a <div class="section">
> > outputted in the web site body content. What I find perticulary
> > annoying is the tag isn't even closed but I need my web site to be
> > XHTML strict compatible. I taught I could fix it by modifying the
> > velocity template but the tags seems to come from the generated site
> > content. In the mean, as a temporary fix, I putted a ending div tag in
> > the velocity template straight after the generated body content but it
> > isn't very elegant and practical.  Has anyone noticed the same problem
> > and found a solution?
> >
> > By the way, does anyone know where I can edit the html generated by
> > reports (like for the project-info reports)?
> >
> > Thank!
> > --
> > Alexandre Poitras
> > Québec, Canada
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Strange site plugin behaviour

Posted by Yann Le Du <le...@gmail.com>.
Hi Alexandre,

The pages are generated using Doxia, where the "true" HTML is generated [1]

I think your problem is with the "About" page (index.html). This page is
generated in maven-site-plugin. In SiteMojo.java [2] , generateIndexPage(),
there is indeed a <div class="section"> generated by section1() that is not
closed with section1_() . As you're the reporter, you can create an issue, I
have a patch ready to be attached.

maven-site-plugin also generates the "Project info" and "Project reports"
pages (respectively project-info.html and maven-reports.html ). For other
pages, you must look into plugins that generate them. I believe the same
problem happens for some of them, e.g. for maven-checkstyle-plugin [3] ,
doHeading() .

[1]
http://svn.apache.org/viewcvs.cgi/maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?view=markup
[2]
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java?view=markup
[3]
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java?view=markup

- Yann

2006/2/25, Alexandre Poitras <al...@gmail.com>:
>
> Hi,
>
> I am able to generate and customize my website quite elegantly but I
> still have a little annoying bug, ie. there is a <div class="section">
> outputted in the web site body content. What I find perticulary
> annoying is the tag isn't even closed but I need my web site to be
> XHTML strict compatible. I taught I could fix it by modifying the
> velocity template but the tags seems to come from the generated site
> content. In the mean, as a temporary fix, I putted a ending div tag in
> the velocity template straight after the generated body content but it
> isn't very elegant and practical.  Has anyone noticed the same problem
> and found a solution?
>
> By the way, does anyone know where I can edit the html generated by
> reports (like for the project-info reports)?
>
> Thank!
> --
> Alexandre Poitras
> Québec, Canada
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>