Skip to content

Commit

Permalink
Fix highligting of foldable TOC item (#35)
Browse files Browse the repository at this point in the history
* Fix highligting of foldable TOC item
* Update actions/checkout and cache to v4
  • Loading branch information
danirus authored Aug 2, 2024
1 parent 596dd6b commit 1f44ff0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
Expand Down
7 changes: 6 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Change Log

## [0.3.7] - 2024-08-02

- Fix highlighting foldable items in the left-side TOC when they are the current selected item.
- Update actions in `publish.yml` GH action workflow.

## [0.3.6] - 2024-08-02

- Small fix: include missing non-python files in the package.

## [0.3.5] - 2024-08-02

- Provide better for version-change directives (`versionadded`, `versionchanged`, `deprecated`, and `versionremoved`) when they only get a version number and no optional explanatory text.
- Provide better support for version-change directives (`versionadded`, `versionchanged`, `deprecated`, and `versionremoved`) when they only get a version number and no optional explanatory text.
- Increment the font size for monospace font to match normal font.

## [0.3.4] - 2024-06-26
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.6",
"version": "0.3.7",
"private": true,
"description": "Nefertiti is a theme for the Sphinx Documentation Generator.",
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions scss/components/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@

> a {
padding-left: 2.1rem;

&.current {
color: var(--#{$prefix}body-color);
text-decoration: none;
background-color: var(--#{$prefix}foot2-bg);
}
}
}
}
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.6",
version="0.3.7",
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, 6, "f", 0) # following PEP 440
_CURRENT_VERSION = (0, 3, 7, "f", 0) # following PEP 440


def get_version():
Expand Down

0 comments on commit 1f44ff0

Please sign in to comment.