Skip to content

Releases: web-infra-dev/rspress

v2.0.0-beta.34

26 Sep 07:07
4ce02b2
Compare
Choose a tag to compare
v2.0.0-beta.34 Pre-release
Pre-release

Highlights ✨

πŸ’„ Upgrade to docsearch@4 within @rspress/plugin-algolia

related PR: #2620

This will improve Rspress's UI, and you can use new docsearch features such as askAi.

DocSearch v4 provides a significant upgrade over previous versions, offering enhanced accessibility, responsiveness, and an improved search experience for your documentation. Built on Algolia Autocomplete, DocSearch v4 ensures a seamless integration trusted by leading documentation sites worldwide.

ref: https://docsearch.algolia.com/docs/migrating-from-v3

image image

What's Changed

New Features πŸŽ‰

  • feat!: update @rspress/plugin-algolia to docsearch v4.1.0 by @Copilot in #2620
  • feat: support basic usage of remark-lint for link plugin by @JounQin in #2618

Bug Fixes 🐞

  • fix(plugin-llms): should be compilatable to user manual nav and sidebar configuration by @SoonIter in #2606
  • fix: render HTML entities correctly in dynamic TOC by @JounQin in #2613
  • fix(theme): llms component should not be included in rp-doc by @SoonIter in #2614
  • fix(auto-nav-sidebar): watch h1 change for sidebar by @SoonIter in #2619

Document πŸ“–

Other Changes

New Contributors

Full Changelog: v2.0.0-beta.33...v2.0.0-beta.34

v2.0.0-beta.33

17 Sep 10:02
c3efbd4
Compare
Choose a tag to compare
v2.0.0-beta.33 Pre-release
Pre-release

Breaking Changes🚨

Make raw HTML in md styled

related PR: #2600

Rspress is now driven by CSS for style, ref: https://github.com/web-infra-dev/rspress/blob/main/packages/theme-default/src/styles/doc.scss

So you can:

  • Use original html tag like <ul><li>this is a line</li></ul>, they will now be styled the same as * this is a line
  • do not need to use Rspress's built-in const { h1: H1 } = getCustomMdxComponents() to annotate styles
  • For components that do not wish to be polluted by Rspress prose CSS, .rp-not-doc is all you needed
## List

- list item 1   <------ styled
- list item 2

<ul>
  <li>list item 1</li>       <------ styled
  <li>list item 2</li>
</ul>

<div className="rp-not-doc">        <----- not styled
  <ul>
    <li>list item 1</li>
    <li>list item 2</li>
  </ul>
</div>

<ul className="rp-not-doc>   <----- not styled
  <li>list item 1</li>
  <li>list item 2</li>
</ul>

What's Changed

