> 
> On Sun, 2005-10-30 at 23:57 +0100, Arnaud HERITIER wrote:
> > > 
> > > On Thu, 2005-10-27 at 18:33 -0700, Brett Porter wrote:
> > > > Hey, great job on the new sites for subprojects and the new
> > > continuum
> > > > logo everyone!
> > > > 
> > > > I just noticed that the links on the m1 site don't match
> > > the others -
> > > > can we sort that out.
> > > 
> > > I think Arnaud and I can sort that out. I will let 
> someone else deal 
> > > with the m1 site and could use some help there.
> > 
> > I'll fix them ASAP manually.
> > But I'm interested to find a solution with Jason to avoid 
> to copy links and menu items ...
> 
> Maybe overall we can either use the same format of the site 
> descriptor and maybe be able to inherit a parent site 
> descriptor in the same way the POM does. Or maybe integrate 
> the idea of the site map and do it that way. Or we can try to 
> wrap the m2 site generation stuff in a Jelly for use in m1.
>

I think that the process to integrate m2 site generation stuff in m1 will be 
too long (except if someone else want to work on it).
I'm not sure that we could use an inheritence mechanism because we want to 
customize it for each site. How to say where we want to
add links, ...

A templating mechanism could be a good solution. It will allow us to extend a 
given navigation for each site. Commons parts that we
want to share (menu items and links) have the same format in m1 
(navigation.xml) and in m2 (site.xml).

We could have something like :
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven">
#Begin Header
== Editable
#End
  <body>
    <links>
      <item name="Apache" href="http://www.apache.org/"/>
      <item name="Maven 1.x" href="http://maven.apache.org/maven-1.x"/>
      <item name="Maven 2.x" href="http://maven.apache.org/"/>
      <item name="Continuum" href="http://maven.apache.org/continuum"/>
      <item name="SCM" href="http://maven.apache.org/scm"/>
      <item name="Wagon" href="http://maven.apache.org/wagon"/>
      <item name="JXR" href="http://maven.apache.org/jxr"/>
#Begin Links
== Editable
#End    
    </links>

    <menu name="Maven">
<!--
Some commons links
-->
    </menu>

#Begin Menu
== Editable
#End
  </body>
</project>

But where could we share this sort of template ?

How to do this template ? Velocity ?

Arnaud






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to