Changelog
1.36.1 (2026-05-22)
- Fixed execution issues in versions
1.35.0through1.36.0
1.36.0 (2026-05-22)
NOTE: This version is broken. Please use 1.36.1 or later.
- Add
collapseFromLeveloption (#225)
1.35.0 (2026-05-22)
NOTE: This version is broken. Please use 1.36.1 or later.
- HMR is now supported so that the sidebar automatically refreshes when documents are added or updated in the development environment. (You must use
withSidebar) (#159)
1.34.0 (2026-05-21)
- Fix the
capitalizeoption behaves in such a way that it ignores the prefix (#231) - If the
h1heading in the Markdown file cannot be retrieved, the file name is used instead ofUnknown. - Add
sortMenusByFileModifyDateoption (#229) - Add
sortMenusByFileCreateDateoption
1.33.2 (2026-05-06)
- BREAKING CHANGES: Node.js version 20 is no longer supported. You must install version 22 or higher. (Installation is possible in Node.js 20, but compatibility is not guaranteed.)
- Upgrade package dependencies
1.33.1 (2025-11-29)
- BREAKING CHANGES: Node.js version 18 is no longer supported. You must install version 20 or higher.
- Upgrade package dependencies
1.33.0 (2025-07-24)
- BREAKING CHANGES: The
excludePatternoption has been renamed toexcludeByGlobPattern. The old name is still available, but we plan to remove it in a future major release. - Add
excludeByFolderDepthoption (#213) - Removed references to deprecated options
excludeFiles,excludeFolders,convertSameNameSubFileToGroupIndexPage
1.32.1 (2025-07-05)
- Fix Package build
1.32.0 (2025-07-05)
- Add
followSymlinksoption (#209)
1.31.1 (2025-03-13)
- Correct link processing for general files containing the
indexcharacter (#201)
1.31.0 (2025-02-07)
- BREAKING CHANGES: The
excludeFilesandexcludeFoldersoptions have now been completely removed and replaced withexcludePattern. - Handling decimals in frontmatter order sorting (#197)
1.30.2 (2024-12-07)
- Fix import of type declaration files
1.30.1 (2024-12-07)
NOTE: This version is broken. Please use 1.30.2 or later.
- Fix critical import issue
1.30.0 (2024-12-06)
NOTE: This version is broken. Please use 1.30.2 or later.
- BREAKING CHANGES: The type declarations have been separated into a separate file, which you may need to import from the 'vitepress-sidebar/types' file. In general, to use a type, use it like this:
import type { VitePressSidebarOptions } from 'vitepress-sidebar/types'. You may also need to change the value ofmoduleResolutionin thetsconfig.jsonfile to:nodenextornode16orBundler
typescript
// Before
import { withSidebar, VitePressSidebarOptions } from 'vitepress-sidebar';
// After
import { withSidebar } from 'vitepress-sidebar';
import type { VitePressSidebarOptions } from 'vitepress-sidebar/types';- BREAKING CHANGES: The functions in the source file have now been split into multiple files. If you imported the module as follows, you will need to modify your code. (
import VitePressSidebar from 'vitepress-sidebar'->import * as VitePressSidebar from 'vitepress-sidebar') You can ignore this if you've used something likeimport { withSidebar } from 'vitepress-sidebar'orimport { generateSidebar } from 'vitepress-sidebar', unless it's a special case. - Fix issues with invalid build files
1.29.1 (2024-12-06)
- Removes the top-level path from the link path only at the first depth. (#186)
1.29.0 (2024-11-01)
- Introduces the
withSidebarfunction. It can be used instead ofgenerateSidebarand can be declared at thedefineConfiglevel instead of thethemeConfig.sidebarlevel. You can still usegenerateSidebargoing forward, but we recommend usingwithSidebarfor easier setup.
1.28.0 (2024-10-25)
- Not using numbers as separators in
capitalizeEachWords(#185) - BREAKING CHANGES:
convertSameNameSubFileToGroupIndexPageoption was renamed touseFolderLinkFromSameNameSubFile(#184) - BREAKING CHANGES: Some deprecated options have been removed entirely:
excludeFilesByFrontmatter,sortMenusOrderNumerically,sortByFileName,root,includeEmptyGroup,withIndex,useFolderLinkAsIndexPage,useIndexFileForFolderMenuInfo. See the documentation page and theCHANGELOG.mdfile for replacement options.
1.27.1 (2024-09-26)
- Fix
sortMenusByFrontmatterOrdernot been sorted in numerical order but in string order (@Cryolitia)
1.27.0 (2024-09-19)
- Add
sortFolderTooption (#173) - Do not create an empty items array
- Now
capitalizeEachWordsseparates them into words based on all special characters (#175)
1.26.2 (2024-09-19)
- Fix sorting by name to be case-insensitive (#177)
1.26.1 (2024-09-18)
- Fix failed to install node.js 18 (#180)
1.26.0 (2024-09-16)
- BREAKING CHANGES: The
excludeFilesandexcludeFoldersoptions have been deprecated; use theexcludePatternoption instead, which corresponds to both custom files and folders with a glob pattern. Both options will be removed in the next major version. - Add
excludePatternoption (Specify the files/folders to exclude with the glob file pattern) (#145)
1.25.4 (2024-09-16)
- Fix performing formatting on attribute text in some Markdown syntax or HTML tags (#176)
1.25.3 (2024-09-03)
- If
convertSameNameSubFileToGroupIndexPageanduseFolderTitleFromIndexFileoptions are defined together, try with title from index file when title is not fetched (#170)
1.25.2 (2024-09-03)
This version may cause unintended behavior. Please ignore this version.
- Fix
convertSameNameSubFileToGroupIndexPageto get the name normally if subfile doesn't exist when set Use the title of the index file ifconvertSameNameSubFileToGroupIndexPageanduseFolderTitleFromIndexFileare defined together (#170)
1.25.1 (2024-09-03)
- BREAKING CHANGES: The
Optionstype for TypeScript has been renamed toVitePressSidebarOptions. - Fix to avoid converting non-first letter items to lowercase when using
capitalizeEachWords - Support for specifying sidebar option types for TypeScript
- Documentation page domain now changed to
vitepress-sidebar.cdget.com! - Korean documentation support
1.25.0 (2024-08-22)
- Add
basePathoption - Fix incorrect directory path when using
rewriteandconvertSameNameSubFileToGroupIndexPageoption. (#146)
1.24.2 (2024-08-13)
- Fix index link is blank in multiple sidebars (#167)
1.24.1 (2024-07-31)
- If a link exists in the directory, it will appear in the menu regardless of the option
- Fix do not include
indexlink whenindex.mdfile is shown (#147) - More precise argument checking
1.24.0 (2024-07-06)
- Add
frontmatterTitleFieldNameoption. When used withuseTitleFromFrontmatter, thetextfield of sidebar will extract from the value offrontmatterTitleFieldNameinstead of defaulttitlefield if it exists. (@liudonghua123)
1.23.2 (2024-05-16)
- Revert
5ed188e. do not warn 'use option together'
1.23.1 (2024-05-15)
- Warning against using the
removePrefixAfterOrderingoption and theuseTitleFromoption together - Fix to return full filename if separator is not present in filename when using
removePrefixAfterOrderingoption
1.23.0 (2024-05-13)
- BREAKING CHANGES: The
excludeFilesByFrontmatteroption is deprecated and replaced by theexcludeFilesByFrontmatterFieldNameoption. You can now specify any field name you want, including Frontmatter'sexcludefield name, and documents will be excluded from the menu when that field value istrue. Existing users should work fine with the following settingsexcludeFilesByFrontmatterFieldName: 'exclude'. For more information, see the documentation. - Allow empty values or empty object options to be passed in
1.22.0 (2024-03-28)
prefixSeparatornow accepts regular expressions- Add
sortMenusByFileDatePrefixoption
1.21.0 (2024-03-15)
- Add
removePrefixAfterOrderingandprefixSeparatoroption - Documentation enhancements
1.20.0 (2024-03-12)
- BREAKING CHANGES: The
sortMenusOrderNumericallyoption has been split into thesortMenusOrderNumericallyFromTitleandsortMenusOrderNumericallyFromLinkoptions. Therefore, the old option is deprecated. Renamed to allow you to sort by file title or link. For more information, seeREADME.md. - Add
sortMenusByFrontmatterDateoption - Add
sortMenusOrderNumericallyFromLinkoption - In
useFolderLinkFromIndexFile, show the path toindex.mdtogether - Fix folders with only an index file are not recognized as empty
1.19.0 (2024-02-26)
- Add
excludeFilesByFrontmatteroption (@aslafy-z)
1.18.6 (2024-01-03)
- Fix typescript issue
1.18.5 (2023-12-11)
- Add
frontmatterOrderDefaultValueoption (@aslafy-z) - Fix recursive sort of items (@aslafy-z)
- Retrieve ordering for top level folder indexes (@aslafy-z)
1.18.0 (2023-10-02)
- Add
capitalizeEachWordsoption - The option to modify menu names is also reflected correctly when pulling names from MarkDown heading, frontmatter.
1.17.0 (2023-09-26)
- Add
sortMenusOrderNumericallyoption
1.16.5 (2023-09-22)
- Fix nested links being created in multiple sidebars
1.16.0 (2023-09-21)
- BREAKING CHANGES: The
useIndexFileForFolderMenuInfooption has been split into theuseFolderTitleFromIndexFileanduseFolderLinkFromIndexFileoptions. Therefore, the old option is deprecated. You can now specify whether the folder menu should get its name and link from theindex.mdfile, respectively. For more information, seeREADME.md. - Make sure the link to the index page is clearly marked (e.g.,
folder/instead offolder/index).
1.15.0 (2023-09-19)
- Fix correct base url for multiple sidebars
- The
rootGroupText,rootGroupLink, androotGroupCollapsedoptions are available again. However, these options are no longer required.
1.14.0 (2023-09-18)
- NOTE: The options
rootGroupText,rootGroupLink, androotGroupCollapsedare not available in this version. Please update to the latest version. These options have been restored! - Use a better algorithm for stripping formatting from titles that contain Markdown syntax
1.13.0 (2023-09-13)
- BREAKING CHANGES: The generator normally strips some of the Markdown syntax when using
useTitleFromFileHeading. If you do not want to remove Markdown syntax, set thekeepMarkdownSyntaxFromTitleoption totrue. - Add
debugPrintoption - Add
keepMarkdownSyntaxFromTitleoption - Improved test example files
1.12.0 (2023-09-12)
- Add
sortMenusByFrontmatterOrderoption
1.11.0 (2023-08-24)
- BREAKING CHANGES:
useFolderLinkAsIndexPageoption was renamed touseIndexFileForFolderMenuInfo - BREAKING CHANGES:
sortByFileNameoption was renamed tomanualSortFileNameByPriority - BREAKING CHANGES: The
useFolderLinkAsIndexPageoption now also gets the title information of theindex.mdfile, so the name of the folder menu is set to the title of theindex.mdfile - The
useFolderLinkAsIndexPageoption, if the index file (index.md) does not exist, will display it without setting a link, replacing the name with the folder name - Add
sortMenusByNameandsortMenusOrderByDescendingoptions - Added deprecated warning for changed option names
1.10.1 (2023-08-08)
- Fixed issue with
rootGroupCollapsedoption not being applied correctly
1.10.0 (2023-07-25)
- Add
includeFolderIndexFileoption - Add
useFolderLinkAsIndexPageoption
1.9.5 (2023-07-25)
- Troubleshooting when links are not prefixed with
/ - Allow
nullorundefinedvalue for collapsed options
1.9.0 (2023-07-24)
- Add
rootGroupCollapsedoption. This option is separate from thecollapsedoption and allows you to set whether the RootGroup (the item displayed in theTable of Contents) is expanded or not. SeeREADME.mdfor more information. - Correct behavior of
collapseDepth
1.8.2 (2023-07-18)
- Remove unnecessary files
- Upgrade package dependencies
- Update
README.md
1.8.1 (2023-06-15)
- Make sure to apply multi-sidebar settings for settings containing
resolvePath
1.8.0 (2023-06-13)
- BREAKING CHANGES: The
rootoption was renamed todocumentRootPath. - Support for multiple sidebars (Add
scanStartPathandresolvePathoption. Please readREADME.mdfile.) - Improved multiple validation checks
- Improved Frontmatter inspections with special characters or newlines
1.7.5 (2023-05-28)
- Add
folderLinkNotIncludesFileNameoption
1.7.0 (2023-05-28)
- BREAKING CHANGES: The
withIndexoption was renamed toincludeRootIndexFile. - BREAKING CHANGES: The
includeEmptyGroupoption was renamed toincludeEmptyFolder. - Add
excludeFilesoption - Add
excludeFoldersoption - Add
includeDotFilesoption - Parsing markdown
h1tag and frontmatter correctly
1.6.5 (2023-05-27)
- Fix
convertSameNameSubFileToGroupIndexPageand rename option not working together
1.6.0 (2023-05-27)
- BREAKING CHANGES: The default value for
hyphenToSpaceis nowfalse. - Add
convertSameNameSubFileToGroupIndexPageoption: If this value istrue, then if a subfile with the same name as the folder exists, a link will be created in the folder to navigate to that file, and the file will not be displayed in the child item. - Fixed issue with
hyphenToSpaceandunderscoreToSpaceoptions not being applied to directories - Add
rootGroupLinkoption
1.5.1 (2023-05-26)
- Add
.mocharc.json, removetsconfig.prod.jsonfile in.npmignore
1.5.0 (2023-05-26)
- Add
useTitleFromFrontmatteroption. See README.md. useTitleFromFileHeading: Use only valid title values in titles that contain links
1.4.0 (2023-05-26)
- Fix TypeScript lint error
- Upgrade package dependencies
1.3.1 (2023-04-20)
- Fix build issue
1.3.0 (2023-04-20)
- Upgrade package dependencies
- Cleanup codes and update documentation
1.2.0 (2023-02-07)
- BREAKING CHANGES: The collapsible option has been removed by VitePress
1.0.0-alpha.44breaking changes. See: https://vitepress.vuejs.org/config/theme-configs- If the
collapsedoption is not specified(nullorundefined), group collapse/expand is not used and all menus are displayed at once. Iffalse, the menu is created with all groups expanded. Iftrue, the menu is created with all groups collapsed.
- If the
- Upgrade package dependencies
1.1.5 (2023-01-12)
- Remove CODE_OF_CONDUCT.md for npm release
1.1.4 (2023-01-12)
- Upgrade package dependencies
1.1.3 (2022-12-08)
- Upgrade package dependencies
- Add
includeEmptyGroupoption - Do not include empty group by default
1.1.2 (2022-11-23)
- Upgrade package dependencies
- Fix README.md and codes indent
1.1.1 (2022-11-02)
- Fix
capitalizeFirstbug
1.1.0 (2022-11-02)
- Add
capitalizeFirstoption - Fix null check for option
1.0.9 (2022-11-02)
- Add
sortByFileNameoption
1.0.8 (2022-11-02)
- Add
collapseDepthoption - Fix correct import fs module
- Upgrade package dependencies
1.0.7 (2022-10-31)
- Fix execution order and cleanup codes
- Add
.editorconfigfile and reformat codes (Development only)
1.0.6 (2022-10-31)
- Add
useTitleFromFileHeadingoption - Upgrade package dependencies
1.0.5 (2022-10-27)
- Change require NodeJS version to 14
- Add mocha test (Development only)
1.0.4 (2022-10-25)
- First production release
0.1.0 ~ 1.0.3 (2022-10-25 / Alpha)
- Alpha release (Not tested. Do not use production.)