summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/components/pydoc.myt3
-rw-r--r--doc/build/gen_docstrings.py5
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)