You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+127-29
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,112 @@
1
1
# Change Log
2
2
3
-
## 0.5.0 - 2023-07-27
3
+
## 0.6.0 - 2024-05-23
4
+
5
+
### Dependencies
6
+
7
+
* ⬆️ Python v3.9-3.12 by {user}`chrisjsewell` in {pr}`186`
8
+
* ⬆️ Octicon icons to v19.8.0 by {user}`ffvpor` in {pr}`171`
9
+
10
+
### New
11
+
12
+
#### ✨ Create custom directives
13
+
14
+
You can use the `sd_custom_directives` configuration option in your `conf.py` to add custom directives, with default option values:
15
+
16
+
```python
17
+
sd_custom_directives = {
18
+
"dropdown-syntax": {
19
+
"inherit": "dropdown",
20
+
"argument": "Syntax",
21
+
"options": {
22
+
"color": "primary",
23
+
"icon": "code",
24
+
},
25
+
}
26
+
}
27
+
```
28
+
29
+
The key is the new directive name to add, and the value is a dictionary with the following keys:
30
+
31
+
-`inherit`: The directive to inherit from (e.g. `dropdown`)
32
+
-`argument`: The default argument (optional, only for directives that take a single argument)
33
+
-`options`: A dictionary of default options for the directive (optional)
34
+
35
+
by {user}`chrisjsewell` in {pr}`194`
36
+
37
+
#### ✨ sync tabs by URL query parameters
38
+
39
+
Synchronised tabs can now be selected by adding a query parameter to the URL, for that sync-group, such as `?code=python` for
40
+
41
+
```restructuredtext
42
+
.. tab-set-code::
43
+
44
+
.. literalinclude:: snippet.py
45
+
:language: python
46
+
47
+
.. literalinclude:: snippet.js
48
+
:language: javascript
49
+
```
50
+
51
+
The last selected tab key, per group, is also persisted to `SessionStorage`
52
+
53
+
by {user}`mikemckiernan` and {user}`chrisjsewell` in {pr}`196`
54
+
55
+
### Improve
56
+
57
+
* 👌 Use reference name by default for internal link cards by {user}`gabalafou` in {pr}`183`
58
+
* 👌 Improve specificity of JS function name by {user}`danirus` in {pr}`153`
59
+
* 👌 Remove duplicate CSS hashing for sphinx >= 7.1 by {user}`chrisjsewell` in {pr}`193`
4
60
5
-
##What's Changed
61
+
#### 👌 Improve `dropdown` title bar
6
62
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)
63
+
There are three visible changes:
64
+
65
+
1. The "default" behaviour of the right chevron is to go from right-facing (closed) to down-facing (open), instead of down-facing (closed) to up-facing (open). There is also a rotate transition on opening/closing.
66
+
The old default behaviour can be retained by using the new `:chevron: down-up` directive option.
67
+
2. The prefix icon (optional), title text, and chevron state icon are now all better aligned
68
+
3. The top/bottom padding is now 0.5em instead of 1em
69
+
70
+
The PR also introduces three new CSS variables to control font sizes of the dropdown:
71
+
72
+
```css
73
+
--sd-fontsize-tabs-label: 1rem;
74
+
--sd-fontsize-dropdown-title: 1rem;
75
+
--sd-fontweight-dropdown-title: 700;
76
+
```
77
+
78
+
Internally, the HTML / CSS is changed, such that the title is now an `inline-flex` box, with three columns arranged with `justify-content: space-between`:
79
+
80
+
| icon (optional) | text (`flex-grow: 1`) | state chevron |
- Make default blue color a11y friendly. [#124](https://github.com/executablebooks/sphinx-design/pull/124) ([@feanil](https://github.com/feanil), [@choldgraf](https://github.com/choldgraf))
19
-
- Make card titles translatable [#113](https://github.com/executablebooks/sphinx-design/pull/113) ([@jpmckinney](https://github.com/jpmckinney), [@chrisjsewell](https://github.com/chrisjsewell))
119
+
- Make default blue color a11y friendly. {pr}`124` ({user}`feanil`, {user}`choldgraf`)
120
+
- Make card titles translatable {pr}`113` ({user}`jpmckinney`, {user}`chrisjsewell`)
- Support for Python 3.11 [#105](https://github.com/executablebooks/sphinx-design/pull/105) ([@tirthasheshpatel](https://github.com/tirthasheshpatel), [@choldgraf](https://github.com/choldgraf), [@jpmckinney](https://github.com/jpmckinney), [@codecov-commenter](https://github.com/codecov-commenter))
124
+
- Sphinx 6.x. {pr}`106`
125
+
- Support for Python 3.11{pr}`105`
25
126
26
127
### Contributors to this release
27
128
@@ -30,21 +131,18 @@ See [our definition of contributors](https://github-activity.readthedocs.io/en/l
30
131
31
132
([GitHub contributors page for this release](https://github.com/executablebooks/sphinx-design/graphs/contributors?from=2022-08-22&to=2023-04-12&type=c))
0 commit comments