Skip to content

Commit

Permalink
Prepare release 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Jun 26, 2024
1 parent adfaf33 commit 795722a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
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.3.4] - 2024-06-26

- Fix in `js/src/tocresize.py` to avoid setting the height of the sidebars when they are not part of the grid.

## [0.3.3] - 2024-04-30

- Fix issue in `pygments.py` when building Sphinx docs with the theme.
Expand Down
2 changes: 1 addition & 1 deletion js/src/tocresize.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function resizeAsides() {
const nftt_toc = document.querySelector(".nftt-toc");

// If min-width is not >= 992px, don't do anything.
if (window.matchMedia('(min-width: 992px)').matches == false) {
if (window.matchMedia('(min-width: 1200px)').matches == false) {
nftt_sidebar?.setAttribute("style", "");
nftt_toc?.setAttribute("style", "");
return "";
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.3.3",
"version": "0.3.4",
"private": true,
"description": "Nefertiti is a theme for the Sphinx Documentation Generator.",
"engines": {
Expand Down
7 changes: 4 additions & 3 deletions scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ body {
}

@include media-breakpoint-down(lg) {
display: grid;
grid-template-areas:
"toc"
"content";
grid-template-rows: 1fr auto;
grid-template-columns: none;
grid-template-columns: 100%;
max-width: 892px;
margin-inline: auto;
}
Expand Down Expand Up @@ -118,8 +119,8 @@ body {
font-size: var(--#{$prefix}documentation-font-size);

@include media-breakpoint-down(xl) {
padding-right: 2rem;
padding-left: 2rem;
padding-right: 1rem;
padding-left: 1rem;
}

h1,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setup(
name="sphinx-nefertiti",
version="0.3.3",
version="0.3.4",
packages=find_packages(),
include_package_data=True,
license="MIT",
Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_CURRENT_VERSION = (0, 3, 2, "f", 0) # following PEP 440
_CURRENT_VERSION = (0, 3, 4, "f", 0) # following PEP 440


def get_version():
Expand Down

0 comments on commit 795722a

Please sign in to comment.