You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2004/01/03 16:35:01 UTC

cvs commit: xml-forrest/src/core/fresh-site/src/documentation skinconf.xml

nicolaken    2004/01/03 07:35:01

  Modified:    src/core/context/resources/schema/relaxng skinconf.rnc
               src/core/fresh-site/src/documentation skinconf.xml
  Log:
        <action dev="NKB" type="add" context="skins">
          New "extra-css" tag in skinconf can contain css that is injected in
          forrest.css, added in the skins by default.
        </action>
        <action dev="NKB" type="add" context="skins">
          New section in skinconf about colors used by the site.
          Enabled for krysalis-site and tigris-style.
          If a needed color is not specified, the default one is used.
        </action>
  
  Revision  Changes    Path
  1.3       +6 -1      xml-forrest/src/core/context/resources/schema/relaxng/skinconf.rnc
  
  Index: skinconf.rnc
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/resources/schema/relaxng/skinconf.rnc,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- skinconf.rnc	28 Dec 2003 22:54:16 -0000	1.2
  +++ skinconf.rnc	3 Jan 2004 15:35:01 -0000	1.3
  @@ -30,6 +30,8 @@
               element vendor {text}?,                  # Used in Copyright
               trail?,                                  # 'Breadcrumbs' trail in skins that support it
               element toc {(attribute level {text}, attribute location {text})}?, # toc generation
  +            colors?,                                 # colors
  +            element extra-css {text}?,               # extra css to be included in the CSS output
               credits?
               )*
              }
  @@ -42,7 +44,10 @@
   
   link_attrs = (attribute name {text}, attribute href {text}?)  # Leave these attributes blank if you don't want a trail
   
  -
  +colors   =  element colors {
  +            element color {(attribute name {text}, attribute value {text})}* # each color
  +           }
  +           
   ## Credits are typically rendered as a set of small clickable images in the
   ## page footer 
   credits = element credits { credit* }
  
  
  
  1.6       +114 -1    xml-forrest/src/core/fresh-site/src/documentation/skinconf.xml
  
  Index: skinconf.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/fresh-site/src/documentation/skinconf.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- skinconf.xml	28 Dec 2003 22:54:16 -0000	1.5
  +++ skinconf.xml	3 Jan 2004 15:35:01 -0000	1.6
  @@ -12,7 +12,7 @@
     <!ELEMENT skinconfig (disable-lucene?, disable-search?, disable-print-link?, disable-pdf-link?,
     disable-xml-link?, disable-external-link-image?, disable-compliance-links?, obfuscate-mail-links?, searchsite-domain?, searchsite-name?,
     project-name, project-description?, project-url, project-logo, group-name?, group-description?, group-url?, group-logo?,
  -  host-url?, host-logo?, year?, vendor?, trail?, toc?, credits?)*>
  +  host-url?, host-logo?, year?, vendor?, trail?, toc?, colors?, extra-css?, credits?)*>
     <!ELEMENT credits (credit*)>
     <!ELEMENT credit (name, url, image?, width?, height?)>
     <!-- id uniquely identifies the tool, and role indicates its function -->
  @@ -32,12 +32,18 @@
     <!ELEMENT project-description (#PCDATA)>
     <!ELEMENT project-url (#PCDATA)>
     <!ELEMENT project-logo (#PCDATA)>
  +  <!ATTLIST project-logo width CDATA #IMPLIED 
  +                         height CDATA #IMPLIED>
     <!ELEMENT group-name (#PCDATA)>
     <!ELEMENT group-description (#PCDATA)>
     <!ELEMENT group-url (#PCDATA)>
     <!ELEMENT group-logo (#PCDATA)>
  +  <!ATTLIST group-logo width CDATA #IMPLIED 
  +                       height CDATA #IMPLIED>
     <!ELEMENT host-url (#PCDATA)>
     <!ELEMENT host-logo (#PCDATA)>
  +  <!ATTLIST host-logo width CDATA #IMPLIED 
  +                      height CDATA #IMPLIED>
     <!ELEMENT year (#PCDATA)>
     <!ELEMENT vendor (#PCDATA)>
     <!ELEMENT trail (link1, link2, link3)>
  @@ -55,6 +61,11 @@
     <!ELEMENT height (#PCDATA)>
     <!ELEMENT toc EMPTY>
     <!ATTLIST toc level CDATA #IMPLIED location CDATA #IMPLIED>
  +  <!ELEMENT colors (color*)>
  +  <!ELEMENT color EMPTY>
  +  <!ATTLIST color name CDATA #REQUIRED 
  +                  value CDATA #REQUIRED>
  +  <!ELEMENT extra-css (#PCDATA)>
     ]>
   
   <skinconfig>
  @@ -132,6 +143,108 @@
     Where to show the TOC.
     -->
     <toc level="2" location="page"/>
  +
  +  <colors>
  +  
  +  <!-- Krysalis -->
  +  <!--
  +    <color name="header"    value="#FFFFFF"/>
  +
  +    <color name="tab-selected" value="#a5b6c6"/>
  +    <color name="tab-unselected" value="#F7F7F7"/>
  +    <color name="subtab-selected" value="#a5b6c6"/>
  +    <color name="subtab-unselected" value="#a5b6c6"/>
  +
  +    <color name="heading" value="#a5b6c6"/>
  +    <color name="subheading" value="#CFDCED"/>
  +        
  +    <color name="navstrip" value="#CFDCED"/>
  +    <color name="toolbox" value="#a5b6c6"/>
  +    
  +    <color name="menu" value="#F7F7F7"/>    
  +    <color name="dialog" value="#F7F7F7"/>
  +            
  +    <color name="body"      value="#ffffff"/>
  +    
  +    <color name="table" value="#a5b6c6"/>    
  +    <color name="table-cell" value="#ffffff"/>    
  +    <color name="highlight" value="#yellow"/>
  +    <color name="fixme" value="#c60"/>
  +    <color name="note" value="#069"/>
  +    <color name="warning" value="#900"/>
  +    <color name="code" value="#a5b6c6"/>
  +        
  +    <color name="footer" value="#a5b6c6"/>
  +   --> 
  +  
  +  <!-- Forrest -->
  +  <!--
  +    <color name="header"    value="#294563"/>
  +
  +    <color name="tab-selected" value="#4a6d8c"/>
  +    <color name="tab-unselected" value="#b5c7e7"/>
  +    <color name="subtab-selected" value="#4a6d8c"/>
  +    <color name="subtab-unselected" value="#4a6d8c"/>
  +
  +    <color name="heading" value="#294563"/>
  +    <color name="subheading" value="#4a6d8c"/>
  +        
  +    <color name="navstrip" value="#cedfef"/>
  +    <color name="toolbox" value="#294563"/>
  +    
  +    <color name="menu" value="#4a6d8c"/>    
  +    <color name="dialog" value="#4a6d8c"/>
  +            
  +    <color name="body"      value="#ffffff"/>
  +    
  +    <color name="table" value="#7099C5"/>    
  +    <color name="table-cell" value="#f0f0ff"/>    
  +    <color name="highlight" value="#yellow"/>
  +    <color name="fixme" value="#c60"/>
  +    <color name="note" value="#069"/>
  +    <color name="warning" value="#900"/>
  +    <color name="code" value="#CFDCED"/>
  +        
  +    <color name="footer" value="#cedfef"/>
  +  -->  
  +
  +  <!-- Collabnet --> 
  +  <!--
  +    <color name="header"    value="#036"/>
  +
  +    <color name="tab-selected" value="#ddd"/>
  +    <color name="tab-unselected" value="#999"/>
  +    <color name="subtab-selected" value="#ccc"/>
  +    <color name="subtab-unselected" value="#ccc"/>
  +
  +    <color name="heading" value="#036"/>
  +    <color name="subheading" value="#888"/>
  +    
  +    <color name="navstrip" value="#ddd"/>
  +    <color name="toolbox" value="#ddd"/>
  +    
  +    <color name="menu" value="#ffffff"/>    
  +    <color name="dialog" value="#eeeeee"/>
  +            
  +    <color name="body"      value="#ffffff"/>
  +    
  +    <color name="table" value="#ccc"/>    
  +    <color name="table-cell" value="#ffffff"/>   
  +    <color name="highlight" value="#yellow"/>
  +    <color name="fixme" value="#c60"/>
  +    <color name="note" value="#069"/>
  +    <color name="warning" value="#900"/>
  +    <color name="code" value="#036"/>
  +        
  +    <color name="footer" value="#ffffff"/>
  +   -->
  +  
  +
  +
  +  </colors>
  +  
  +  <extra-css>
  +  </extra-css>
   
     <!-- Credits are typically rendered as a set of small clickable images in the
     page footer -->