]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
tweaks to get module functions links to work
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Nov 2006 00:17:43 +0000 (00:17 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Nov 2006 00:17:43 +0000 (00:17 +0000)
doc/build/components/pydoc.myt
doc/build/gen_docstrings.py

index b787ae74f84e486855ae6b6edb3952605994d2f6..1425c5143f7e3f7a7863b615a5e20119d014d4bf 100644 (file)
@@ -25,14 +25,15 @@ else:
 </%init>
 
 <&|formatting.myt:section, toc=toc, path=obj.toc_path, description=htmldescription &>
-
 <&|formatting.myt:formatplain&><% obj.doc %></&>
 
 % if not obj.isclass and obj.functions:
 
+<&|formatting.myt:section, toc=toc, path=obj.mod_path &>
 %   for func in obj.functions:
     <& SELF:function_doc, func=func &>
 %
+</&>
 
 % else:
 
index 0e27beb980e399e39e93355d93d4c25ecc14d2fc..0b63210e9fedfdc8cae578fa641390d50fb7d99e 100644 (file)
@@ -57,8 +57,9 @@ def create_docstring_toc(data, root):
         obj.toc_path = toc.path
 
         if not obj.isclass and obj.functions:
-            TOCElement("docstrings", name="modfunc", description="Module Functions", parent=toc)
-
+            functoc = TOCElement("docstrings", name="modfunc", description="Module Functions", parent=toc)
+            obj.mod_path = functoc.path
+            
         if obj.classes:
             for class_ in obj.classes:
                 create_obj_toc(class_, toc)