is there a reason we can't just tie into the docbook to generate the help file so we can get the TOC and References?

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


[email protected] sent the following on 2/18/2011 12:31 AM:
Author: erwan
Date: Fri Feb 18 08:31:52 2011
New Revision: 1071917

URL: http://svn.apache.org/viewvc?rev=1071917&view=rev
Log:
Adding caution, important, note, tip, warning to docbook formatting 
possibilities. Those can be used inside a para element.

Modified:
     ofbiz/trunk/applications/content/template/HelpTemplate.ftl
     ofbiz/trunk/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml
     ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/help.css
     ofbiz/trunk/themes/bluelight/webapp/bluelight/help.css
     ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/help.css
     ofbiz/trunk/themes/flatgrey/webapp/flatgrey/help.css
     ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/help.css

Modified: ofbiz/trunk/applications/content/template/HelpTemplate.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/HelpTemplate.ftl?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/template/HelpTemplate.ftl (original)
+++ ofbiz/trunk/applications/content/template/HelpTemplate.ftl Fri Feb 18 
08:31:52 2011
@@ -34,6 +34,16 @@ under the License.
       <@itemizedlist node=child/>
      <#elseif child?node_type = 'element'&&  child?node_name = "mediaobject">
        <@mediaobject node=child/>
+<#elseif child?node_type = 'element'&&  child?node_name = "caution">
+<span class="caution">${child}</span>
+<#elseif child?node_type = 'element'&&  child?node_name = "important">
+<span class="important">${child}</span>
+<#elseif child?node_type = 'element'&&  child?node_name = "note">
+<span class="note">${child}</span>
+<#elseif child?node_type = 'element'&&  child?node_name = "tip">
+<span class="tip">${child}</span>
+<#elseif child?node_type = 'element'&&  child?node_name = "warning">
+<span class="warning">${child}</span>
      </#if>
    </#list>
  </#macro>

Modified: ofbiz/trunk/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml 
(original)
+++ ofbiz/trunk/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml Fri 
Feb 18 08:31:52 2011
@@ -46,4 +46,13 @@ under the License.
              <listitem><para>and this can go longer...</para></listitem>
          </itemizedlist>
      </section>
+
+<section>
+<title>Examples of text formatting</title>
+<para><caution>Here is a caution text</caution></para>
+<para><important>Here is an important text</important></para>
+<para><note>Here is a note</note></para>
+<para><tip>Here is a tip</tip></para>
+<para><warning>Here is a warning</warning></para>
+</section>
  </section>

Modified: ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/help.css
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/help.css?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/help.css (original)
+++ ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/css/help.css Fri Feb 18 
08:31:52 2011
@@ -42,4 +42,22 @@ ul.dots {
      padding-left: 20px;
  }

+span.caution{
+    color:yellow;
+}
+
+span.important {
+    color: #ff4500;
+}
+
+span.note {
+    color:#adff2f;
+}
+
+span.tip {
+    color:blue;
+}

+span.warning {
+    color:red;
+}

Modified: ofbiz/trunk/themes/bluelight/webapp/bluelight/help.css
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/webapp/bluelight/help.css?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/webapp/bluelight/help.css (original)
+++ ofbiz/trunk/themes/bluelight/webapp/bluelight/help.css Fri Feb 18 08:31:52 
2011
@@ -19,7 +19,7 @@ under the License.
  ***********************************************/
  body {
      background:none;
-    font-size=105%;
+    font-size:105%;
  }

  .left-border {
@@ -60,4 +60,22 @@ ul.dots {
      padding-left: 20px;
  }

+span.caution{
+    color:yellow;
+}
+
+span.important {
+    color: #ff4500;
+}
+
+span.note {
+    color:#adff2f;
+}
+
+span.tip {
+    color:blue;
+}

+span.warning {
+    color:red;
+}

Modified: ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/help.css
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/help.css?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/help.css 
(original)
+++ ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/css/help.css Fri 
Feb 18 08:31:52 2011
@@ -19,7 +19,7 @@ under the License.
  ***********************************************/
  body {
  background:none;
-font-size=105%;
+font-size:105%;
  }

  .left-border {
@@ -59,3 +59,23 @@ ul.dots {
  list-style: circle;
  padding-left: 20px;
  }
+
+span.caution{
+    color:yellow;
+}
+
+span.important {
+    color: #ff4500;
+}
+
+span.note {
+    color:#adff2f;
+}
+
+span.tip {
+    color:blue;
+}
+
+span.warning {
+    color:red;
+}
\ No newline at end of file

Modified: ofbiz/trunk/themes/flatgrey/webapp/flatgrey/help.css
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/flatgrey/webapp/flatgrey/help.css?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/themes/flatgrey/webapp/flatgrey/help.css (original)
+++ ofbiz/trunk/themes/flatgrey/webapp/flatgrey/help.css Fri Feb 18 08:31:52 
2011
@@ -19,3 +19,23 @@ under the License.
  ***********************************************/

  html, body {background:#fff}
+
+span.caution{
+    color:yellow;
+}
+
+span.important {
+    color: #ff4500;
+}
+
+span.note {
+    color:#adff2f;
+}
+
+span.tip {
+    color:blue;
+}
+
+span.warning {
+    color:red;
+}
\ No newline at end of file

Modified: ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/help.css
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/help.css?rev=1071917&r1=1071916&r2=1071917&view=diff
==============================================================================
--- ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/help.css (original)
+++ ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/help.css Fri Feb 18 
08:31:52 2011
@@ -19,7 +19,7 @@ under the License.
  ***********************************************/
  body {
  background:none;
-font-size=105%;
+font-size:105%;
  }

  p {
@@ -73,3 +73,23 @@ ul.dots {
  list-style: circle;
  padding-left: 20px;
  }
+
+span.caution{
+    color:yellow;
+}
+
+span.important {
+    color: #ff4500;
+}
+
+span.note {
+    color:#adff2f;
+}
+
+span.tip {
+    color:blue;
+}
+
+span.warning {
+    color:red;
+}
\ No newline at end of file




Reply via email to