Skip to content

Releases: executablebooks/sphinx-design

v0.6.0

22 May 23:10
16af1dc
Compare
Choose a tag to compare

What's Changed

Dependencies

New

✨ Create custom directives

You can use the sd_custom_directives configuration option in your conf.py to add custom directives, with default option values:

sd_custom_directives = {
  "dropdown-syntax": {
    "inherit": "dropdown",
    "argument": "Syntax",
    "options": {
      "color": "primary",
      "icon": "code",
    },
  }
}

The key is the new directive name to add, and the value is a dictionary with the following keys:

  • inherit: The directive to inherit from (e.g. dropdown)
  • argument: The default argument (optional, only for directives that take a single argument)
  • options: A dictionary of default options for the directive (optional)

by @chrisjsewell in #194

✨ sync tabs by URL query parameters

Synchronised tabs can now be selected by adding a query parameter to the URL, for that sync-group, such as ?code=python for

.. tab-set-code::

    .. literalinclude:: snippet.py
        :language: python

    .. literalinclude:: snippet.js
        :language: javascript

The last selected tab key, per group, is also persisted SessionStorage

by @mikemckiernan and @chrisjsewell in #196

Improve

  • 👌 Use reference name by default for internal link cards by @gabalafou in #183
  • 👌 Improve specificity of JS function name by @danirus in #153
  • 👌 Remove duplicate CSS hashing for sphinx >= 7.1 by @chrisjsewell in #193

👌 Improve dropdown title bar

There are three visible changes:

  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.
    The old default behaviour can be retained by using the new :chevron: down-up directive option.
  2. The prefix icon (optional), title text, and chevron state icon are now all better aligned
  3. The top/bottom padding is now 0.5em instead of 1em

The PR also introduces three new CSS variables to control font sizes of the dropdown:

--sd-fontsize-tabs-label: 1rem;
--sd-fontsize-dropdown-title: 1rem;
--sd-fontweight-dropdown-title: 700;

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:

icon (optional) text (flex-grow: 1) state chevron

Also, the state chevron was previously two distinct SVGs (with one hidden), but now is one that get rotated on open/close.

by @chrisjsewell in #192

Fix

Internal

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

27 Jul 12:42
18fe5df
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.5.0

v0.4.1

13 Apr 09:27
537e0d0
Compare
Choose a tag to compare

This is a minor release to bring in the following PR:

v0.4.0

13 Apr 09:17
d19e589
Compare
Choose a tag to compare

v0.4.0 - 2023-04-13

(full changelog)

This release primarily brings in support for the latest versions of Sphinx and Python, and implements a few enhancements and bugfixes as well.

Enhancements made

Version upgrades

Contributors to this release

The following people contributed discussions, new ideas, code and documentation contributions, and review.
See our definition of contributors.

(GitHub contributors page for this release)

@akaszynski (activity) | @bastimeyer (activity) | @benjaoming (activity) | @choldgraf (activity) | @chrisjsewell (activity) | @codecov-commenter (activity) | @feanil (activity) | @jpmckinney (activity) | @LecrisUT (activity) | @marxin (activity) | @mikemckiernan (activity) | @nicoa (activity) | @pre-commit-ci (activity) | @spoorcc (activity) | @srideep3 (activity) | @tirthasheshpatel (activity) | @zerocewl (activity)

v0.3.0

22 Aug 22:10
42077cf
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.0...v0.3.0

v0.2.0

14 Jun 09:55
602160b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

20 Apr 22:54
fb8f2a5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.13...v0.1.0

v0.0.13

27 Oct 21:08
ecd76d3
Compare
Choose a tag to compare

See CHANGELOG.md

v0.0.12

13 Aug 16:13
6930a00
Compare
Choose a tag to compare
🚀 RELEASE: v0.0.12

v0.0.11

09 Aug 07:09
Compare
Choose a tag to compare
🚀 RELEASE: v0.0.11