Breaking Changes 🚨
Support Single Nav Mode by renaming the top level _meta.json to _nav.json
Related PR: #2314
If your top level does not have _nav.json, themeConfig.nav will not be generated, and your homepage will directly enter the document.
For example:
├── doc
│ ├── guide
│ │ ├── advanced
│ │ │ └── plugin.mdx
│ │ ├── _meta.json
│ │ └── index.mdx
+ ├── _meta.json
│ └── index.md
├── package.json
└── rspress.config.ts
What's Changed
New Features 🎉
- feat(auto-nav-sidebar)!: rename the top level
_meta.jsonto_nav.jsonin order to support single Nav Mode by @SoonIter in #2314
Performance 🚀
Bug Fixes 🐞
- fix: auto-nav-sidebar should respect locales config by @SoonIter in #2307
- fix(rehypeHeaderAnchor): trim anchor for better format with React Component by @SoonIter in #2318
- fix(publicDir): should work with
baseinrspress devandrspress previewby @SoonIter in #2317
Document 📖
- docs: fix Rsbuild url in README.md by @superpung in #2304
Other Changes
- refactor(auto-nav): rewrite the logic, refine the code style by @SoonIter in #2303
- chore(deps): upgrade rsbuild-plugin-virtual-module@0.3.0 by @SoonIter in #2305
- chore(infra)!: move "@rspress/plugin-auto-nav-sidebar" to @rspress/core by @SoonIter in #2306
- chore(deps): update dependency create-rstack to v1.5.1 by @renovate in #2310
- chore(deps): update all patch dependencies by @renovate in #2309
- chore(deps): update dependency react-docgen-typescript to v2.4.0 by @renovate in #2312
- chore(deps): update dependency prettier to v3.6.0 by @renovate in #2311
- chore(deps): update @rsbuild/core to 1.4.0-rc.0 by @chenjiahan in #2315
- Release v2.0.0-beta.17 by @SoonIter in #2320
New Contributors
- @superpung made their first contribution in #2304
Full Changelog: v2.0.0-beta.16...v2.0.0-beta.17