Update dependency vitepress to v2.0.0-alpha.19 #23
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/vitepress-2.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.0.0-alpha.18→2.0.0-alpha.19Release Notes
vuejs/vitepress (vitepress)
v2.0.0-alpha.19Compare Source
Bug Fixes
preConfighook when extending configs (c39a85a), closes #5205cjkFriendlyoption (27762ea)lazyLoadingtolazyLoad(078786a)disableDetailedViewlocal search option (cec4998)lastUpdatedTextoption (18d1b47)outlineTitleoption (95c0420)Features
tabindexattribute (bffe1e1)attrs: falsefor disabling attrs plugin (e235dbe)note,important,cautionmarkdown containers (#5161) (3b560a0), closes #4427 #3928Performance Improvements
Reverts
BREAKING CHANGES
markdown.anchoroptions are now typed by@mdit/plugin-anchor. Common options (level,slugify,permalink,getTokensText,tabIndex, etc.) are unchanged, but the deprecated markdown-it-anchor permalink options (permalinkSymbol,renderPermalink, ...) are no longer accepted. Permalink builders likeheaderLinkare named exports of@mdit/plugin-anchorinstead of properties of the plugin.markdown.attrsoptions are now typed by@mdit/plugin-attrs:leftDelimiter,rightDelimiter, andallowedAttributesare renamed toleft,right, andallowed. Aruleoption is available for toggling individual attribute rules (VitePress disablesfenceby default).markdown.codeCopyButtonTitleis nowmarkdown.codeCopyButton.tooltipText, and its default changed from "Copy Code" to "Copy code". The--vp-code-copy-copied-text-contentCSS variable and its built-in per-language:lang()defaults are removed - setcodeCopyButton.copiedText(per locale) instead.useData().hashhas been removed. Read the hash fromuseRoute()instead.callers of vitepress' build() will now notice the version banner gets printed. To disable that, pass a noop function:
custom
themeConfig.i18nRoutingfunctions now receive the currentRouteas their second argument instead of the hashnormalize-level defaults differ from the old reset - native select and number-input chrome is restored, headings inherit font size and weight, the hidden attribute is enforced with !important, and every element starts with zero margin/padding and border-style: solid. Sites layering custom CSS on the default theme may notice.
relative urls in included markdown files resolve against the included file rather than the including page. Partials written for one specific location may need their links updated, or markdown.include.rebaseRelativeUrls set to false to keep resolving them from the including page. Absolute and external urls are unaffected. Note that the marker comments shift the line numbers reported for dead links following an include, which already pointed into the include-expanded source rather than the original file.
init: scaffold() now returns a
Promise<string>and must be awaited.The
defsproperty ofmarkdown.emojihas been renamed todefinitions.The
markdown.attrs.disableoption has been removed. Setmarkdown.attrstofalseinstead.The
markdown.image.lazyLoadingoption has been renamed tomarkdown.image.lazyLoad.The deprecated
disableDetailedViewoption of local search has been removed. UsedetailedView: falseinstead.The deprecated
markdown.cjkFriendlyoption has been removed. Usemarkdown.cjkFriendlyEmphasisinstead.The deprecated
themeConfig.lastUpdatedTextoption has been removed. UsethemeConfig.lastUpdated.textinstead.The deprecated
themeConfig.outlineTitleoption has been removed. UsethemeConfig.outline.labelinstead.The Inter4CJK font family has been renamed to 'Inter Core'. Custom --vp-font-family-base overrides referencing Inter4CJK must be updated.
Configuration
📅 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 has been generated by Mend Renovate.