Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit788fee7

Browse files
committed
fix: override correct tag
When the template was made responsive, the choice was made to overridethe `body_tag` fragment.The `body_tag` block is a literal `<body>` which allows the theme developerto set properties on the `body` tag.See:sphinx-doc/sphinx#4140Instead, use the `document` block as documented.https://www.sphinx-doc.org/en/master/development/templating.html#blocksOverriding the correct block places the `mobile-nav` section _after_ themajority of the other HTML parts, which enables the correct function ofthe `/` keyboard shortcut.Resolves#130Closes#131Closes#135Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent44e62dd commit788fee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎python_docs_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h3>{{ _('Navigation') }}</h3>
8282
{{ super() }}
8383
{%- endblock -%}
8484

85-
{%- blockbody_tag %}
85+
{%- blockdocument %}
8686
{{ super() }}
8787
{%- if builder != 'htmlhelp' %}
8888
<divclass="mobile-nav">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp