Skip to content

Commit baafff5

Browse files
authored
Merge branch 'executablebooks:main' into main
2 parents 37a3104 + a9e41c4 commit baafff5

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ repos:
2929
- id: black
3030

3131
- repo: https://github.com/PyCQA/flake8
32-
rev: 6.0.0
32+
rev: 6.1.0
3333
hooks:
3434
- id: flake8
3535
additional_dependencies: [flake8-bugbear~=22.7]
3636

3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v1.4.1
38+
rev: v1.5.1
3939
hooks:
4040
- id: mypy
4141
additional_dependencies: []

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Change Log
22

3-
## v0.4.0 - 2023-04-13
3+
## 0.5.0 - 2023-07-27
4+
5+
## What's Changed
6+
7+
* ⬆️ Drop Python 3.7 support, by [@chrisjsewell](https://github.com/chrisjsewell)) in [#146](https://github.com/executablebooks/sphinx-design/pull/146)
8+
* ⬆️ UPGRADE: sphinx>=5,<8, by [@chrisjsewell](https://github.com/chrisjsewell)) in [#148](https://github.com/executablebooks/sphinx-design/pull/148)
49

10+
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.4.1...v0.5.0>
11+
12+
## v0.4.0 - 2023-04-13
513

6-
([full changelog](https://github.com/executablebooks/sphinx-design/compare/v0.3.0...3d0db63f06a8f59a5ea1067e0f43782464eeff83))
14+
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.3.0...v0.4.0>
715

816
### Enhancements made
917

sphinx_design/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""A sphinx extension for designing beautiful, view size responsive web components."""
22
from typing import TYPE_CHECKING
33

4-
__version__ = "0.4.1"
4+
__version__ = "0.5.0"
55

66
if TYPE_CHECKING:
77
from sphinx.application import Sphinx

sphinx_design/compiled/sd_tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function ready() {
55
for (const label of li) {
66
syncId = label.getAttribute("data-sync-id");
77
if (syncId) {
8-
label.onclick = onLabelClick;
8+
label.onclick = onSDLabelClick;
99
if (!sd_labels_by_text[syncId]) {
1010
sd_labels_by_text[syncId] = [];
1111
}
@@ -14,7 +14,7 @@ function ready() {
1414
}
1515
}
1616

17-
function onLabelClick() {
17+
function onSDLabelClick() {
1818
// Activate other inputs with the same sync id.
1919
syncId = this.getAttribute("data-sync-id");
2020
for (label of sd_labels_by_text[syncId]) {

tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44

55
from docutils import nodes
66
import pytest
7-
from sphinx.testing.path import path as sphinx_path
7+
from sphinx import version_info
88
from sphinx.testing.util import SphinxTestApp
99

1010
from sphinx_design._compat import findall
1111

1212
pytest_plugins = "sphinx.testing.fixtures"
1313

14+
if version_info >= (7, 2):
15+
# see https://github.com/sphinx-doc/sphinx/pull/11526
16+
from pathlib import Path as sphinx_path
17+
else:
18+
from sphinx.testing.path import path as sphinx_path # type: ignore
19+
1420

1521
class SphinxBuilder:
1622
def __init__(self, app: SphinxTestApp, src_path: Path):

0 commit comments

Comments
 (0)