diff --git a/applications/content/template/HelpTemplate.ftl b/applications/content/template/HelpTemplate.ftl index cdbefe9840..e77fc64dad 100644 --- a/applications/content/template/HelpTemplate.ftl +++ b/applications/content/template/HelpTemplate.ftl @@ -22,17 +22,18 @@ specific language governing permissions and limitations under the License. --> -<#macro para para> -

- <#list para?children as child> +<#macro text text> + <#list text?children as child> <#if child?node_type = "text"> - ${child} + ${child} <#elseif child?node_type = 'element' && child?node_name = "link"> - ${child} + ${child} + <#elseif child?node_type = 'element' && child?node_name = "orderedlist"> + <@orderedlist node=child/> + <#elseif child?node_type = 'element' && child?node_name = "itemizedlist"> + <@itemizedlist node=child/> -

-

<#macro section inSection first="no"> @@ -41,15 +42,42 @@ under the License. <#if first = "yes">

${subSection}

<#else> -

${subSection}

+

${subSection}

<#elseif subSection?node_name = "para"> - <@para para=subSection/> +

<@para para=subSection/>

<#elseif subSection?node_name = "section"> <@section inSection=subSection/> + <#elseif subSection?node_name = "orderedlist"> + <@orderedlist node=subSection/> + <#elseif subSection?node_name = "itemizedlist"> + <@itemizedlist node=subSection/> -

+ + +<#macro listItems node> + <#list node?children as item> + <#if item?node_type = "element" && item?node_name = "listitem"> + <#list item.* as subpara> +
  • <@para para=subpara/>
  • + + + + + +<#macro orderedlist node> +
      <@listItems node=node/>
    + + +<#macro itemizedlist node> + + + + + +<#macro para para> + <@text text=para/>
    diff --git a/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml b/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml new file mode 100644 index 0000000000..a15461dff4 --- /dev/null +++ b/framework/example/data/helpdata/HELP_EXAMPLE_docbook.xml @@ -0,0 +1,49 @@ + + +
    + + Help on writing docBook documents +
    + Example of an ordered list + The orderedlist will put numbers in front of each item. + + First item of my list + Second item + Third... + 4th... + and this can go longer... + +
    +
    + Example of an itemized list + The itemizedlist will put a bullet in front of each item. + + First item of my list + Second item + Third... + 4th... + and this can go longer... + +
    +
    diff --git a/themes/bizznesstime/webapp/bizznesstime/css/help.css b/themes/bizznesstime/webapp/bizznesstime/css/help.css index 171dcdaca6..344c3c4dc2 100644 --- a/themes/bizznesstime/webapp/bizznesstime/css/help.css +++ b/themes/bizznesstime/webapp/bizznesstime/css/help.css @@ -33,3 +33,14 @@ body { float:none; min-height:25em; } + +ol.numbers { + list-style: decimal; + padding-left: 20px; +} +ul.dots { + list-style: circle; + padding-left: 20px; +} + + diff --git a/themes/bluelight/webapp/bluelight/help.css b/themes/bluelight/webapp/bluelight/help.css index b54b8db44f..61fdb2dc25 100644 --- a/themes/bluelight/webapp/bluelight/help.css +++ b/themes/bluelight/webapp/bluelight/help.css @@ -49,3 +49,15 @@ border: none; #content-main-section .h1 { display: block; } + + +ol.numbers { + list-style: decimal; + padding-left: 20px; +} +ul.dots { + list-style: circle; + padding-left: 20px; +} + + diff --git a/themes/flatgrey/webapp/flatgrey/maincss.css b/themes/flatgrey/webapp/flatgrey/maincss.css index 0363a70c45..f9ec85f284 100644 --- a/themes/flatgrey/webapp/flatgrey/maincss.css +++ b/themes/flatgrey/webapp/flatgrey/maincss.css @@ -63,6 +63,15 @@ ol, ul { list-style: none; } +ol.numbers { + list-style: decimal; + padding-left: 20px; +} +ul.dots { + list-style: circle; + padding-left: 20px; +} + /* ===== Basic Element Styles ===== */ a, a:visited {