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

Use correct block, enable built-in slash keypress#141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 2 commits intopython:mainfrommiketheman:miketheman/layout
Jul 29, 2023

Conversation

miketheman
Copy link
Member

Includes a commit removing a duplicate block.

When the template was made responsive, the choice was made to override
thebody_tag fragment.
Thebody_tag block is a literal<body> which allows the theme developer
to set properties on thebody tag.
See:sphinx-doc/sphinx#4140

Instead, use thedocument block as documented.
https://www.sphinx-doc.org/en/master/development/templating.html#blocks

Overriding the correct block places themobile-nav sectionafter the
majority of the other HTML parts, which enables the correct function of
the/ keyboard shortcut.

Resolves#130
Closes#131
Closes#135

The CSS in the base template was updated to include this directive in #7695and released in sphinx v3.1.0.The original implementation was inpython#46, prior to the basic themeincluding it, and now we have the same meta tag duplicated.Remove the block, and reduce the duplication.Signed-off-by: Mike Fiedler <miketheman@gmail.com>
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.Resolvespython#130Closespython#131Closespython#135Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@mikethemanmiketheman mentioned this pull requestJul 27, 2023
@miketheman
Copy link
MemberAuthor

@hugovk I think this one is the thing we want!

@hugovk
Copy link
Member

Thanks!

Preview:https://python-docs-theme-previews--141.org.readthedocs.build/en/141/

With this, slash highlights the search box in the top right in desktop view:

image

But not the one in mobile view:

image

Which is the more useful way around.

miketheman reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Focus search box when pressing slash
2 participants
@miketheman@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp