Skip to content

Commit

Permalink
HTML: Move "Expand source" and "Browse git" links above docstring text
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Dec 13, 2024
1 parent c606654 commit b7f7f6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdoc/templates/html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
% endif
</p>
% endif
<div class="desc${inherits}">${docstring | to_html}</div>
% if not isinstance(d, pdoc.Module):
${show_source(d)}
% endif
<div class="desc${inherits}">${docstring | to_html}</div>
</%def>

<%def name="show_module_list(modules)">
Expand Down Expand Up @@ -136,7 +136,6 @@
<section id="section-intro">
${module.docstring | to_html}
${show_source(module)}
</section>
<section>
Expand Down

0 comments on commit b7f7f6a

Please sign in to comment.