Skip to content

Commit 16af1dc

Browse files
authored
🚀 Release v0.6.0 (#197)
1 parent f1427ce commit 16af1dc

File tree

5 files changed

+144
-31
lines changed

5 files changed

+144
-31
lines changed

CHANGELOG.md

+127-29
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,112 @@
11
# Change Log
22

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`
460

5-
## What's Changed
61+
#### 👌 Improve `dropdown` title bar
662

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 |
81+
| -------------- | -------------------- | -------------- |
82+
| | | |
83+
84+
Also, the state chevron was previously two distinct SVGs (with one hidden), but now is one that get rotated on open/close.
85+
86+
by {user}`chrisjsewell` in {pr}`192`
87+
88+
### Fix
89+
90+
* 🐛 Fix tab-item label with nested syntax by {user}`Praecordi` in {pr}`135`
91+
* 🐛 Fix do not close `input` tag by {user}`chrisjsewell` in {pr}`195`
92+
93+
### Internal
94+
95+
* 📚 Update theme versions by {user}`chrisjsewell` in {pr}`189`
96+
* 📚 Make octicon list a table by {user}`chrisjsewell` in {pr}`188`
97+
* 📚 Add sphinx-immaterial to doc theme builds by {user}`chrisjsewell` in {pr}`190`
98+
* 📚 Change syntax dropdown color by {user}`chrisjsewell` in {pr}`191`
99+
100+
* 🔧 Add FIPS compliant flag to md5 call by {user}`gabor-varga` in {pr}`162`
101+
* 🔧 define `build.os` for RTD to fix build by {user}`sciencewhiz` in {pr}`176`
102+
* 🔧 Move to ruff by {user}`chrisjsewell` in {pr}`185`
103+
104+
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.5.0...v0.6.0>
105+
106+
## 0.5.0 - 2023-07-27
107+
108+
* ⬆️ Drop Python 3.7 support, by {user}`chrisjsewell` in {pr}`146`
109+
* ⬆️ UPGRADE: sphinx>=5,<8, by {user}`chrisjsewell` in {pr}`148`
9110

10111
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.4.1...v0.5.0>
11112

@@ -15,13 +116,13 @@
15116

16117
### Enhancements made
17118

18-
- 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`)
20121

21122
### Version upgrades
22123

