bwalding    2003/04/05 03:23:06

  Modified:    src/plugins-build/xdoc/xdocs index.xml
               src/plugins-build/xdoc/src/plugin-resources site.jsl
  Log:
  Applied concept of project.css as listed in bug system.
  PR: MAVEN-370
  Submitted by: Jose Gonzale Gomez
  
  Revision  Changes    Path
  1.4       +7 -0      maven/src/plugins-build/xdoc/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/xdoc/xdocs/index.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- index.xml 26 Feb 2003 20:35:59 -0000      1.3
  +++ index.xml 5 Apr 2003 11:23:05 -0000       1.4
  @@ -50,6 +50,13 @@
           <code>maven.docs.src</code> directory (<code>xdocs</code> by
           default) to the final generated site.
         </p>
  +      
  +      <p>
  +        If you create a <code>style/project.css</code> stylesheet under 
<code>maven.docs.src</code>,
  +        it will be copied to the resulting document tree and imported into each 
page (via 
  +        <code>@import</code>.  This allows you to easily add and modify 
  +        the styles that are provided by Maven.
  +      </p>
       </section>
    </body>
   </document>
  
  
  
  1.17      +11 -4     maven/src/plugins-build/xdoc/src/plugin-resources/site.jsl
  
  Index: site.jsl
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/xdoc/src/plugin-resources/site.jsl,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- site.jsl  2 Apr 2003 12:29:24 -0000       1.16
  +++ site.jsl  5 Apr 2003 11:23:05 -0000       1.17
  @@ -39,12 +39,19 @@
           <x:if select="not($nav/title)">
             <title>${pom.name} - ${docTitle}</title>
           </x:if>
  -        <j:set var="tigrisCss" value='"${relativePath}/style/tigris.css"'/>
  -        <j:set var="mavenCss" value='"${relativePath}/style/maven.css"'/>
  +        
           <style type="text/css"><![CDATA[
  -          @import url(${tigrisCss});
  -          @import url(${mavenCss});
  +          @import url("${relativePath}/style/tigris.css");
  +          @import url("${relativePath}/style/maven.css");
           ]]></style>
  +        
  +        <util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/>
  +        <j:if test="${projectCssFile.exists()}">
  +          <style type="text/css"><![CDATA[
  +            @import url("${relativePath}/style/project.css");
  +          ]]></style>
  +        </j:if>
  +        
           <!-- FIXME: once someone works out how to stop this breaking
           <x:element name="script"><x:attribute 
name="type">text/javascript</x:attribute>
             if (document.layers) {
  
  
  

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

Reply via email to