Skip to content

Commit b7f7f6a

Browse files
committedDec 13, 2024··
HTML: Move "Expand source" and "Browse git" links above docstring text
1 parent c606654 commit b7f7f6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎pdoc/templates/html.mako

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
% endif
6464
</p>
6565
% endif
66-
<div class="desc${inherits}">${docstring | to_html}</div>
6766
% if not isinstance(d, pdoc.Module):
6867
${show_source(d)}
6968
% endif
69+
<div class="desc${inherits}">${docstring | to_html}</div>
7070
</%def>
7171

7272
<%def name="show_module_list(modules)">
@@ -136,7 +136,6 @@
136136
137137
<section id="section-intro">
138138
${module.docstring | to_html}
139-
${show_source(module)}
140139
</section>
141140
142141
<section>

0 commit comments

Comments
 (0)
Please sign in to comment.