Update of /cvsroot/happydoc/HappyDoc3/happydoclib/docset/docset_TAL/templates/default
In directory sc8-pr-cvs1:/tmp/cvs-serv15651/happydoclib/docset/docset_TAL/templates/default
Modified Files:
toc.pt
Log Message:
Only spit out each section header if there is going to be something in
the section.
Include the python module information for the __init__.py file in the
current directory, if there is one.
Index: toc.pt
===================================================================
RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/docset/docset_TAL/templates/default/toc.pt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** toc.pt 16 Mar 2003 20:33:57 -0000 1.2
--- toc.pt 16 Mar 2003 23:44:44 -0000 1.3
***************
*** 15,18 ****
--- 15,19 ----
python_files python: docset.getPythonSubNodes(node);
subdirectories python: node.getSubNodes(['application/x-directory']);
+ current_module python: node.get('__init__.py', nothing);
">
***************
*** 21,86 ****
<div tal:replace="structure description">Description</div>
! <hr>
!
! <tal:block tal:condition="other_documentation|nothing">
! <h2>Other Documentation</h2>
! <table class="descriptive_list">
!
! <tr tal:repeat="subnode other_documentation">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Plain Text File Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
!
! </table>
! </tal:block>
! <tal:block tal:condition="python_files|nothing">
! <h2>Python Files</h2>
! <table class="descriptive_list">
!
! <tr tal:repeat="subnode python_files">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Python File Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
! </table>
! </tal:block>
! <tal:block tal:condition="subdirectories|nothing">
! <h2>Subdirectories</h2>
! <table class="descriptive_list">
!
! <tr tal:repeat="subnode subdirectories">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Directory Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
! </table>
! </tal:block>
!
</body>
--- 22,91 ----
<div tal:replace="structure description">Description</div>
! <tal:block tal:condition="current_module">
! <div
! metal:use-macro="templates/python_macros.pt/macros/python_module">
! </div>
! </tal:block>
! <tal:block tal:condition="other_documentation|nothing">
! <h2>Other Documentation</h2>
! <table class="descriptive_list">
! <tr tal:repeat="subnode other_documentation">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Plain Text File Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
! </table>
! </tal:block>
!
! <tal:block tal:condition="python_files|nothing">
! <h2>Python Files</h2>
!
! <table class="descriptive_list">
!
! <tr tal:repeat="subnode python_files">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Python File Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
!
! </table>
! </tal:block>
!
! <tal:block tal:condition="subdirectories|nothing">
! <h2>Subdirectories</h2>
! <table class="descriptive_list">
! <tr tal:repeat="subnode subdirectories">
! <td><a href=""
! tal:attributes="href python: docset.getHREFToNode(node, subnode)"
! tal:content="subnode/getName">
! Directory Name
! </a>
! </td>
! <td tal:content="structure subnode/getOneLiner">
! One line description
! </td>
! </tr>
! </table>
! </tal:block>
!
</body>
|