Repository navigation
Update dependency sphinx-design to v0.8.0 - #125
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.7.0→==0.8.0Release Notes
executablebooks/sphinx-design (sphinx-design)
v0.8.0Compare Source
New components (accordion, aside, steps, vertical tab sets, and explicit card header and footer directives),
links that open in a new tab, badge tooltips, a plain-CSS build with no Sass,
tab selections that persist across pages and visits, accessibility fixes, FontAwesome v6 support,
and Octicons v19.42.0. Sphinx 7.2 or later is now required.
Upgrade notes
Sphinx
>=7.2is required (Sphinx 7.0 and 7.1 are no longer supported); Python stays at>=3.11({pr}276).The
^^^and+++card separators are deprecated and warn by default.They still render as before, but the first card in a document that uses them emits one
design.card_legacywarning, so a build run with-Wfails until you do one of two things:card-headerandcard-footerdirectives(or the one-line
:header:and:footer:options), which need sphinx-design 0.8.0 or later; or"design.card_legacy"tosuppress_warningsin yourconf.py.Once every card is migrated, set
sd_card_legacy_separators = Falseto stop scanning for the separators.The plan is to turn the separators off by default in 1.0 and remove them in 2.0;
the cards page has a migration table ({pr}
294).Tab selections persist in
localStorageinstead ofsessionStorage, so a chosen tab is rememberedacross browsing sessions as well as across pages.
The storage key prefix is set by the new
sd_tabs_storage_prefixoption;set it to an empty string to disable persistence ({pr}
284, {issue}103).Static assets are served through Sphinx's
html_static_path, only for HTML-format builders.A
_sphinx_design_staticdirectory left in an existing build directory by an earlier version is unusedand can be deleted ({pr}
276).The stylesheet is plain CSS, generated without Sass.
The
--sd-color-*-highlighthover and focus shades are now derived at runtime withcolor-mix()(behind the old value as a static fallback), so overriding a
--sd-color-*variable now also changes its hover shade ({pr}290).The private
sphinx_design._compat.findallhelper is removed; callnode.findall(...)directly ({pr}276).The private
CardDirective._create_componentmethod is renamed_create_slot;the old name stays as an alias for one release ({pr}
294).sd-card-textis added only to the direct child paragraphs of a card or dropdown body, and is added toa paragraph's classes instead of replacing them; paragraphs nested deeper (in admonitions, lists, nested tab sets)
no longer get it ({pr}
278).New
accordiondirective: groupsdropdowns so that opening one closes the others,using the browser's native
<details name>behaviour with no JavaScript;:flush:renders it edge to edgeby {user}
chrisjsewellin {pr}291asidedirective: a call-out box floated beside the body text (:align:,:width:),rendered as a semantic
<aside>in HTML and a plain titled container elsewhereby {user}
chrisjsewellin {pr}292({issue}97)stepsandstepdirectives for numbered procedures, with CSS-only number markers on an ordered list,:start:and:color:options by {user}chrisjsewellin {pr}293card-headerandcard-footerdirectives, and:header:and:footer:options,for card and grid-item-card headers and footers: the card body is parsed once as ordinary content,
and errors in a header or footer report their own line (see the upgrade notes for the legacy separators)
by {user}
chrisjsewellin {pr}294tab-setandtab-set-codetake:orientation: vertical, which stacks the labelsin a rail beside the selected panel from the
mdbreakpoint upby {user}
kdeldyckein {pr}304({issue}219)link-new-tabflag oncardandgrid-item-card, andnew-tabonbutton-linkandbutton-ref, for URLs and internal references alikeby {user}
dipinknairin {pr}298({issue}170); tooltipsuffix, rendered as a native HTMLtitle;for link and ref badges it applies after the explicit
text <target>form, and\;escapes a literal semicolonby {user}
chrisjsewellin {pr}286({issue}81)tooltiprole option,so a reStructuredText custom role (
.. role:: bdg-stable(bdg-success)with:tooltip:) or an extensioncan preset a tooltip; a
; tooltipsuffix still takes precedenceby {user}
chrisjsewellin {pr}316button-linkorbutton-reftext renders as separate lines(
<br />in HTML,\newline{}in LaTeX), each line its own gettext messageby {user}
Cherith1222in {pr}308and {user}chrisjsewellin {pr}315({issue}156)page.html#tab-name), or an element inside a tab panel,opens that tab, on load and on
hashchangeby {user}chrisjsewellin {pr}284({issue}239)fa-solid,fa-brands,fa-regular), and CSS loading via the newsd_fontawesome_sourceandsd_fontawesome_cdn_urloptions (the supported path for FontAwesome Pro kits)by {user}
chrisjsewellin {pr}285({issue}174)sd_fontawesome_versionmakes icon role names version-agnostic: any spelling (fas,fa-solid, ...)can emit the FontAwesome
"4","5"or"6"class scheme, so upgrading FontAwesome is a one-lineconf.pychange;the default
"as-named"keeps emitting the role name as before by {user}chrisjsewellin {pr}288({issue}174)sphinx_design.testingmodule with thenormalize_doctree_xmlhelper, for downstream extensions'doctree regression tests by {user}
chrisjsewellin {pr}277({issue}260)Improve
(with
:focus-visible, so they do not show on mouse click) by {user}gabalafouin {pr}230, carried in {pr}283aria-controlsattribute naming its panel(this is not the full WAI-ARIA tabs pattern) by {user}
chrisjsewellin {pr}283({issue}30)by {user}
dchaudhari7177in {pr}303({issue}301)sd_fontawesome_latexalso accepts"fontawesome5"(loadingfontawesome5.styand emitting\faIcon{...}),resolving package clashes with themes that load it;
TrueandFalsework as beforeby {user}
chrisjsewellin {pr}285({issue}242)sd_*settings are declared in one typed configuration, and an invalid value warns(
design.config) and falls back to the default by {user}chrisjsewellin {pr}274with the dead vendor-prefixed declarations removed by {user}
chrisjsewellin {pr}290Fix
by {user}
chrisjsewellin {pr}284({issue}46)tab-setwith children other thantab-itemwarns for each one and renders the valid tabs,instead of crashing with a
ValueErrorby {user}chrisjsewellin {pr}258({issue}243)grid,card-carousel,tab-setandtab-set-codeno longer warn as invalid children, and targets are kept so references to them resolve,
including anchors to targets inside tabs by {user}
chrisjsewellin {pr}271and {pr}275({issue}86)button-linkandbutton-refkeep their styling and linksby {user}
sneakers-the-ratin {pr}264, carried in {pr}270({issue}96, {issue}44, {issue}263)button-refkeeps whitespace in reference targets (so multi-word labels, such as those fromautosectionlabel, resolve;reftargets are lowercased like the:ref:role), and renders nested inline contentlike
button-linkby {user}chrisjsewellin {pr}281({issue}110, {issue}228):link:option keeps whitespace in reference targets,and lowercases
reftargets like the:ref:role by {user}chrisjsewellin {pr}282({issue}110)(they named a later line, or the including page for a button in an included file)
by {user}
chrisjsewellin {pr}315and
article-infoicons regain theirsd-pr-2spacing by {user}chrisjsewellin {pr}279({issue}99, {issue}117)sd-card-textby {user}
chrisjsewellin {pr}278({issue}40)_sphinx_design_staticdirectoryby {user}
chrisjsewellin {pr}276({issue}200, {issue}235)sd_fontawesome_latexrow of the global options table no longer splits into an extra cellby {user}
yvonnefroehlichin {pr}297Dependencies
>=7.2,<10by {user}chrisjsewellin {pr}276agent,library,releaseandsparkle),12 redrawn icons and 37 extra sizes; no icon is removed (
commitstays available)by {user}
kdeldyckein {pr}309chrisjsewellin {pr}267,and the
theme-pydataextra allowspydata-sphinx-theme<0.25({pr}313)flit_core>=3.4,<5by {user}chrisjsewellin {pr}312Docs
by {user}
gabalafouin {pr}158, carried in {pr}287by {user}
chrisjsewellin {pr}273({issue}172, {issue}122, {issue}184, {issue}247)by {user}
chrisjsewellin {pr}290stefmolinin {pr}229Internal
distributions by {user}
chrisjsewellin {pr}311chrisjsewellin {pr}289OCTICON_VERSIONandOCTICON_CSSconstants by {user}ftnextin {pr}205, carried in {pr}266Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.