You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alex Schwartz <al...@schwartzonline.de> on 2006/08/16 20:30:07 UTC

[m2] Maven site and powered by

I would like to add some more "powered by" icons to the generated site.
The maven 1.x site plugin supported multiple <powered-by> elements in the
navigation.xml. 
Is there a similar feature for m2, or do I have to patch the templates?


--Alex
-- 
View this message in context: http://www.nabble.com/-m2--Maven-site-and-powered-by-tf2117008.html#a5837914
Sent from the Maven - Users forum at Nabble.com.


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


Re: [m2] Maven site and powered by

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/17/06, Alex Schwartz <al...@schwartzonline.de> wrote:

> Ok, I figured it out myself. I took a look in the doxia source ... and found
> it in doxia-decorator-model.
> There is a tag <poweredBy> which can be placed in the site.xml nested in the
> top-level node.
> A <poweredBy> element can contains at least one <logo> element.

Interesting!  It almost works.  I tried using it to add the ApacheCon
logo to a site, but maven-base.css forces the image size to 90x30.  I
wonder if that can be overridden in site.xml...

-- 
Wendy

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


Re: [m2] Maven site and powered by

Posted by Alex Schwartz <al...@schwartzonline.de>.


Alex Schwartz wrote:
> 
> I would like to add some more "powered by" icons to the generated site.
> The maven 1.x site plugin supported multiple <powered-by> elements in the
> navigation.xml. 
> Is there a similar feature for m2, or do I have to patch the templates?
> 
> 
> --Alex
> 

Ok, I figured it out myself. I took a look in the doxia source ... and found
it in doxia-decorator-model.
There is a tag <poweredBy> which can be placed in the site.xml nested in the
top-level node.
A <poweredBy> element can contains at least one <logo> element.

Here is my site.xml using the poweredBy feature.



> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="jGABL">
> 
>     <bannerLeft>
>         <name>jGABL2</name>
>         <href>http://jgabl.sourceforge.net</href>
>         <src>http://jgabl.sourceforge.net/images/logo_jgabl2.jpg</src>
>     </bannerLeft>
> 
>     <skin>
>         <groupId>org.apache.maven.skins</groupId>
>         <artifactId>maven-stylus-skin</artifactId>
>         <version>1.0</version>
>     </skin>
> 
>     <publishDate position="bottom" format="yyyy-MM-dd HH:mm"/>
> 
>     <poweredBy>
>         <logo
>           name="Code Coverage by Clover"
>           href="http://www.cenqua.com/clover/"
>           img="http://www.cenqua.com/images/clovered1.gif"/>
>         <logo
>            name="Hosted on SourceForge.net"
>            href="http://sourceforge.net"
>           
> img="http://sflogo.sourceforge.net/sflogo.php?group_id=102411&amp;type=2"/>
>         <logo
>            name="Build with Maven 2"
>            href="http://maven.apache.org"
>            img="images/logos/maven-feather.png"/>
>     </poweredBy>
> 
> 
>     <body>
>         <head>
>             <meta name="faq" content="jGABL2"/>
>         </head>
> 
>         <breadcrumbs>
>             <item name="sf.net" href="http://sourceforge.net"/>
>         </breadcrumbs>
> 
>         <links>
>             <item name="SourceForge project page"
>                 href="http://sourceforge.net/projects/jgabl/"/>
>         </links>
> 
>         <menu name="Documentation">
>             <item name="Overview" href="index.html"/>
>             <item name="Downloads"
>                   
> href="http://sourceforge.net/project/showfiles.php?group_id=102411&lt;package_id=186007"/>
>         </menu>
>         <menu ref="reports"/>
> 
>     </body>
> 
> </project>
> 

-- Alex


-- 
View this message in context: http://www.nabble.com/-m2--Maven-site-and-powered-by-tf2117008.html#a5859878
Sent from the Maven - Users forum at Nabble.com.


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