From: Mike Bayer Date: Mon, 13 Nov 2006 00:17:43 +0000 (+0000) Subject: tweaks to get module functions links to work X-Git-Tag: rel_0_3_1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c9d783b8014ca8a06c53cbec5477b11f7f7d5b2;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git tweaks to get module functions links to work --- diff --git a/doc/build/components/pydoc.myt b/doc/build/components/pydoc.myt index b787ae74f8..1425c5143f 100644 --- a/doc/build/components/pydoc.myt +++ b/doc/build/components/pydoc.myt @@ -25,14 +25,15 @@ else: <&|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: diff --git a/doc/build/gen_docstrings.py b/doc/build/gen_docstrings.py index 0e27beb980..0b63210e9f 100644 --- a/doc/build/gen_docstrings.py +++ b/doc/build/gen_docstrings.py @@ -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)