Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in headers #6

Merged
merged 3 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This Sphinx extension fixes:
- an issue where drop down menus would still take up space after being minimized, and the patch fixes it through some css.
- an issue where in drop down code cells the shown summary remained lightgray instead of turning darkgrey. Fix through css.
- an issue where the size of code in a header is not the correct font size. Fix through css.

## Installation
To install the Sphinx-JupyterBook-Patches, follow these steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code {
font-size: inherit;
}
1 change: 1 addition & 0 deletions src/jupyterbook_patches/patches/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ def initialize(self, app):
logger.info("Initializing layout patch")
app.add_css_file(filename="fix_admonition_style.css")
app.add_css_file(filename="fix_dropdown_style.css")
app.add_css_file(filename="fix_code_header_style.css")
Loading