23-
- Sphinx 6.x. [#106](https://github.com/executablebooks/sphinx-design/pull/106) ([@marxin](https://github.com/marxin), [@choldgraf](https://github.com/choldgraf), [@srideep3](https://github.com/srideep3), [@jpmckinney](https://github.com/jpmckinney), [@akaszynski](https://github.com/akaszynski), [@benjaoming](https://github.com/benjaoming), [@codecov-commenter](https://github.com/codecov-commenter), [@spoorcc](https://github.com/spoorcc), [@nicoa](https://github.com/nicoa), [@LecrisUT](https://github.com/LecrisUT))
24-
- 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`
25126

26127
### Contributors to this release
27128

@@ -30,21 +131,18 @@ See [our definition of contributors](https://github-activity.readthedocs.io/en/l
30131

31132
([GitHub contributors page for this release](https://github.com/executablebooks/sphinx-design/graphs/contributors?from=2022-08-22&to=2023-04-12&type=c))
32133

33-
@akaszynski ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Aakaszynski+updated%3A2022-08-22..2023-04-12&type=Issues)) | @bastimeyer ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Abastimeyer+updated%3A2022-08-22..2023-04-12&type=Issues)) | @benjaoming ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Abenjaoming+updated%3A2022-08-22..2023-04-12&type=Issues)) | @choldgraf ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Acholdgraf+updated%3A2022-08-22..2023-04-12&type=Issues)) | @chrisjsewell ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Achrisjsewell+updated%3A2022-08-22..2023-04-12&type=Issues)) | @codecov-commenter ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Acodecov-commenter+updated%3A2022-08-22..2023-04-12&type=Issues)) | @feanil ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Afeanil+updated%3A2022-08-22..2023-04-12&type=Issues)) | @jpmckinney ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Ajpmckinney+updated%3A2022-08-22..2023-04-12&type=Issues)) | @LecrisUT ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3ALecrisUT+updated%3A2022-08-22..2023-04-12&type=Issues)) | @marxin ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Amarxin+updated%3A2022-08-22..2023-04-12&type=Issues)) | @mikemckiernan ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Amikemckiernan+updated%3A2022-08-22..2023-04-12&type=Issues)) | @nicoa ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Anicoa+updated%3A2022-08-22..2023-04-12&type=Issues)) | @pre-commit-ci ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Apre-commit-ci+updated%3A2022-08-22..2023-04-12&type=Issues)) | @spoorcc ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Aspoorcc+updated%3A2022-08-22..2023-04-12&type=Issues)) | @srideep3 ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Asrideep3+updated%3A2022-08-22..2023-04-12&type=Issues)) | @tirthasheshpatel ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Atirthasheshpatel+updated%3A2022-08-22..2023-04-12&type=Issues)) | @zerocewl ([activity](https://github.com/search?q=repo%3Aexecutablebooks%2Fsphinx-design+involves%3Azerocewl+updated%3A2022-08-22..2023-04-12&type=Issues))
34-
35-
36134
## v0.3.0 - 2022-08-22
37135

38-
- ⬆️ Update Materials Design Icons to v4.0.0-46-gc9e5528, thanks to @2bndy5 (#69)
39-
- 🐛 FIX: dropdown/tab-item `:name:` options (#91)
40-
- 🐛 FIX: Docs build against non-html formats (#88)
41-
- 👌 IMPROVE: Add card options `class-img-top`/`class-img-bottom` (#92)
42-
- 👌 IMPROVE: Add `link-alt` to fix card link accessibility (#89)
136+
- ⬆️ Update Materials Design Icons to v4.0.0-46-gc9e5528, thanks to {user}`2bndy5` ({pr}`69`)
137+
- 🐛 FIX: dropdown/tab-item `:name:` options ({pr}`91`)
138+
- 🐛 FIX: Docs build against non-html formats ({pr}`88`)
139+
- 👌 IMPROVE: Add card options `class-img-top`/`class-img-bottom` ({pr}`92`)
140+
- 👌 IMPROVE: Add `link-alt` to fix card link accessibility ({pr}`89`)
43141
- adds the `link-alt` option to `card` (and `grid-item-card`) directives, in order to assign a discernable name to the link (for screen readers).
44-
- 👌 IMPROVE: Make tab ids deterministic (#93)
142+
- 👌 IMPROVE: Make tab ids deterministic ({pr}`93`)
45143
- Use increasing indices, rather than UUIDs
46-
- 🔧 MAINTAIN: Fix docutils `PendingDeprecationWarning` (#94)
47-
- 📚 DOCS: Update font awesome icons (#64)
144+
- 🔧 MAINTAIN: Fix docutils `PendingDeprecationWarning` ({pr}`94`)
145+
- 📚 DOCS: Update font awesome icons ({pr}`64`)
48146

49147
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.2.0...v0.3.0>
50148

@@ -57,24 +155,24 @@ See [our definition of contributors](https://github-activity.readthedocs.io/en/l
57155

58156
## v0.1.0 - 2022-04-21
59157

60-
- ✨ NEW: Add material design icons roles, thanks to @2bndy5 in [#41](https://github.com/executablebooks/sphinx-design/pull/41)
61-
- ⬆️ UPGRADE: octicons to v16.1.1, thanks to @pocek in [#43](https://github.com/executablebooks/sphinx-design/pull/43)
62-
- 🐛 FIX: Links in card titles by @chrisjsewell in [#59](https://github.com/executablebooks/sphinx-design/pull/59)
63-
- 🐛 FIX: Exception on missing card link by @chrisjsewell in [#60](https://github.com/executablebooks/sphinx-design/pull/60)
64-
- 🔧 MAINTAIN: Move from setuptools to flit for package build by @chrisjsewell in [#58](https://github.com/executablebooks/sphinx-design/pull/58)
65-
- 🔧 MAINTAIN: Drop furo-specific stylesheet, thanks to @pradyunsg in [#22](https://github.com/executablebooks/sphinx-design/pull/22)
158+
- ✨ NEW: Add material design icons roles, thanks to {user}`2bndy5` in {pr}`41`
159+
- ⬆️ UPGRADE: octicons to v16.1.1, thanks to {user}`pocek` in {pr}`43`
160+
- 🐛 FIX: Links in card titles by {user}`chrisjsewell` in {pr}`59`
161+
- 🐛 FIX: Exception on missing card link by {user}`chrisjsewell` in {pr}`60`
162+
- 🔧 MAINTAIN: Move from setuptools to flit for package build by {user}`chrisjsewell` in {pr}`58`
163+
- 🔧 MAINTAIN: Drop furo-specific stylesheet, thanks to {user}`pradyunsg` in {pr}`22`
66164

67165
**Full Changelog**: <https://github.com/executablebooks/sphinx-design/compare/v0.0.13...v0.1.0>
68166

69167
## v0.0.13 - 2021-10-27
70168

71-
✨ NEW: add icon `far` role (#35), thanks to @OriolAbril
169+
✨ NEW: add icon `far` role ({pr}`35`), thanks to {user}`OriolAbril`
72170

73-
👌 IMPROVE: Styling for tabs (#21), thanks to @pradyunsg
171+
👌 IMPROVE: Styling for tabs ({pr}`21`), thanks to {user}`pradyunsg`
74172

75-
👌 IMPROVE: Properly remove the border on dropdown card body (#23), thanks to @pradyunsg
173+
👌 IMPROVE: Properly remove the border on dropdown card body ({pr}`23`), thanks to {user}`pradyunsg`
76174

77-
🐛 FIX: `sd-outline-*` classes color (#25)
175+
🐛 FIX: `sd-outline-*` classes color ({pr}`25`)
78176

79177
## v0.0.11 - 2021-09-08
80178

docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```{include} ../CHANGELOG.md
2+
```

docs/conf.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
copyright = "2021, Executable Book Project"
77
author = "Executable Book Project"
88

9-
extensions = ["myst_parser", "sphinx_design"]
9+
extensions = ["myst_parser", "sphinx_design", "sphinx.ext.extlinks"]
1010

1111
suppress_warnings = ["design.fa-build"]
1212
sd_fontawesome_latex = True
@@ -21,6 +21,11 @@
2121
}
2222
}
2323

24+
extlinks = {
25+
"pr": ("https://github.com/executablebooks/sphinx-design/pull/%s", "PR #%s"),
26+
"user": ("https://github.com/%s", "@%s"),
27+
}
28+
2429
html_theme = os.environ.get("SPHINX_THEME", "alabaster")
2530
html_title = f"Sphinx Design ({html_theme.replace('_', '-')})"
2631

docs/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ sphinx-rtd-theme <https://sphinx-design.readthedocs.io/en/rtd-theme>
9191
furo <https://sphinx-design.readthedocs.io/en/furo-theme>
9292
```
9393

94+
95+
```{toctree}
96+
:caption: Development
97+
:hidden:
98+
99+
changelog
100+
```
101+
94102
::::{grid} 1 2 2 3
95103
:margin: 4 4 0 0
96104
:gutter: 1

sphinx_design/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import TYPE_CHECKING
44

5-
__version__ = "0.5.0"
5+
__version__ = "0.6.0"
66

77
if TYPE_CHECKING:
88
from sphinx.application import Sphinx

0 commit comments

Comments
 (0)