From 0c9d783b8014ca8a06c53cbec5477b11f7f7d5b2 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 13 Nov 2006 00:17:43 +0000 Subject: [PATCH] tweaks to get module functions links to work --- doc/build/components/pydoc.myt | 3 ++- doc/build/gen_docstrings.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) -- 2.47.2