New Features πŸŽ‰

  • feat(theme-default): Make the tab component usable in layouts other than DocLayout by @Karibash in #2589
  • feat(theme/style)!: keep the html style be consistent with markdown syntax and .rp-not-doc escape hatch (#2579) by @SoonIter in #2600

Bug Fixes 🐞

  • fix(theme/style): some components should not be included in rp-doc by @SoonIter in #2602

Document πŸ“–

Other Changes

  • chore(deps): update all patch dependencies by @renovate[bot] in #2575
  • chore(deps): upgrade nx to upgrade axios and form-data by @SoonIter in #2592
  • chore(deps): update all patch dependencies by @renovate[bot] in #2593
  • chore(deps): update dependency memfs to ^4.39.0 by @renovate[bot] in #2595
  • chore(deps): update dependency @rslib/core to v0.13.2 by @renovate[bot] in #2594
  • chore(deps): update dependency @mdx-js/react to v3 by @renovate[bot] in #2558
  • test(e2e): inline-markdown add "link" example by @SoonIter in #2601
  • refactor(theme-default)!: remove unused low-frequency components LinkCard and Card by @SoonIter in #2603
  • chore(theme/style): nav group and add word-break: keep-all to navItem (#2568) by @SoonIter in #2604
  • Release v2.0.0-beta.33 by @SoonIter in #2605

Full Changelog: v2.0.0-beta.32...v2.0.0-beta.33

1.45.6

16 Sep 11:39
99d1b9e
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(ssg): Prevent the risk of naming conflicts with the user folders by @SoonIter in #2597

Other Changes

Full Changelog: v1.45.5...1.45.6

v2.0.0-beta.32

11 Sep 13:27
6df60e8
Compare
Choose a tag to compare
v2.0.0-beta.32 Pre-release
Pre-release

Highlights ✨

⚑️ Support _meta.json and _nav.json HMR

related PR: #2549

After a period of refactoring around virtual modules, Rspress now supports HMR for both *meta.json and *nav.json files.

This means you no longer need to restart the dev server when modifying _meta.json files, which will significantly improve your debugging speed for nav and sidebar configurations.

img_v3_02pq_a42d8229-315d-49b0-a72a-b739a586cb6g

What's Changed

New Features πŸŽ‰

  • feat(auto-nav-sidebar): support _meta.json and _nav.json hmr by @SoonIter in #2549
  • feat(twoslash): improve underline styling and adjust popup docs font-size by @chenjiahan in #2554
  • feat: export star from react-router-dom by @zoolsher in #2577
  • feat(plugin-twoslash): Make the popup that is always displayed not flip its display position by @Karibash in #2580

Bug Fixes 🐞

  • fix(plugin-api-docgen): too much apiDocMap clone in pageData cause performance issue in runtime by @SoonIter in #2524
  • fix(plugin-playground): normalizeUrl skip protocol(#2563) (#2565) by @SoonIter in #2584
  • fix: suggestions object key with constructor by @zoolsher in #2586

Document πŸ“–

Other Changes

  • chore(deps): update actions/setup-node action to v5 by @renovate[bot] in #2557
  • chore(deps): update all patch dependencies by @renovate[bot] in #2556
  • chore(deps): update dependency @types/jest to v30 by @renovate[bot] in #2559
  • chore(deps): update dependency cspell to v9 by @renovate[bot] in #2561
  • chore(deps): remove unused @types/jest by @SoonIter in #2562
  • chore(infra): upgrade pnpm configuration to remove hoist by @SoonIter in #2564
  • chore(deps): update dependency cross-env to v10 by @renovate[bot] in #2560
  • test(e2e): fix ci case sensitivity by @SoonIter in #2566
  • chore(persistent-cache): add rspress version to cacheDigest to make it more safe by @SoonIter in #2582
  • chore(infra): use strictPeerDependencies: false by @SoonIter in #2587
  • Release v2.0.0-beta.32 by @SoonIter in #2588

New Contributors

Full Changelog: v2.0.0-beta.31...v2.0.0-beta.32

v1.45.5

11 Sep 09:10
863d4ac
Compare
Choose a tag to compare

What's Changed

New Features πŸŽ‰

1.45.4

10 Sep 11:31
98b274b
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

  • chore(theme/style): nav group and add word-break: keep-all to navItem by @SoonIter in #2568
  • chore(theme/style): keep the html syntax in markdown original style by @SoonIter in #2569
  • chore(theme/style): use :where to ul and li original style by @SoonIter in #2570
  • Release v1.45.4 by @SoonIter in #2574

Full Changelog: v1.45.3...1.45.4

v2.0.0-beta.31

03 Sep 09:58
13cd02b
Compare
Choose a tag to compare
v2.0.0-beta.31 Pre-release
Pre-release

What's Changed

New Features πŸŽ‰

  • feat(plugin-twoslash): Improve error handling with enhanced logging by @Karibash in #2544

Bug Fixes 🐞

Document πŸ“–

Other Changes

Full Changelog: v2.0.0-beta.30...v2.0.0-beta.31

v2.0.0-beta.30

02 Sep 09:10
b734715
Compare
Choose a tag to compare
v2.0.0-beta.30 Pre-release
Pre-release

Highlights ✨

πŸ†•οΈ @rspress/plugin-twoslash

related PR: #2527

Thanks to Shiki's excellent Twoslash integration, we're excited to introduce @rspress/plugin-twoslash in this milestone 2.0.0-beta.30 release! Now you can easily add rich type annotations to your code blocks using "```ts twoslash"

Special thanks to Rspress contributor @Karibash for making this possible. Check out the @rspress/plugin-twoslash documentation to get started!

ref: https://v2.rspress.rs/plugin/official-plugins/twoslash

Frame 1912054720

⚑️Enable Rspack native watcher by default and bump [email protected]

related PR: #2472

Previously, Rspack relied on the watchpack file system watcher to track file changes. However, we identified performance bottlenecks with watchpack. For example, each file change triggers the creation of a new instance, consuming significant CPU and memory in large projects (see #7490).

Now Rspress has been upgraded to Rspack 1.5.2 and enable native watcher by default, it will have better HMR perf and lazy compilation perf.

ref: https://rspack.rs/blog/announcing-1-5#faster-file-system-watcher

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

  • fix(core): allow user can deploy to both http://a.com/base/ and http://a.com/base by @SoonIter in #2536
  • fix(native-watcher): Infinite watch removed i18n.json by @SoonIter in #2540
  • fix(plugin-twoslash): Prevent the contents of the popup from being copied when copying code by @Karibash in #2538

Other Changes

New Contributors

Full Changelog: v2.0.0-beta.29...v2.0.0-beta.30

v2.0.0-beta.29

29 Aug 07:41
d9e2ea8
Compare
Choose a tag to compare
v2.0.0-beta.29 Pre-release
Pre-release

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

  • fix(virtual-module): should addDependencies in virtual-module for persistent cache by @SoonIter in #2519
  • fix: command using object fully customize don't call normalize by @zoolsher in #2528

Document πŸ“–

Other Changes

New Contributors

Full Changelog: v2.0.0-beta.28...v2.0.0-beta.29

v1.45.3

28 Aug 13:12
167211f
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(plugin-api-docgen): too much apiDocMap clone in pageData cause performance issue in runtime by @SoonIter in #2523

Other Changes

Full Changelog: v1.45.2...v1.45.3