Update dependency vitepress to v2.0.0-alpha.19 - #2801
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
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:
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 was generated by Mend Renovate. View the repository job log.