Update dependency vitepress-sidebar to v1.38.0 - #21
Merged
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:
1.37.0→1.38.0Release Notes
jooy2/vitepress-sidebar (vitepress-sidebar)
v1.38.0Compare Source
sortMenusByCustomFunctionoption, which sorts the items of every folder with a function of your own, written in the formArray.prototype.sortexpects. Each item being compared carriestext,link,fileName,filePath,isDirectory,createDate,modifyDateandfrontmatter, so an order can be decided from something the other options never read, such as a date kept in version control. The file times and the frontmatter are only read when the function accesses them. It decides the order of a whole folder by itself, so it cannot be used together with another sorting option, and a function cannot be written in JSON, so it is not available in asidebar.config.json. (#188)withSidebarnow honors thesrcExcludeof the VitePress configuration, so a page that is excluded from the build no longer has to be excluded a second time to keep it out of the sidebar. Its patterns are resolved fromdocumentRootPath, exactly like VitePress resolves them fromsrcDir, and are applied on top ofexcludeByGlobPatternand the other exclusion options rather than replacing them. Excluding a dynamic route template excludes every page it generates.generateSidebaris not given the VitePress configuration, so it cannot readsrcExclude. (#181)sortMenusOrderNumericallyFromLinknow sorts a folder that has no link by its own path, instead of placing every such folder at one end of the list. Folders and files are ordered together by the number in their names even when the titles come from elsewhere, such as withuseFolderTitleFromIndexFileanduseTitleFromFileHeading. (#183)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.