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

Fix: use of style_header_neutral in templates #48

Merged
merged 1 commit into from
Dec 2, 2024
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
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [0.7.1] - 2024-12-02

- Fix issue about the use of `style_header_neutral` in the `layout.html` and the `colorsets-dropdown.html` templates.

## [0.7.0] - 2024-12-02

- New: Theme option `style_header_neutral` (boolean) to integrate header background color with light/dark color-schemes. Update docs and tests accordingly.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sphinx-nefertiti",
"version": "0.7.0",
"version": "0.7.1",
"private": true,
"description": "Nefertiti is a theme for the Sphinx Documentation Generator.",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from sphinx_nefertiti import colorsets, docsver, fonts, links, pygments

__version__ = "0.7.0"
__version__ = "0.7.1"

pages_wo_index = ["genindex", "search"]

Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets-dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h6 class="dropdown-header">{{ _('Change color set') }}</h6>
<h6 class="dropdown-header">{{ _('Neutral header') }}</h6>
</li>
<li>
<a class="dropdown-item d-flex align-items-center {% if theme_style_header_neutral %}active current{% endif %}" data-snftt-colorset-neutral="{% if theme_style_header_neutral %}on{% else %}off{% endif %}" href="#" aria-pressed="false">
<a class="dropdown-item d-flex align-items-center {% if theme_style_header_neutral is true %}active current{% endif %}" data-snftt-colorset-neutral="{% if theme_style_header_neutral is true %}on{% else %}off{% endif %}" href="#" aria-pressed="false">
<i class="bi bi-noise-reduction"></i>
<span class="ms-3">{{ _('Neutral') }}</span>
<i class="bi bi-check ms-auto"></i>
Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<div id="back-to-top-container" class="position-fixed start-50 translate-middle-x">
<button id="back-to-top" type="button" class="d-none btn btn-neutral btn-sm shadow px-4" data-bs-toggle="button">Back to top</button>
</div>
<header id="snftt-nav-bar" class="navbar navbar-expand-xl {% if theme_style_header_neutral %}neutral{% else %}navbar-dark{% endif %} nftt-navbar flex-column fixed-top">
<header id="snftt-nav-bar" class="navbar navbar-expand-xl {% if theme_style_header_neutral is true %}neutral{% else %}navbar-dark{% endif %} nftt-navbar flex-column fixed-top">
<div class="skip-links container-fluid visually-hidden-focusable overflow-hidden justify-content-start flex-grow-1">
<div class="border-bottom mb-2 pb-2 w-100">
<a class="d-none d-md-inline-flex p-2 m-1" href="#sidebar-filter">{{ _('Skip to docs navigation') }}</a>
Expand Down