You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Guo, Jiaqi" <ji...@gmail.com> on 2005/02/18 17:26:43 UTC

Create report containing multiple pages?

Hi,

My maven plugin contains several reports and I declare reports in 
plugin.jelly like
    ......
    <goal name="maven-myplugin-plugin:register">
        <doc:registerReport name="Report 1" 
pluginName="maven-myplugin-plugin" link="myplugin/report1/index" 
description="Report 1"/>
        <doc:registerReport name="Report 2" 
pluginName="maven-myplugin-plugin" link="myplugin/report2/index" 
description="Report 2"/>
    </goal>
    ......
This will add two entries in project-nav.xml.
..
<item name="Report1" href="/myplugin/report1/index.html"/>
<item name="Report2" href="/myplugin/report2/index.html"/>
..

Now, one of the report will contain many other pages and I want to add 
those pages into navigation as well. I want to generate project-nav.xml like

...
<item name="Report1" href="/myplugin/report1/index.html" collapse="true">
    <item name="Page1" href="/myplugin/report1/page1.html"/>
    <item name="Page2" href="/myplugin/report1/page2.html" collapse="true">
         <item name="Page3" href="/myplugin/report1/page3.html"/>
        ......
    </item>
    ...
</item>
<item name="Report2" href="/myplugin/report2/index.html"/>
..

The structure of each pages can be created dynamically in plugin.jelly.

Is it possible? How to do it?



Thanks
Jiaqi

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