diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-13 00:17:43 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-13 00:17:43 +0000 |
| commit | 0c9d783b8014ca8a06c53cbec5477b11f7f7d5b2 (patch) | |
| tree | 28dff0c1e58b78702b8f01d7e87b888540b7ad17 /doc | |
| parent | a81787851f3fc7e500d6c79864e4f928ed7f5a25 (diff) | |
| download | sqlalchemy-0c9d783b8014ca8a06c53cbec5477b11f7f7d5b2.tar.gz | |
tweaks to get module functions links to work
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/components/pydoc.myt | 3 | ||||
| -rw-r--r-- | 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 b787ae74f..1425c5143 100644 --- a/doc/build/components/pydoc.myt +++ b/doc/build/components/pydoc.myt @@ -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: diff --git a/doc/build/gen_docstrings.py b/doc/build/gen_docstrings.py index 0e27beb98..0b63210e9 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) |
