chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.0-rc.1 #1197

Merged
Jade merged 1 commit from renovate/rspress-plugin-client-redirects-2.x-lockfile into main 2025-11-25 21:50:28 +00:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
@rspress/plugin-client-redirects (source) 2.0.0-alpha.12 -> 2.0.0-rc.1 age confidence

Release Notes

web-infra-dev/rspress (@​rspress/plugin-client-redirects)

v2.0.0-rc.1

Compare Source

What's Changed

New Features 🎉
  • feat(theme): add transition isPending UI to Sidebar by @​SoonIter in #​2778
  • feat(plugin-twoslash): Make it possible to configure compilerOptions for TypeScript in twoslash by @​Karibash in #​2773
Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.0...v2.0.0-rc.1

v2.0.0-rc.0

Compare Source

Highlights

💄 Brand new theme

related PR: #​2738, #​2719, #​2698, #​2690, #​2533, #​2656

1. BEM classname 🕶

All built-in components now adopt BEM naming. This is a rather old-school choice, but a deliberate one based on user feedback.

Compared with Tailwind CSS, it allows you to flexibly adjust styles anywhere using standard CSS selectors, without restrictions.
For user-side customized doc components, you are free to choose any styling approach — including Tailwind CSS — without worrying about conflicts with Rspress’s default styles.


2. Built-in Default i18n Text 🌏

related PR: #​2738

The new theme includes a set of default translation strings and supports "treeshaking" based on the languages configured in your project:

  • If your documentation includes only en and zh, only those languages will be bundled.

  • For languages not supported by Rspress, it automatically falls back to en.

In most cases, you barely need to configure any i18n text manually, which significantly improves usability. You only need to configure i18nSource in rspress.config.ts when a language is missing or when you want to override built-in texts.

In 2.0.0-rc.0, based on contributions from the community, Rspress now includes four built-in languages: zh, en, ja, and ko.

Welcome more contributors to help improve and expand the default language texts.

More info: https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-14933678


3. More CSS Variables 💄

Rspress now exposes additional CSS variables covering theme colors, shiki, code blocks, the homepage, and more — greatly enhancing customization capabilities.

You can experiment with them interactively at https://v2.rspress.rs/ui/vars, preview the results in real time, and copy the variables directly into your project.


4. rspress eject 🆕

related PR: #​2726

rspress eject is a brand-new CLI command that copies the source code of Rspress’s built-in components into your project’s theme/components directory.

For example:

rspress eject DocFooter

This gives you the full source of the DocFooter component, enabling you to customize it freely, such as adding license information.

Deep customization becomes effortless.

The rspress eject feature is still in testing, and we’ll continue improving the documentation and providing more good customization examples.


5. Improved Documentation Reading Experience 📖

Most colors and visual styles have been redesigned and refined by our designers, significantly enhancing the overall visual appeal and reading experience.

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.35...v2.0.0-rc.0

v2.0.0-beta.35

Compare Source

What's Changed

New Features 🎉
  • feat(theme): add prop dlx to PackageManagerTabs for npx pnpm dlx etc by @​Nsttt in #​2623
  • feat(auto-nav-sidebar): add new type: "dir-section-header" by @​SoonIter in #​2643
  • chore: cherry-pick ssg-md to beta.34 in #​2680
Bug Fixes 🐞
  • fix(auto-nav-sidebar): should extract tag and fix the chunks word break by @​SoonIter in #​2652
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.34...v2.0.0-beta.35

v2.0.0-beta.34

Compare Source

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 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.33...v2.0.0-beta.34

v2.0.0-beta.33

Compare Source

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 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.32...v2.0.0-beta.33

v2.0.0-beta.32

Compare Source

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 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.31...v2.0.0-beta.32

v2.0.0-beta.31

Compare Source

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.30...v2.0.0-beta.31

v2.0.0-beta.30

Compare Source

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 Rspack@1.5.2

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: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.29...v2.0.0-beta.30

v2.0.0-beta.29

Compare Source

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: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.28...v2.0.0-beta.29

v2.0.0-beta.28

Compare Source

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.27...v2.0.0-beta.28

v2.0.0-beta.27

Compare Source

Highlights

Add layer for base.css to support tailwind v4

related PR: #​2477

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.26...v2.0.0-beta.27

v2.0.0-beta.26

Compare Source

What's Changed

Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.25...v2.0.0-beta.26

v2.0.0-beta.25

Compare Source

Highlights

Enable trusted publishing for npm packages OIDC ♻️

related PR: #​2444

ref: https://docs.npmjs.com/trusted-publishers

image
UI Display of plugin-llms update 🆕

related PR: #​2439

image

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.24...v2.0.0-beta.25

v2.0.0-beta.24

Compare Source

Highlights

UI LlmsCopyButton of llms.txt 🤖

related PR: #​2426

We hope that llms.txt will have a greater role in AI era. Thanks to fumadocs, it is inspired from fumadocs's docsite

image

ref: https://v2.rspress.rs/plugin/official-plugins/llms#2-ui-display

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.23...v2.0.0-beta.24

v2.0.0-beta.23

Compare Source

Breaking Changes 🚨

related PR: #​2423

Rspress V2 now re-implements the dead link check feature. More information is obtained during compilation, resulting in more accurate results and more beautiful logs.

image

Ref: https://v2.rspress.rs/guide/basic/use-mdx/link, https://v2.rspress.rs/zh/api/config/config-build#markdownlinkcheckdeadlinks

MDX fragments usage (ignore "_" prefix routes via route.excludeConvention)

related PR: #​2149

In the docs directory, MDX fragments or React components need to be excluded from routing through the route.exclude configuration. For convenience, we agree that files starting with "_" will be excluded by default.

image

Ref: https://v2.rspress.rs/guide/basic/use-mdx/components

Highlights

New plugin @rspress/plugin-sitemap 🗺️

related PR: #​2416

thanks to @​jl917, he created rspress-plugin-sitemap during Rspress V1 for generating sitemap.

@rspress/plugin-sitemap is a forked version of rspress-plugin-sitemap and it is compatible with Rspress V2. During Rspress V2, it will be maintained as an official Rspress plugin.

Ref: https://v2.rspress.rs/plugin/official-plugins/sitemap

Documentation of Rspress V2 is happening📚

Most of the breaking changes in Rspress V2 have been completed, and we are now gradually enriching the documentation and standardizing various features provided to Rspress users such as links and mdx fragments usage

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.22...v2.0.0-beta.23

v2.0.0-beta.22

Compare Source

Breaking Changes 🚨

Merge rspress package to @rspress/core package

related PR: #​2386

It means rspress package will be deprecated, please migrate the package name to the following package name.

rspress => @rspress/core
rspress/config => @rspress/core
rspress/theme => @rspress/core/theme
rspress/runtime => @rspress/core/runtime
rspress/shiki-transformers => @rspress/core/shiki-transformers

before

// rspress.config.ts
import { defineConfig } from 'rspress/config';
export default defineConfig({
});
// theme/index.ts
import { usePageData, useDark } from 'rspress/runtime';
import { HomeLayout } from 'rspress/theme'

after

// rspress.config.ts
import { defineConfig } from '@&#8203;rspress/core';
export default defineConfig({
});
// theme/index.ts
import { usePageData, useDark } from '@&#8203;rspress/core/runtime';
import { HomeLayout } from '@&#8203;rspress/core/theme'

Migration Steps from V1

You can use the search and replace feature of the IDE to search for and replace the above package name.

image

Highlights

ssg.experimentalWorker based on tinypool to speed up ssg process

related PR: #​2394

it is inspired by docusaurus 3.8, we introduced it so that large document sites (>=500 pages) can reduce memory usage and decrease SSG time.

it introduced a Node.js Worker Thread pool to run the SSG. With this new strategy, we can better leverage all the available CPUs, reduce static site generation time, and contain potential memory leaks.

// rspress.config.ts
import { defineConfig } from '@&#8203;rspress/core';
export default defineConfig({
   ssg: {
     experimentalWorker: true
   }
});

What's Changed

New Features 🎉
Performance 🚀
  • perf(ssg): add ssg.experimentalWorker based on tinypool to speed up ssg process by @​SoonIter in #​2394
Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.21...v2.0.0-beta.22

v2.0.0-beta.21

Compare Source

Breaking Changes 🚨

🔥Remove builderPlugins, migrate to builderConfig.plugins

related PR: #​2371

We can already configure Rsbuild in builderConfig, there is another configuration that is confusing.

https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-13729235

Migration step:

export default defineConfig({
-  builderPlugins: [
-      pluginFoo()
-  ],
+  builderConfig: {
+    plugins: [
+      pluginFoo()
+    ],
+  },
});
Expose type RspressPlugin from "rspress/core" packge

Related PR: #​2360

https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-13762129

We do not want users to use our private package like @rspress/shared, only "rspress": "2.0.0" package is all your needed

before

import type { RspressPlugin } from '@&#8203;rspress/shared';
// package.json
{
  "devDependencies": {
       "rspress": "1.44.0",
       "@&#8203;rspress/shared": "1.44.0"
  }
}

after

import type { RspressPlugin } from 'rspress/core';
// package.json
{
  "devDependencies": {
       "rspress": "2.0.0",
  }
}

For compatibility, @rspress/shared will still export RspressPlugin type, but using rspress/core and setting "rspress" as peerDependencies will make it less likely for your plugin to encounter type errors.

For example:

{
  "peerDependencies": {
     "rspress": "^2.0.0"
  }
}
FIle code block syntax support in core ```tsx file="./demo.tsx"

related PR: #​2361

Users can import an external demo file as a code block.

As we support this feature in the core. This also means that the syntax external code blocks are used in plugin-preview and plugin-playground will change.

before

only using together with @rspress/plugin-preview and @rspress/plugin-playground

<code src="./example.tsx" />

after

This syntax is supported in the core package.

```tsx file="./example.tsx"
```
// example.tsx
export default () => <div>I'm a example in another file</div>

What's Changed

New Features 🎉

Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.20...v2.0.0-beta.21

v2.0.0-beta.20

Compare Source

Breaking Changes 🚨

Enable performance.buildCache: true by default

related PR: #​2349

enable persistent cache by default, ref: https://rspack.rs/config/experiments#persistent-cache

This means that Rspress's local startup speed will be faster .

1. rspress dev

cold start 1s↓

hot start 0.3s↑

image

2. rspress build

cold build 6.48s↓

hot build 3.18s↑

image image

What's Changed

New Features 🎉
Bug Fixes 🐞
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.19...v2.0.0-beta.20

v2.0.0-beta.19

Compare Source

Breaking Changes 🚨

Related PR: #​2348

Markdown links without "./" prefix are now relative links, e.g: [subfolder](subfolder) is equal to [subfolder](./subfolder)

image

Before

[](installation) and [](installation.mdx) points to /installation.html, this behavior is strange

After

[](installation) and [](installation.mdx) points to /guide/api/installation.html

If you are updating to Rspress V2, don't worry, our friend markdown.checkDeadLinks which is also refactored can help us check and find these broken links 👬🏻

image

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.18...v2.0.0-beta.19

v2.0.0-beta.18

Compare Source

Breaking Changes 🚨

Reimplement base config with basename feature of react-router

Related PR: #​2322

If you are using const { pathname } = useLocation() together with base configuration, it should be noted that pathname will not contain base url, as the top-level BrowserRouter includes basename

What's Changed

Bug Fixes 🐞
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.17...v2.0.0-beta.18

v2.0.0-beta.17

Compare Source

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 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.16...v2.0.0-beta.17

v2.0.0-beta.16

Compare Source

What's Changed

Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.15...v2.0.0-beta.16

v2.0.0-beta.15

Compare Source

What's Changed

Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.14...v2.0.0-beta.15

v2.0.0-beta.14

Compare Source

Breaking Changes 🚨

Remove @rspress/plugin-shiki package and create rspress/shiki-transformers🔥

related PR: #​2270

We have already enabled shiki by default, so this package is no longer maintained.

If you want to use some built-in transformers of Rspress, you can do this below:

import { transformerCompatibleMetaHighlight } from "rspress/shiki-transformers";

It also supports using it in React components,

For example:

import { CodeBlockRuntime } from '@&#8203;theme';
import { transformerNotationHighlight } from '@&#8203;shikijs/transformers';
import { transformerLineNumber } from "rspress/shiki-transformers";

<CodeBlockRuntime
  lang="ts"
  title="highlight.ts"
  code={`console.log('Highlighted'); // [!code highlight]
// [!code highlight:1]
console.log('Highlighted');
console.log('Not highlighted');`}
  shikiOptions={{
    transformers: [transformerNotationHighlight(), transformerLineNumber()],
  }}
/>

What's Changed

New Features 🎉
Bug Fixes 🐞
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.13...v2.0.0-beta.14

v2.0.0-beta.13

Compare Source

What's Changed

Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.12...v2.0.0-beta.13

v2.0.0-beta.12

Compare Source

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.11...v2.0.0-beta.12

v2.0.0-beta.11

Compare Source

What's Changed

Performance 🚀
  • perf(ssg/async): ssg concurrency and use react18 renderToPipeableStream instead of renderToString by @​SoonIter in #​2243
  • perf(ssg/client): use React 18 startTransition for hydration by @​SoonIter in #​2245
Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.10...v2.0.0-beta.11

v2.0.0-beta.10

Compare Source

What's Changed

Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.9...v2.0.0-beta.10

v2.0.0-beta.9

Compare Source

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.8...v2.0.0-beta.9

v2.0.0-beta.8

Compare Source

Highlights

Add <CodeBlockRuntime /> component for dynamic code block highlighting

related PR: #​2190, #​2206

This is an escape hatch, which can be used for dynamic code block highlighting when the shiki highlighting at compile time does not meet your needs.

import { CodeBlockRuntime } from '@&#8203;theme';
import { transformerNotationHighlight } from '@&#8203;shikijs/transformers';

<CodeBlockRuntime
  lang="ts"
  title="highlight.ts"
  code={`console.log('Highlighted'); // [!code highlight]
// [!code highlight:1]
console.log('Highlighted');
console.log('Not highlighted');`}
  shikiOptions={{
    transformers: [transformerNotationHighlight()],
  }}
/>

What's Changed

New Features 🎉
Bug Fixes 🐞
  • fix(CodeBlockRuntime): CodeBlockRuntime should render the same dom structure with compile-time code block by @​SoonIter in #​2206
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.7...v2.0.0-beta.8

v2.0.0-beta.7

Compare Source

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.6...v2.0.0-beta.7

v2.0.0-beta.6

Compare Source

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.5...v2.0.0-beta.6

v2.0.0-beta.5

Compare Source

Highlights

Use shiki v3 by default, drop prism support

related PR: #​1672, #​2046, #​2122

Migrate all code highlighting from prism to shiki in compile time. It is worth noting that some code block syntax will be changed, e.g transformerNotationHighlight

More info: https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-12458121

before

import { defineConfig } from 'rspress/config';
import { pluginShiki, createTransformerLineNumber, createTransformerDiff } from '@&#8203;rspress/plugin-shiki';

export default defineConfig({
  plugins: [
    pluginShiki({
      transformers: [
        createTransformerLineNumber(),
        createTransformerDiff(),
        // createTransformerErrorLevel(),
        // createTransformerHighlight(),
        // createTransformerFocus(),
      ],
    }),
  ],
});

after

import { defineConfig } from 'rspress/config';
import {
  transformerNotationDiff,
} from '@&#8203;shikijs/transformers';

export default defineConfig({
  markdown: {
    showLineNumber: true,
    shiki: {
        transformers: [
          transformerNotationDiff(),
          // transformerNotationErrorLevel(),
          // transformerNotationFocus(),
          // transformerNotationHighlight(),
      ],
    }
  }
});
Support JSON schema for _meta.json

related PR: #​2079

Now you can get type hints in the IDE. For example, in VSCode you can set

// .vscode/settings.json
{
 //...
 "json.schemas": [
    {
      "fileMatch": ["**/_meta.json"],
      "url": "./node_modules/rspress/meta-json-schema.json"
      // or "url": "https://unpkg.com/rspress@2.0.0-beta.5/meta-json-schema.json"
    }
  ],
  // ...
}

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
  • docs(algolia-search): use new docsearch account and optimize the dark mode by @​SoonIter in #​2131
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.4...v2.0.0-beta.5

v2.0.0-beta.4

Compare Source

Highlights

Enable dev.lazyCompilation: true by default

related PR: #​2123

1. startup instantly

startup time 50x↑ faster with lazyCompilation: true

before 3.80s↓

image

after 0.05s↑

image

2. When preload meets lazyCompilation magic, a magical chemical burst out

Rspress will preload the corresponding route when hovering over the link, then a magical chemical reaction bursts out between lazyCompilation and preload, enabling a seamless refresh experience.

What's Changed

New Features 🎉
Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.3...v2.0.0-beta.4

v2.0.0-beta.3

Compare Source

Highlights

Support dynamic TOC generation

related PR: #​2018

It brings the application of the mdx component to a new level, ships lots of features and closes lots of issues

1. Support mdx with <Tabs />
image
2. Support the <Badge /> in Title

e.g:

// foo.mdx

## Title <Badge>Required</Badge>

What's Changed

New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.2...v2.0.0-beta.3

v2.0.0-beta.2

Compare Source

Highlights

@​rspress/plugin-llms

related PR: #​2034, #​2093

Generate llms.txt related files for your Rspress site, allowing large language models to better understand your documentation site.

What's Changed

New Features 🎉
  • feat(plugin-llms): add include option and only generate for default lang by @​SoonIter in #​2093
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.1...v2.0.0-beta.2

v2.0.0-beta.1

Compare Source

Breaking Changes 🚨

Remove mdxRs options

related PR: #​2087

The core process of Rspress 2.0 will be handled by mdxjs with shiki, facilitating feature iteration. MdxRs would only handle some meta data generation. After a period of iteration, consideration may be given to mdxRs

Drop support for Node 16

related PR: #​2085

Node16 has reached EOL on September 11th, 2023, see https://nodejs.org/en/blog/announcements/nodejs16-eol

Rspress 2.0 will drop support for Node 16 and the minimum supported Node version is 18.

Highlights

Migrate all the packages to "type: module" and pure esm with publint

related PR: #​2084

What's Changed

New Features 🎉
Bug Fixes 🐞
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.0...v2.0.0-beta.1

v2.0.0-beta.0

Breaking Changes 🚨

Upgrade to react@​19 and react-dom@​19

related PR: #​2073

What's Changed

New Features 🎉
Document 📖
Other Changes

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.0-alpha.12...v2.0.0-beta.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@rspress/plugin-client-redirects](https://github.com/web-infra-dev/rspress) ([source](https://github.com/web-infra-dev/rspress/tree/HEAD/packages/plugin-client-redirects)) | [`2.0.0-alpha.12` -> `2.0.0-rc.1`](https://renovatebot.com/diffs/npm/@rspress%2fplugin-client-redirects/2.0.0-alpha.12/2.0.0-rc.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@rspress%2fplugin-client-redirects/2.0.0-rc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspress%2fplugin-client-redirects/2.0.0-alpha.12/2.0.0-rc.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>web-infra-dev/rspress (@&#8203;rspress/plugin-client-redirects)</summary> ### [`v2.0.0-rc.1`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.1) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.0...v2.0.0-rc.1) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat(theme): add transition isPending UI to Sidebar by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2778](https://github.com/web-infra-dev/rspress/pull/2778) - feat(plugin-twoslash): Make it possible to configure compilerOptions for TypeScript in twoslash by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2773](https://github.com/web-infra-dev/rspress/pull/2773) ##### Bug Fixes 🐞 - fix(theme): nprogress bar color by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2770](https://github.com/web-infra-dev/rspress/pull/2770) - fix(theme): button gradient color and add line-height back by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2771](https://github.com/web-infra-dev/rspress/pull/2771) - fix(theme): Link click area should be same by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2777](https://github.com/web-infra-dev/rspress/pull/2777) - fix(search): SearchPanel Enter keyboard not work regression by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2775](https://github.com/web-infra-dev/rspress/pull/2775) - fix(route): should be compatiable to lowercase routePath by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2776](https://github.com/web-infra-dev/rspress/pull/2776) - fix(theme): scroll should work in afterNav by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2779](https://github.com/web-infra-dev/rspress/pull/2779) - fix(theme): line-height of SourceCode component by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2783](https://github.com/web-infra-dev/rspress/pull/2783) - fix(theme): adjust line-height of sidebar and outline by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2784](https://github.com/web-infra-dev/rspress/pull/2784) - fix(theme): unused code by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2781](https://github.com/web-infra-dev/rspress/pull/2781) - fix(theme): section-header margin-top wrong selector by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2782](https://github.com/web-infra-dev/rspress/pull/2782) - fix(theme): h2 gap and twoslash codeblock style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2786](https://github.com/web-infra-dev/rspress/pull/2786) - fix(theme): moon svg white border by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2788](https://github.com/web-infra-dev/rspress/pull/2788) ##### Other Changes - Release v2.0.0-rc.0 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2756](https://github.com/web-infra-dev/rspress/pull/2756) - chore(theme): NavScreenItem should handle external link by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2780](https://github.com/web-infra-dev/rspress/pull/2780) - chore(deps): update glob and rollup to solve security vulnerabilities by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2785](https://github.com/web-infra-dev/rspress/pull/2785) - Release v2.0.0-rc.1 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2789](https://github.com/web-infra-dev/rspress/pull/2789) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-rc.0...v2.0.0-rc.1> ### [`v2.0.0-rc.0`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-rc.0) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.35...v2.0.0-rc.0) <!-- Release notes generated using configuration in .github/release.yml at release_v2.0.0-rc.0 --> #### Highlights ✨ ##### 💄 Brand new theme > related PR: [#&#8203;2738](https://github.com/web-infra-dev/rspress/issues/2738), [#&#8203;2719](https://github.com/web-infra-dev/rspress/issues/2719), [#&#8203;2698](https://github.com/web-infra-dev/rspress/issues/2698), [#&#8203;2690](https://github.com/web-infra-dev/rspress/issues/2690), [#&#8203;2533](https://github.com/web-infra-dev/rspress/issues/2533), [#&#8203;2656](https://github.com/web-infra-dev/rspress/issues/2656) ##### 1. BEM classname 🕶 All built-in components now adopt BEM naming. This is a rather old-school choice, but a deliberate one based on user feedback. Compared with Tailwind CSS, it allows you to flexibly adjust styles anywhere using standard CSS selectors, without restrictions. For user-side customized doc components, you are free to choose any styling approach — including Tailwind CSS — without worrying about conflicts with Rspress’s default styles. *** ##### 2. Built-in Default i18n Text 🌏 > related PR: [#&#8203;2738](https://github.com/web-infra-dev/rspress/issues/2738) The new theme includes a set of default translation strings and supports "treeshaking" based on the languages configured in your project: - If your documentation includes only en and zh, only those languages will be bundled. - For languages not supported by Rspress, it automatically falls back to en. In most cases, you barely need to configure any i18n text manually, which significantly improves usability. You only need to configure i18nSource in rspress.config.ts when a language is missing or when you want to override built-in texts. In 2.0.0-rc.0, based on contributions from the community, Rspress now includes four built-in languages: zh, en, ja, and ko. Welcome more contributors to help improve and expand the default language texts. More info: <https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-14933678> *** ##### 3. More CSS Variables 💄 Rspress now exposes additional CSS variables covering theme colors, shiki, code blocks, the homepage, and more — greatly enhancing customization capabilities. You can experiment with them interactively at <https://v2.rspress.rs/ui/vars>, preview the results in real time, and copy the variables directly into your project. *** ##### 4. `rspress eject` 🆕 > related PR: [#&#8203;2726](https://github.com/web-infra-dev/rspress/issues/2726) `rspress eject` is a brand-new CLI command that copies the source code of Rspress’s built-in components into your project’s theme/components directory. For example: `rspress eject DocFooter` This gives you the full source of the DocFooter component, enabling you to customize it freely, such as adding license information. > Deep customization becomes effortless. The `rspress eject` feature is still in testing, and we’ll continue improving the documentation and providing more good customization examples. *** ##### 5. Improved Documentation Reading Experience 📖 Most colors and visual styles have been redesigned and refined by our designers, significantly enhancing the overall visual appeal and reading experience. #### What's Changed ##### New Features 🎉 - feat(theme)!: fully theme refactor by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2533](https://github.com/web-infra-dev/rspress/pull/2533) - feat(theme): add Banner Component by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2654](https://github.com/web-infra-dev/rspress/pull/2654) - feat(theme)!: add CodeBlock / CodeButtonGroup components and migrate `.rp-doc-outline` to `rp-toc-include` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2656](https://github.com/web-infra-dev/rspress/pull/2656) - feat(theme): add Deno support to PackageManagerTabs component by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2663](https://github.com/web-infra-dev/rspress/pull/2663) - style: deno svg adapt to dark mode by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2676](https://github.com/web-infra-dev/rspress/pull/2676) - feat: add new Component <PageTabs /> and fix link should have search query by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2683](https://github.com/web-infra-dev/rspress/pull/2683) - feat: ssg-md by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2666](https://github.com/web-infra-dev/rspress/pull/2666) - feat(plugin-twoslash): add `cache` options by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2712](https://github.com/web-infra-dev/rspress/pull/2712) - feat(theme)!: add `config.i18nSource` and default i18n text and remove serveral i18nKeys in themeConfig by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2738](https://github.com/web-infra-dev/rspress/pull/2738) - feat(codeblock): lineNumbers and wrapCode meta props support `'''tsx lineNumbers wrapCode` by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2746](https://github.com/web-infra-dev/rspress/pull/2746) - feat(CLI): Add `rspress eject` CLI command for theme component customization by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2726](https://github.com/web-infra-dev/rspress/pull/2726) - feat(theme): add pageType: doc-wide by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2759](https://github.com/web-infra-dev/rspress/pull/2759) ##### Performance 🚀 - perf: simple matchRoutes alternative [#&#8203;1863](https://github.com/web-infra-dev/rspress/issues/1863) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2673](https://github.com/web-infra-dev/rspress/pull/2673) - perf(ssg): regression after output.asyncChunks = true by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2674](https://github.com/web-infra-dev/rspress/pull/2674) ##### Bug Fixes 🐞 - fix(theme): add --rp-banner-height to scroll-padding-top by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2678](https://github.com/web-infra-dev/rspress/pull/2678) - fix(theme/Tabs): keepDOM default value should be true by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2682](https://github.com/web-infra-dev/rspress/pull/2682) - fix(theme/code): fix the table code font-size and separate inline-code-block and code-block by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2688](https://github.com/web-infra-dev/rspress/pull/2688) - fix(theme): hydration error in NavHamburger and fix Search color by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2697](https://github.com/web-infra-dev/rspress/pull/2697) - fix(theme)!: add frontmatter UI control back and remove uiSwitch by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2698](https://github.com/web-infra-dev/rspress/pull/2698) - fix(theme): OverviewGroup and title margin by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2699](https://github.com/web-infra-dev/rspress/pull/2699) - fix(theme/Banner): cannot be closed due to hydration error by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2703](https://github.com/web-infra-dev/rspress/pull/2703) - fix(mdx): preserve error stack traces from MDX plugins and limit output to 10 lines by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2711](https://github.com/web-infra-dev/rspress/pull/2711) - fix(mdx): error stack is empty by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2716](https://github.com/web-infra-dev/rspress/pull/2716) - fix(theme): Outline font family was hardcoded by [@&#8203;elliotcourant](https://github.com/elliotcourant) in [#&#8203;2739](https://github.com/web-infra-dev/rspress/pull/2739) - fix(plugin-preview): [@&#8203;theme](https://github.com/theme) module not found regression by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2741](https://github.com/web-infra-dev/rspress/pull/2741) - fix(theme): use pointer cursor for menu by [@&#8203;fi3ework](https://github.com/fi3ework) in [#&#8203;2750](https://github.com/web-infra-dev/rspress/pull/2750) - fix: pathnameToRouteService to handle URLs with hash and search parameters by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2743](https://github.com/web-infra-dev/rspress/pull/2743) - fix: do not expose scrollToTarget as public API by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2761](https://github.com/web-infra-dev/rspress/pull/2761) - fix(theme): Edit link should show by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2763](https://github.com/web-infra-dev/rspress/pull/2763) ##### Document 📖 - docs: stabilize the codeblock css vars by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2689](https://github.com/web-infra-dev/rspress/pull/2689) - docs: update logo references to use SVG version by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2737](https://github.com/web-infra-dev/rspress/pull/2737) ##### Other Changes - chore(theme): migrate more .module.scss to BEM and remove tailwind CSS by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2653](https://github.com/web-infra-dev/rspress/pull/2653) - chore(deps): update dependency create-rstack to v1.7.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2668](https://github.com/web-infra-dev/rspress/pull/2668) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2667](https://github.com/web-infra-dev/rspress/pull/2667) - chore(deps): update playwright monorepo to v1.56.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2670](https://github.com/web-infra-dev/rspress/pull/2670) - chore(deps): update dependency memfs to ^4.49.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2669](https://github.com/web-infra-dev/rspress/pull/2669) - chore(deps): upgrade to react\@&#8203;19.2.0 (react,react-dom,[@&#8203;types/react](https://github.com/types/react),[@&#8203;types/react-dom](https://github.com/types/react-dom)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2671](https://github.com/web-infra-dev/rspress/pull/2671) - chore(theme/Tabs): keepDOM in Tabs and stablize the Tabs classname by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2679](https://github.com/web-infra-dev/rspress/pull/2679) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2684](https://github.com/web-infra-dev/rspress/pull/2684) - chore(deps): update dependency [@&#8203;biomejs/biome](https://github.com/biomejs/biome) to ^2.3.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2685](https://github.com/web-infra-dev/rspress/pull/2685) - chore(deps): update dependency [@&#8203;rsbuild/plugin-vue](https://github.com/rsbuild/plugin-vue) to ^1.2.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2686](https://github.com/web-infra-dev/rspress/pull/2686) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.16.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2687](https://github.com/web-infra-dev/rspress/pull/2687) - chore!: move `@rspress/theme-default` to `@rspress/core/theme` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2690](https://github.com/web-infra-dev/rspress/pull/2690) - chore(theme/HomeLayout): polish styles by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2693](https://github.com/web-infra-dev/rspress/pull/2693) - chore(theme/Search): add backdrop-filter by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2696](https://github.com/web-infra-dev/rspress/pull/2696) - chore(deps): update flexsearch to v0.8.212 by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2691](https://github.com/web-infra-dev/rspress/pull/2691) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2706](https://github.com/web-infra-dev/rspress/pull/2706) - chore(deps): update dependency [@&#8203;rsbuild/core](https://github.com/rsbuild/core) to \~1.6.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2707](https://github.com/web-infra-dev/rspress/pull/2707) - chore(remarkContainerSyntax): throw an error when the type is unknown by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;2708](https://github.com/web-infra-dev/rspress/pull/2708) - chore: preEntry to ensures css order and splitChunks for perf by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2714](https://github.com/web-infra-dev/rspress/pull/2714) - ci: add ecosystem CI by [@&#8203;fi3ework](https://github.com/fi3ework) in [#&#8203;2710](https://github.com/web-infra-dev/rspress/pull/2710) - refactor(theme/Tabs)!: reimplement Tabs and PageTabs to bypass hydration error due to localStorage by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2719](https://github.com/web-infra-dev/rspress/pull/2719) - chore(theme/sidebar): use 1fr to toggleCollapse the sidebarGroup by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2723](https://github.com/web-infra-dev/rspress/pull/2723) - chore(theme/Toc): upgrade Toc border line in mobile by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2724](https://github.com/web-infra-dev/rspress/pull/2724) - chore(infra): add Rsdoctor bundle diff CI by [@&#8203;yifancong](https://github.com/yifancong) in [#&#8203;2722](https://github.com/web-infra-dev/rspress/pull/2722) - chore(theme/homehero): upgrade home feature style and expose CSS vars by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2728](https://github.com/web-infra-dev/rspress/pull/2728) - chore: fix diff yaml by [@&#8203;yifancong](https://github.com/yifancong) in [#&#8203;2732](https://github.com/web-infra-dev/rspress/pull/2732) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2733](https://github.com/web-infra-dev/rspress/pull/2733) - chore(deps): update dependency [@&#8203;docsearch/css](https://github.com/docsearch/css) to ^4.3.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2734](https://github.com/web-infra-dev/rspress/pull/2734) - chore(deps): update dependency [@&#8203;microsoft/api-extractor](https://github.com/microsoft/api-extractor) to ^7.54.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2736](https://github.com/web-infra-dev/rspress/pull/2736) - chore(deps): update dependency [@&#8203;docsearch/react](https://github.com/docsearch/react) to ^4.3.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2735](https://github.com/web-infra-dev/rspress/pull/2735) - chore(theme): expose base css variables by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2731](https://github.com/web-infra-dev/rspress/pull/2731) - chore(plugin-api-docgen): add default translation text for table comp associated with i18n refactor by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2744](https://github.com/web-infra-dev/rspress/pull/2744) - test: remove unused files by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2745](https://github.com/web-infra-dev/rspress/pull/2745) - chore(theme/Tabs): polish Tabs style to ::after instead of border-bottom by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2748](https://github.com/web-infra-dev/rspress/pull/2748) - security: enable pnpm's no-downgrade trustPolicy by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2751](https://github.com/web-infra-dev/rspress/pull/2751) - chore(infra): run pnpm dedupe by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2752](https://github.com/web-infra-dev/rspress/pull/2752) - chore(theme): simplify scss structure by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2753](https://github.com/web-infra-dev/rspress/pull/2753) - chore(ssg): add filepath error message by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2754](https://github.com/web-infra-dev/rspress/pull/2754) - chore(theme): polish theme colors by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2755](https://github.com/web-infra-dev/rspress/pull/2755) - chore: update pnpm trust policy exclusions by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2758](https://github.com/web-infra-dev/rspress/pull/2758) - chore(mdx): revert containerSynatx unknown types error by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2764](https://github.com/web-infra-dev/rspress/pull/2764) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2766](https://github.com/web-infra-dev/rspress/pull/2766) - chore(deps): update dependency [@&#8203;microsoft/api-extractor](https://github.com/microsoft/api-extractor) to ^7.55.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2767](https://github.com/web-infra-dev/rspress/pull/2767) - chore(deps): update dependency cspell to ^9.3.2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2768](https://github.com/web-infra-dev/rspress/pull/2768) - chore(deps): update dependency memfs to ^4.51.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2769](https://github.com/web-infra-dev/rspress/pull/2769) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.17.2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2760](https://github.com/web-infra-dev/rspress/pull/2760) #### New Contributors - [@&#8203;elliotcourant](https://github.com/elliotcourant) made their first contribution in [#&#8203;2739](https://github.com/web-infra-dev/rspress/pull/2739) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.35...v2.0.0-rc.0> ### [`v2.0.0-beta.35`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.35) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.34...v2.0.0-beta.35) <!-- Release notes generated using configuration in .github/release.yml at release_v2.0.0-beta.35 --> #### What's Changed ##### New Features 🎉 - feat(theme): add prop `dlx` to `PackageManagerTabs` for `npx` `pnpm dlx` etc by [@&#8203;Nsttt](https://github.com/Nsttt) in [#&#8203;2623](https://github.com/web-infra-dev/rspress/pull/2623) - feat(auto-nav-sidebar): add new type: "dir-section-header" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2643](https://github.com/web-infra-dev/rspress/pull/2643) - chore: cherry-pick ssg-md to beta.34 in [#&#8203;2680](https://github.com/web-infra-dev/rspress/pull/2680) ##### Bug Fixes 🐞 - fix(auto-nav-sidebar): should extract tag and fix the chunks word break by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2652](https://github.com/web-infra-dev/rspress/pull/2652) ##### Document 📖 - docs: fixed navbar example typo by [@&#8203;ulivz](https://github.com/ulivz) in [#&#8203;2645](https://github.com/web-infra-dev/rspress/pull/2645) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2629](https://github.com/web-infra-dev/rspress/pull/2629) - chore(deps): update dependency memfs to ^4.47.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2631](https://github.com/web-infra-dev/rspress/pull/2631) - chore(deps): update pnpm to v10.17.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2632](https://github.com/web-infra-dev/rspress/pull/2632) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.15.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2630](https://github.com/web-infra-dev/rspress/pull/2630) - chore(deps): update dependency [@&#8203;microsoft/api-extractor](https://github.com/microsoft/api-extractor) to ^7.53.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2637](https://github.com/web-infra-dev/rspress/pull/2637) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2636](https://github.com/web-infra-dev/rspress/pull/2636) - chore(deps): update dependency cross-env to ^10.1.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2638](https://github.com/web-infra-dev/rspress/pull/2638) - chore(deps): update dependency memfs to ^4.48.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2639](https://github.com/web-infra-dev/rspress/pull/2639) - chore(deps): update pnpm to v10.18.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2641](https://github.com/web-infra-dev/rspress/pull/2641) - chore(deps): update dependency nx to v21.6.3 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2640](https://github.com/web-infra-dev/rspress/pull/2640) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2648](https://github.com/web-infra-dev/rspress/pull/2648) - chore(deps): update dependency [@&#8203;docsearch/css](https://github.com/docsearch/css) to ^4.2.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2649](https://github.com/web-infra-dev/rspress/pull/2649) - chore(deps): update dependency tm-themes to v1.10.11 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2650](https://github.com/web-infra-dev/rspress/pull/2650) - chore(deps): update dependency [@&#8203;docsearch/react](https://github.com/docsearch/react) to ^4.2.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2651](https://github.com/web-infra-dev/rspress/pull/2651) #### New Contributors - [@&#8203;ulivz](https://github.com/ulivz) made their first contribution in [#&#8203;2645](https://github.com/web-infra-dev/rspress/pull/2645) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.34...v2.0.0-beta.35> ### [`v2.0.0-beta.34`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.34) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.33...v2.0.0-beta.34) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### 💄 Upgrade to `docsearch@4` within [@&#8203;rspress/plugin-algolia](https://github.com/rspress/plugin-algolia) > related PR: [#&#8203;2620](https://github.com/web-infra-dev/rspress/pull/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](https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/), DocSearch v4 ensures a seamless integration trusted by leading documentation sites worldwide. ref: <https://docsearch.algolia.com/docs/migrating-from-v3> <img width="1547" height="637" alt="image" src="https://github.com/user-attachments/assets/c8343bbf-5363-4825-a964-c76b66dc9788" /> <img width="1499" height="563" alt="image" src="https://github.com/user-attachments/assets/839ce4c1-7657-4277-a1f6-5ae78879e9c9" /> #### What's Changed ##### New Features 🎉 * feat!: update @&#8203;rspress/plugin-algolia to docsearch v4.1.0 by @&#8203;Copilot in https://github.com/web-infra-dev/rspress/pull/2620 * feat: support basic usage of remark-lint for link plugin by @&#8203;JounQin in https://github.com/web-infra-dev/rspress/pull/2618 ##### Bug Fixes 🐞 * fix(plugin-llms): should be compilatable to user manual nav and sidebar configuration by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2606 * fix: render HTML entities correctly in dynamic TOC by @&#8203;JounQin in https://github.com/web-infra-dev/rspress/pull/2613 * fix(theme): llms component should not be included in rp-doc by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2614 * fix(auto-nav-sidebar): watch h1 change for sidebar by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2619 ##### Document 📖 * docs: fix the ui dark mode color by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2621 * docs: adjust the folder layout by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2622 ##### Other Changes * chore(deps): update dependency rsbuild-plugin-virtual-module to v0.4.1 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2596 * chore(infra): Creation of AGENTS.md for Rspress Project by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2612 * chore(deps): update all patch dependencies by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2616 * chore(deps): update dependency memfs to ^4.43.0 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2617 * chore(deps): update dependency create-rstack to v1.6.1 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2576 * chore(deps): upgrade @&#8203;rsbuild/core@1.5.12 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2624 * refactor: replace enhanced-resolve with rspack resolver by @&#8203;stormslowly in https://github.com/web-infra-dev/rspress/pull/2578 * Release v2.0.0-beta.34 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2626 #### New Contributors * @&#8203;stormslowly made their first contribution in https://github.com/web-infra-dev/rspress/pull/2578 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.33...v2.0.0-beta.34> ### [`v2.0.0-beta.33`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.33) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.32...v2.0.0-beta.33) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes🚨 ##### Make raw HTML in md styled > related PR: [#&#8203;2600](https://github.com/web-infra-dev/rspress/pull/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 ```md ## 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> ``` - Even if Rspress supports it, it's still better not to use raw HTML: <https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md033.md> #### What's Changed ##### New Features 🎉 - feat(theme-default): Make the tab component usable in layouts other than DocLayout by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2589](https://github.com/web-infra-dev/rspress/pull/2589) - feat(theme/style)!: keep the html style be consistent with markdown syntax and `.rp-not-doc` escape hatch ([#&#8203;2579](https://github.com/web-infra-dev/rspress/issues/2579)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2600](https://github.com/web-infra-dev/rspress/pull/2600) ##### Bug Fixes 🐞 - fix(theme/style): some components should not be included in rp-doc by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2602](https://github.com/web-infra-dev/rspress/pull/2602) ##### Document 📖 - docs(ui): upgrade Rspress UI part by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2591](https://github.com/web-infra-dev/rspress/pull/2591) - docs(ui): upgrade shiki vars by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2598](https://github.com/web-infra-dev/rspress/pull/2598) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2575](https://github.com/web-infra-dev/rspress/pull/2575) - chore(deps): upgrade nx to upgrade axios and form-data by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2592](https://github.com/web-infra-dev/rspress/pull/2592) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2593](https://github.com/web-infra-dev/rspress/pull/2593) - chore(deps): update dependency memfs to ^4.39.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2595](https://github.com/web-infra-dev/rspress/pull/2595) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.13.2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2594](https://github.com/web-infra-dev/rspress/pull/2594) - chore(deps): update dependency [@&#8203;mdx-js/react](https://github.com/mdx-js/react) to v3 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2558](https://github.com/web-infra-dev/rspress/pull/2558) - test(e2e): inline-markdown add "link" example by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2601](https://github.com/web-infra-dev/rspress/pull/2601) - refactor(theme-default)!: remove unused low-frequency components LinkCard and Card by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2603](https://github.com/web-infra-dev/rspress/pull/2603) - chore(theme/style): nav group and add word-break: keep-all to navItem ([#&#8203;2568](https://github.com/web-infra-dev/rspress/issues/2568)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2604](https://github.com/web-infra-dev/rspress/pull/2604) - Release v2.0.0-beta.33 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2605](https://github.com/web-infra-dev/rspress/pull/2605) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.32...v2.0.0-beta.33> ### [`v2.0.0-beta.32`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.32) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.31...v2.0.0-beta.32) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### ⚡️ Support \_meta.json and \_nav.json HMR > related PR: [#&#8203;2549](https://github.com/web-infra-dev/rspress/pull/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](https://github.com/user-attachments/assets/162906cc-9b1d-4c47-b1d8-040a0e40a33b) #### What's Changed ##### New Features 🎉 - feat(auto-nav-sidebar): support \_meta.json and \_nav.json hmr by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2549](https://github.com/web-infra-dev/rspress/pull/2549) - feat(twoslash): improve underline styling and adjust popup docs font-size by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2554](https://github.com/web-infra-dev/rspress/pull/2554) - feat: export star from react-router-dom by [@&#8203;zoolsher](https://github.com/zoolsher) in [#&#8203;2577](https://github.com/web-infra-dev/rspress/pull/2577) - feat(plugin-twoslash): Make the popup that is always displayed not flip its display position by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2580](https://github.com/web-infra-dev/rspress/pull/2580) ##### Bug Fixes 🐞 - fix(plugin-api-docgen): too much apiDocMap clone in pageData cause performance issue in runtime by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2524](https://github.com/web-infra-dev/rspress/pull/2524) - fix(plugin-playground): normalizeUrl skip protocol([#&#8203;2563](https://github.com/web-infra-dev/rspress/issues/2563)) ([#&#8203;2565](https://github.com/web-infra-dev/rspress/issues/2565)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2584](https://github.com/web-infra-dev/rspress/pull/2584) - fix: suggestions object key with constructor by [@&#8203;zoolsher](https://github.com/zoolsher) in [#&#8203;2586](https://github.com/web-infra-dev/rspress/pull/2586) ##### Document 📖 - docs(codeblocks): add diff block by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2551](https://github.com/web-infra-dev/rspress/pull/2551) - docs: add Zephyr to docs by [@&#8203;Nsttt](https://github.com/Nsttt) in [#&#8203;2555](https://github.com/web-infra-dev/rspress/pull/2555) - docs: add zh docs of deploy with Zephyr Cloud by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2572](https://github.com/web-infra-dev/rspress/pull/2572) ##### Other Changes - chore(deps): update actions/setup-node action to v5 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2557](https://github.com/web-infra-dev/rspress/pull/2557) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2556](https://github.com/web-infra-dev/rspress/pull/2556) - chore(deps): update dependency [@&#8203;types/jest](https://github.com/types/jest) to v30 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2559](https://github.com/web-infra-dev/rspress/pull/2559) - chore(deps): update dependency cspell to v9 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2561](https://github.com/web-infra-dev/rspress/pull/2561) - chore(deps): remove unused [@&#8203;types/jest](https://github.com/types/jest) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2562](https://github.com/web-infra-dev/rspress/pull/2562) - chore(infra): upgrade pnpm configuration to remove hoist by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2564](https://github.com/web-infra-dev/rspress/pull/2564) - chore(deps): update dependency cross-env to v10 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2560](https://github.com/web-infra-dev/rspress/pull/2560) - test(e2e): fix ci case sensitivity by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2566](https://github.com/web-infra-dev/rspress/pull/2566) - chore(persistent-cache): add rspress version to cacheDigest to make it more safe by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2582](https://github.com/web-infra-dev/rspress/pull/2582) - chore(infra): use strictPeerDependencies: false by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2587](https://github.com/web-infra-dev/rspress/pull/2587) - Release v2.0.0-beta.32 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2588](https://github.com/web-infra-dev/rspress/pull/2588) #### New Contributors - [@&#8203;Nsttt](https://github.com/Nsttt) made their first contribution in [#&#8203;2555](https://github.com/web-infra-dev/rspress/pull/2555) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.31...v2.0.0-beta.32> ### [`v2.0.0-beta.31`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.31) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.30...v2.0.0-beta.31) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat(plugin-twoslash): Improve error handling with enhanced logging by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2544](https://github.com/web-infra-dev/rspress/pull/2544) ##### Bug Fixes 🐞 - fix(theme-default/style): add `color: inherit` back by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2546](https://github.com/web-infra-dev/rspress/pull/2546) - fix: hmr not work by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2545](https://github.com/web-infra-dev/rspress/pull/2545) ##### Document 📖 - docs: polish twoslash usage doc by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2542](https://github.com/web-infra-dev/rspress/pull/2542) - docs(plugin-twoslash): fix typo by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2543](https://github.com/web-infra-dev/rspress/pull/2543) ##### Other Changes - Release v2.0.0-beta.31 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2548](https://github.com/web-infra-dev/rspress/pull/2548) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.30...v2.0.0-beta.31> ### [`v2.0.0-beta.30`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.30) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.29...v2.0.0-beta.30) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### 🆕️ [@&#8203;rspress/plugin-twoslash](https://github.com/rspress/plugin-twoslash) > related PR: [#&#8203;2527](https://github.com/web-infra-dev/rspress/pull/2527) Thanks to Shiki's excellent [Twoslash](https://twoslash.netlify.app/guide/) 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 [@&#8203;Karibash](https://github.com/Karibash) for making this possible. Check out the [@&#8203;rspress/plugin-twoslash documentation](https://v2.rspress.rs/plugin/official-plugins/twoslash) to get started! ref: <https://v2.rspress.rs/plugin/official-plugins/twoslash> <img width="1358" height="835" alt="Frame 1912054720" src="https://github.com/user-attachments/assets/30bcdcb8-4722-4820-bc17-d34be4e327f3" /> ##### ⚡️Enable Rspack native watcher by default and bump Rspack@1.5.2 > related PR: [#&#8203;2472](https://github.com/web-infra-dev/rspress/pull/2472) > Previously, Rspack relied on the [watchpack](https://github.com/webpack/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 [#&#8203;7490](https://github.com/web-infra-dev/rspack/issues/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 🎉 - feat: Add a twoslash plugin by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2527](https://github.com/web-infra-dev/rspress/pull/2527) - feat: enable rspack native watcher by default by [@&#8203;GiveMe-A-Name](https://github.com/GiveMe-A-Name) in [#&#8203;2472](https://github.com/web-infra-dev/rspress/pull/2472) ##### Bug Fixes 🐞 - fix(core): allow user can deploy to both `http://a.com/base/` and `http://a.com/base` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2536](https://github.com/web-infra-dev/rspress/pull/2536) - fix(native-watcher): Infinite watch removed i18n.json by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2540](https://github.com/web-infra-dev/rspress/pull/2540) - fix(plugin-twoslash): Prevent the contents of the popup from being copied when copying code by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2538](https://github.com/web-infra-dev/rspress/pull/2538) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2530](https://github.com/web-infra-dev/rspress/pull/2530) - chore(deps): update rsbuild by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2531](https://github.com/web-infra-dev/rspress/pull/2531) - chore(deps): update actions/checkout action to v5 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2535](https://github.com/web-infra-dev/rspress/pull/2535) - chore(deps): update shiki monorepo to ^3.12.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2534](https://github.com/web-infra-dev/rspress/pull/2534) - chore(plugin-llms): add animation to LlmsViewOptions by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2532](https://github.com/web-infra-dev/rspress/pull/2532) - chore(deps): upgrade [@&#8203;rsbuild/core](https://github.com/rsbuild/core) to 1.5.3 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2539](https://github.com/web-infra-dev/rspress/pull/2539) - chore(plugin-twoslash): add hover style back by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2541](https://github.com/web-infra-dev/rspress/pull/2541) - Release v2.0.0-beta.30 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2537](https://github.com/web-infra-dev/rspress/pull/2537) #### New Contributors - [@&#8203;GiveMe-A-Name](https://github.com/GiveMe-A-Name) made their first contribution in [#&#8203;2472](https://github.com/web-infra-dev/rspress/pull/2472) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.29...v2.0.0-beta.30> ### [`v2.0.0-beta.29`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.29) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.28...v2.0.0-beta.29) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat(link): support asset link by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2498](https://github.com/web-infra-dev/rspress/pull/2498) - style(theme): update primary text color for better contrast by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2499](https://github.com/web-infra-dev/rspress/pull/2499) - feat(create-rspress): update tsconfig.json by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2509](https://github.com/web-infra-dev/rspress/pull/2509) - feat(theme): Make it possible to mark elements to be excluded when copying by [@&#8203;Karibash](https://github.com/Karibash) in [#&#8203;2512](https://github.com/web-infra-dev/rspress/pull/2512) - feat(plugin-llms): support `mdFiles.remarkPlugins` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2516](https://github.com/web-infra-dev/rspress/pull/2516) ##### Bug Fixes 🐞 - fix(virtual-module): should addDependencies in virtual-module for persistent cache by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2519](https://github.com/web-infra-dev/rspress/pull/2519) - fix: command using object fully customize don't call normalize by [@&#8203;zoolsher](https://github.com/zoolsher) in [#&#8203;2528](https://github.com/web-infra-dev/rspress/pull/2528) ##### Document 📖 - docs: add asset links and format with biome by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2507](https://github.com/web-infra-dev/rspress/pull/2507) - docs: add codeblock by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2500](https://github.com/web-infra-dev/rspress/pull/2500) - docs(codeblocks): polish some write style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2508](https://github.com/web-infra-dev/rspress/pull/2508) - docs: polish codeblocks doc V2 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2517](https://github.com/web-infra-dev/rspress/pull/2517) ##### Other Changes - refactor: add usePage hook by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2494](https://github.com/web-infra-dev/rspress/pull/2494) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2501](https://github.com/web-infra-dev/rspress/pull/2501) - chore(deps): update dependency [@&#8203;rstack-dev/doc-ui](https://github.com/rstack-dev/doc-ui) to ^1.11.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2502](https://github.com/web-infra-dev/rspress/pull/2502) - chore(deps): update dependency memfs to ^4.38.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2503](https://github.com/web-infra-dev/rspress/pull/2503) - chore(deps): update playwright monorepo to v1.55.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2504](https://github.com/web-infra-dev/rspress/pull/2504) - chore(deps): update pnpm to v10.15.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2505](https://github.com/web-infra-dev/rspress/pull/2505) - chore(deps): update shiki monorepo to ^3.11.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2506](https://github.com/web-infra-dev/rspress/pull/2506) - chore(deps): bump Rsbuild 1.5.0 by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2511](https://github.com/web-infra-dev/rspress/pull/2511) - chore(plugin-preview)!: remove [@&#8203;rsbuild/plugin-less](https://github.com/rsbuild/plugin-less) and [@&#8203;rsbuild/plugin-sass](https://github.com/rsbuild/plugin-sass) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2513](https://github.com/web-infra-dev/rspress/pull/2513) - chore(deps): revert [@&#8203;rsbuild/core](https://github.com/rsbuild/core)@&#8203;1.5.0 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2515](https://github.com/web-infra-dev/rspress/pull/2515) - Release v2.0.0-beta.29 by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2529](https://github.com/web-infra-dev/rspress/pull/2529) #### New Contributors - [@&#8203;Karibash](https://github.com/Karibash) made their first contribution in [#&#8203;2512](https://github.com/web-infra-dev/rspress/pull/2512) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.28...v2.0.0-beta.29> ### [`v2.0.0-beta.28`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.28) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.27...v2.0.0-beta.28) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat: generate Open Graph title and type tags by default by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2490](https://github.com/web-infra-dev/rspress/pull/2490) ##### Bug Fixes 🐞 - fix(deps): remove unused dependencies from multiple packages by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2493](https://github.com/web-infra-dev/rspress/pull/2493) - fix(theme): move rspress-logo and some other styles out of rp-base layer by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2488](https://github.com/web-infra-dev/rspress/pull/2488) ##### Document 📖 - docs: upgrade readme and add npm link to docsite by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2491](https://github.com/web-infra-dev/rspress/pull/2491) ##### Other Changes - refactor: remove unused normalizeHrefInRuntime by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2482](https://github.com/web-infra-dev/rspress/pull/2482) - refactor: normalizeThemeConfig code style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2481](https://github.com/web-infra-dev/rspress/pull/2481) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2483](https://github.com/web-infra-dev/rspress/pull/2483) - chore(deps): update actions/checkout action to v4.3.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2484](https://github.com/web-infra-dev/rspress/pull/2484) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.12.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2486](https://github.com/web-infra-dev/rspress/pull/2486) - chore(deps): update dependency [@&#8203;biomejs/biome](https://github.com/biomejs/biome) to ^2.2.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2485](https://github.com/web-infra-dev/rspress/pull/2485) - refactor(virtual-module): move searchIndex to rsbuild-plugin-virtual-module by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2487](https://github.com/web-infra-dev/rspress/pull/2487) - refactor(virtual-module): update lark icon and virtual-social-links by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2492](https://github.com/web-infra-dev/rspress/pull/2492) - chore(search): polish search jump logic and add searchHooks e2e by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2496](https://github.com/web-infra-dev/rspress/pull/2496) - Release v2.0.0-beta.28 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2497](https://github.com/web-infra-dev/rspress/pull/2497) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.27...v2.0.0-beta.28> ### [`v2.0.0-beta.27`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.27) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.26...v2.0.0-beta.27) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### Add layer for base.css to support tailwind v4 > related PR: [#&#8203;2477](https://github.com/web-infra-dev/rspress/pull/2477) #### What's Changed ##### New Features 🎉 - feat(theme)!: add layer for base.css to support tailwind v4 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2477](https://github.com/web-infra-dev/rspress/pull/2477) ##### Bug Fixes 🐞 - fix: export `usePage` to replace deprecated `usePageData` by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2471](https://github.com/web-infra-dev/rspress/pull/2471) - fix: revert asset link support and fix the corner case when filename contains dot by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2473](https://github.com/web-infra-dev/rspress/pull/2473) ##### Document 📖 - docs(mdx): add markdown container part by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2467](https://github.com/web-infra-dev/rspress/pull/2467) ##### Other Changes - chore(core): add runtime alias by default for multi-instance problem in monorepo by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2463](https://github.com/web-infra-dev/rspress/pull/2463) - chore: remove unused constant by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2465](https://github.com/web-infra-dev/rspress/pull/2465) - refactor(theme): usePageData => usePage by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2466](https://github.com/web-infra-dev/rspress/pull/2466) - chore(theme): rename useSiteData to useSite by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2474](https://github.com/web-infra-dev/rspress/pull/2474) - chore(infra/script): update css typed modules by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2476](https://github.com/web-infra-dev/rspress/pull/2476) - chore: move website to the workspace root by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2478](https://github.com/web-infra-dev/rspress/pull/2478) - Release v2.0.0-beta.27 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2480](https://github.com/web-infra-dev/rspress/pull/2480) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.26...v2.0.0-beta.27> ### [`v2.0.0-beta.26`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.26) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.25...v2.0.0-beta.26) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Bug Fixes 🐞 - fix(auto-nav-sidebar): correct both \_meta.json and \_nav.json exist behavior by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2453](https://github.com/web-infra-dev/rspress/pull/2453) - fix(plugin-llms): support dark mode by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2455](https://github.com/web-infra-dev/rspress/pull/2455) - fix(theme/Link): Link and HomeHero should support relative url by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2456](https://github.com/web-infra-dev/rspress/pull/2456) ##### Document 📖 - docs: add Rslint and version badges to Rstack tools table by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2451](https://github.com/web-infra-dev/rspress/pull/2451) ##### Other Changes - refactor(runtime): split hooks into several files by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2454](https://github.com/web-infra-dev/rspress/pull/2454) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2457](https://github.com/web-infra-dev/rspress/pull/2457) - chore(deps): update dependency zx to ^8.8.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2458](https://github.com/web-infra-dev/rspress/pull/2458) - chore(deps): update rsbuild by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2459](https://github.com/web-infra-dev/rspress/pull/2459) - chore(deps): update dependency react-router-dom to ^6.30.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2338](https://github.com/web-infra-dev/rspress/pull/2338) - chore(deps): update shiki monorepo to ^3.9.2 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2460](https://github.com/web-infra-dev/rspress/pull/2460) - Release v2.0.0-beta.26 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2461](https://github.com/web-infra-dev/rspress/pull/2461) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.25...v2.0.0-beta.26> ### [`v2.0.0-beta.25`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.25) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.24...v2.0.0-beta.25) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### Enable trusted publishing for npm packages OIDC ♻️ > related PR: [#&#8203;2444](https://github.com/web-infra-dev/rspress/pull/2444) ref: <https://docs.npmjs.com/trusted-publishers> <img width="660" height="117" alt="image" src="https://github.com/user-attachments/assets/16b388a7-28bf-4076-b863-3003c2972cbb" /> ##### UI Display of plugin-llms update 🆕️ > related PR: [#&#8203;2439](https://github.com/web-infra-dev/rspress/pull/2439) <img width="1510" height="428" alt="image" src="https://github.com/user-attachments/assets/46018528-ddd9-462a-8c4a-c8f7a8e612ce" /> #### What's Changed ##### New Features 🎉 * feat(plugin-llms/runtime): add markdownLink for copy by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2439 * feat: add npm icon to social links by @&#8203;saseungmin in https://github.com/web-infra-dev/rspress/pull/2441 * feat(plugin-llms)!: default value for i18n by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2448 ##### Bug Fixes 🐞 * fix(tab-list): Fix tabs scrolling when not overflowing by @&#8203;howlettt in https://github.com/web-infra-dev/rspress/pull/2433 * fix(link): should support public folder asset by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2440 * fix(plugin-llms): some md files sometimes do not emit by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2443 ##### Document 📖 * docs(typo): update plugin-llms by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2432 * docs(v2): update code block line highlighting syntax to v2 by @&#8203;saseungmin in https://github.com/web-infra-dev/rspress/pull/2431 * docs: add npm icon to social links in theme config documentation by @&#8203;saseungmin in https://github.com/web-infra-dev/rspress/pull/2442 ##### Other Changes * chore(deps): update all patch dependencies by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2435 * chore(deps): update dependency @&#8203;types/babel__traverse to ^7.28.0 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2436 * chore(deps): update dependency memfs to ^4.36.0 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2437 * chore(deps): update pnpm to v10.14.0 by @&#8203;renovate[bot] in https://github.com/web-infra-dev/rspress/pull/2438 * chore: enable trusted publishing for npm packages by @&#8203;Timeless0911 in https://github.com/web-infra-dev/rspress/pull/2444 * Release v2.0.0-beta.25 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2449 #### New Contributors * @&#8203;howlettt made their first contribution in https://github.com/web-infra-dev/rspress/pull/2433 * @&#8203;saseungmin made their first contribution in https://github.com/web-infra-dev/rspress/pull/2431 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.24...v2.0.0-beta.25> ### [`v2.0.0-beta.24`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.24) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.23...v2.0.0-beta.24) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### UI LlmsCopyButton of llms.txt 🤖 > related PR: [#&#8203;2426](https://github.com/web-infra-dev/rspress/pull/2426) We hope that llms.txt will have a greater role in AI era. Thanks to fumadocs, it is inspired from fumadocs's docsite <img width="700" height="583" alt="image" src="https://github.com/user-attachments/assets/892c5766-64b9-4b07-b860-d52962b3c19f" /> ref: <https://v2.rspress.rs/plugin/official-plugins/llms#2-ui-display> #### What's Changed ##### New Features 🎉 - feat(plugin-llms): add LlmsCopyButton by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2426](https://github.com/web-infra-dev/rspress/pull/2426) ##### Bug Fixes 🐞 - fix(plugin-llms)!: default value change mdxToMd: false by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2428](https://github.com/web-infra-dev/rspress/pull/2428) ##### Document 📖 - docs: polish the use-mdx/components by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2425](https://github.com/web-infra-dev/rspress/pull/2425) ##### Other Changes - chore(deps): update rsbuild 1.4.12 and more accurate persistent cache by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2429](https://github.com/web-infra-dev/rspress/pull/2429) - Release v2.0.0-beta.24 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2430](https://github.com/web-infra-dev/rspress/pull/2430) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.23...v2.0.0-beta.24> ### [`v2.0.0-beta.23`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.23) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.22...v2.0.0-beta.23) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Enable `markdown.link.checkDeadLinks` by default > related PR: [#&#8203;2423](https://github.com/web-infra-dev/rspress/pull/2423) Rspress V2 now re-implements the dead link check feature. More information is obtained during compilation, resulting in more accurate results and more beautiful logs. <img width="400" height="864" alt="image" src="https://github.com/user-attachments/assets/dfa92de1-40ff-4237-93b4-9fc664cbc1df" /> Ref: <https://v2.rspress.rs/guide/basic/use-mdx/link>, <https://v2.rspress.rs/zh/api/config/config-build#markdownlinkcheckdeadlinks> ##### MDX fragments usage (ignore "\_" prefix routes via `route.excludeConvention`) > related PR: [#&#8203;2149](https://github.com/web-infra-dev/rspress/pull/2149) In the [docs directory](http://localhost:3001/api/config/config-basic#root), MDX fragments or React components need to be excluded from routing through the [route.exclude](http://localhost:3001/api/config/config-basic#routeexclude) configuration. For convenience, we agree that files starting with "\_" will be excluded by default. <img width="400" height="570" alt="image" src="https://github.com/user-attachments/assets/146dac7b-e491-4a6b-99e7-3b239b07d8a8" /> Ref: <https://v2.rspress.rs/guide/basic/use-mdx/components> #### Highlights ✨ ##### New plugin `@rspress/plugin-sitemap` 🗺️ > related PR: [#&#8203;2416](https://github.com/web-infra-dev/rspress/pull/2416) thanks to [@&#8203;jl917](https://github.com/jl917), he created [rspress-plugin-sitemap](https://github.com/jl917/rspress-plugin-sitemap.git) during Rspress V1 for generating sitemap. `@rspress/plugin-sitemap` is a forked version of `rspress-plugin-sitemap` and it is compatible with Rspress V2. During Rspress V2, it will be maintained as an official Rspress plugin. Ref: <https://v2.rspress.rs/plugin/official-plugins/sitemap> ##### Documentation of Rspress V2 is happening📚 Most of the breaking changes in Rspress V2 have been completed, and we are now gradually enriching the documentation and standardizing various features provided to Rspress users such as [links](https://v2.rspress.rs/guide/basic/use-mdx/link) and [mdx fragments usage](https://v2.rspress.rs/guide/basic/use-mdx/components) #### What's Changed ##### New Features 🎉 - feat(plugin-sitemap): init [@&#8203;rspress/plugin-sitemap](https://github.com/rspress/plugin-sitemap) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2416](https://github.com/web-infra-dev/rspress/pull/2416) - feat!: enable `checkDeadLinks` by default and add `markdown.link.autoPrefix` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2415](https://github.com/web-infra-dev/rspress/pull/2415) - feat(core)!: routeService ignore "\_" prefix files by default by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2149](https://github.com/web-infra-dev/rspress/pull/2149) ##### Performance 🚀 - perf(mdx/crossCompilerCache): free the memory after one read by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2418](https://github.com/web-infra-dev/rspress/pull/2418) ##### Bug Fixes 🐞 - fix(fileCodeBlock): should support hmr by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2423](https://github.com/web-infra-dev/rspress/pull/2423) ##### Document 📖 - docs: beta.22 [@&#8203;rspress/core](https://github.com/rspress/core) breakingchange fix by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2414](https://github.com/web-infra-dev/rspress/pull/2414) - docs: add [@&#8203;rspress/plugin-sitemap](https://github.com/rspress/plugin-sitemap) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2417](https://github.com/web-infra-dev/rspress/pull/2417) ##### Other Changes - chore: add open collective funding link by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2411](https://github.com/web-infra-dev/rspress/pull/2411) - chore(deps): update Biome to v2 by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2412](https://github.com/web-infra-dev/rspress/pull/2412) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2420](https://github.com/web-infra-dev/rspress/pull/2420) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.11.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2421](https://github.com/web-infra-dev/rspress/pull/2421) - Release v2.0.0-beta.23 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2424](https://github.com/web-infra-dev/rspress/pull/2424) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.22...v2.0.0-beta.23> ### [`v2.0.0-beta.22`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.22) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.21...v2.0.0-beta.22) #### Breaking Changes 🚨 ##### Merge `rspress` package to `@rspress/core` package > related PR: [#&#8203;2386](https://github.com/web-infra-dev/rspress/pull/2386) It means `rspress` package will be deprecated, please migrate the package name to the following package name. `rspress` => `@rspress/core` `rspress/config` => `@rspress/core` `rspress/theme` => `@rspress/core/theme` `rspress/runtime` => `@rspress/core/runtime` `rspress/shiki-transformers` => `@rspress/core/shiki-transformers` **before** ```ts // rspress.config.ts import { defineConfig } from 'rspress/config'; export default defineConfig({ }); ``` ```ts // theme/index.ts import { usePageData, useDark } from 'rspress/runtime'; import { HomeLayout } from 'rspress/theme' ``` **after** ```ts // rspress.config.ts import { defineConfig } from '@&#8203;rspress/core'; export default defineConfig({ }); ``` ```ts // theme/index.ts import { usePageData, useDark } from '@&#8203;rspress/core/runtime'; import { HomeLayout } from '@&#8203;rspress/core/theme' ``` **Migration Steps from V1** You can use the search and replace feature of the IDE to search for and replace the above package name. <img width="300" height="364" alt="image" src="https://github.com/user-attachments/assets/f888dbe6-cfd9-40c5-8b83-f15a94a2c007" /> #### Highlights ✨ ##### `ssg.experimentalWorker` based on tinypool to speed up ssg process > related PR: [#&#8203;2394](https://github.com/web-infra-dev/rspress/issues/2394) it is inspired by [docusaurus 3.8](https://docusaurus.io/blog/releases/3.8#worker-threads), we introduced it so that large document sites (>=500 pages) can reduce memory usage and decrease SSG time. > it introduced a [Node.js Worker Thread pool](https://github.com/tinylibs/tinypool) to run the SSG. With this new strategy, we can better leverage all the available CPUs, reduce static site generation time, and contain potential memory leaks. ```ts // rspress.config.ts import { defineConfig } from '@&#8203;rspress/core'; export default defineConfig({ ssg: { experimentalWorker: true } }); ``` #### What's Changed ##### New Features 🎉 - feat(ssg): add `ssg.experimentalExcludeRoutePaths` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2405](https://github.com/web-infra-dev/rspress/pull/2405) ##### Performance 🚀 - perf(ssg): add `ssg.experimentalWorker` based on tinypool to speed up ssg process by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2394](https://github.com/web-infra-dev/rspress/pull/2394) ##### Bug Fixes 🐞 - fix(auto-nav-sidebar): custom link should support `collapsible` and `collapsed` like `"type": dir` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2382](https://github.com/web-infra-dev/rspress/pull/2382) - fix!: remove `rspress` package, `rspress` => `@rspress/core` `rspress/theme` => `@rspress/core/theme` `rspress/runtime` => `@rspress/core/runtime` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2386](https://github.com/web-infra-dev/rspress/pull/2386) - fix(fileCodeBlock): optimize the error message and fix `.length is not defined` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2387](https://github.com/web-infra-dev/rspress/pull/2387) - fix: use `_nav.json` in template by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2391](https://github.com/web-infra-dev/rspress/pull/2391) - fix(ssg): ssg error with "base" configuration by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2392](https://github.com/web-infra-dev/rspress/pull/2392) - fix(ssg): regression in V2, csr should also output html files for deploy by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2393](https://github.com/web-infra-dev/rspress/pull/2393) - fix: use SocialLinks & SwitchAppearance components from theme by [@&#8203;jbroma](https://github.com/jbroma) in [#&#8203;2395](https://github.com/web-infra-dev/rspress/pull/2395) - fix(theme): aside should not cover the top buttons by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2400](https://github.com/web-infra-dev/rspress/pull/2400) - fix(theme): aside should not cover the top buttons ([#&#8203;2400](https://github.com/web-infra-dev/rspress/issues/2400)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2401](https://github.com/web-infra-dev/rspress/pull/2401) - fix: directive node should have `name` field by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2403](https://github.com/web-infra-dev/rspress/pull/2403) - fix: search link with base by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2406](https://github.com/web-infra-dev/rspress/pull/2406) ##### Other Changes - chore(auto-nav-sidebar): update custom-link types by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2383](https://github.com/web-infra-dev/rspress/pull/2383) - chore(deps): update dependency [@&#8203;rsbuild/plugin-less](https://github.com/rsbuild/plugin-less) to \~1.3.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2397](https://github.com/web-infra-dev/rspress/pull/2397) - chore(deps): update shiki monorepo to ^3.8.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2398](https://github.com/web-infra-dev/rspress/pull/2398) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2396](https://github.com/web-infra-dev/rspress/pull/2396) - Release v2.0.0-beta.22 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2407](https://github.com/web-infra-dev/rspress/pull/2407) - chore: remove types reference to fix tsc circular issue by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2408](https://github.com/web-infra-dev/rspress/pull/2408) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.21...v2.0.0-beta.22> ### [`v2.0.0-beta.21`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.21) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.20...v2.0.0-beta.21) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### 🔥Remove `builderPlugins`, migrate to `builderConfig.plugins` > related PR: [#&#8203;2371](https://github.com/web-infra-dev/rspress/issues/2371) We can already configure Rsbuild in `builderConfig`, there is another configuration that is confusing. <https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-13729235> Migration step: ```diff export default defineConfig({ - builderPlugins: [ - pluginFoo() - ], + builderConfig: { + plugins: [ + pluginFoo() + ], + }, }); ``` ##### Expose type `RspressPlugin` from `"rspress/core"` packge > Related PR: [#&#8203;2360](https://github.com/web-infra-dev/rspress/issues/2360) <https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-13762129> We do not want users to use our private package like `@rspress/shared`, only `"rspress": "2.0.0"` package is all your needed **before** ```ts import type { RspressPlugin } from '@&#8203;rspress/shared'; ``` ```json5 // package.json { "devDependencies": { "rspress": "1.44.0", "@&#8203;rspress/shared": "1.44.0" } } ``` **after** ```ts import type { RspressPlugin } from 'rspress/core'; ``` ```json5 // package.json { "devDependencies": { "rspress": "2.0.0", } } ``` <details> For compatibility, `@rspress/shared` will still export `RspressPlugin` type, but using `rspress/core` and setting `"rspress"` as peerDependencies will make it less likely for your plugin to encounter type errors. For example: ```json { "peerDependencies": { "rspress": "^2.0.0" } } ``` </details> ##### FIle code block syntax support in core ```tsx file="./demo.tsx" > related PR: [#&#8203;2361](https://github.com/web-infra-dev/rspress/pull/2361) Users can import an external demo file as a code block. As we support this feature in the core. This also means that the syntax external code blocks are used in `plugin-preview` and `plugin-playground` will change. **before** only using together with `@rspress/plugin-preview` and `@rspress/plugin-playground` ```md <code src="./example.tsx" /> ``` **after** This syntax is supported in the core package. ````md ```tsx file="./example.tsx" ``` ```` ```tsx // example.tsx export default () => <div>I'm a example in another file</div> ``` ## What's Changed ### New Features 🎉 - feat: change `pnpm install packageName` to `pnpm add packageName` on PackageManagerTabs by [@&#8203;Marukome0743](https://github.com/Marukome0743) in [#&#8203;2364](https://github.com/web-infra-dev/rspress/pull/2364) - feat(mdx)!: support File Code Block of \`\`\`tsx file="./filename" to write demo code in another file by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2361](https://github.com/web-infra-dev/rspress/pull/2361) - feat!: expose type `RspressPlugin` from "rspress/core", "[@&#8203;rspress/shared](https://github.com/rspress/shared)" which is a private package should not be installed by users by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2360](https://github.com/web-infra-dev/rspress/pull/2360) - feat(auto-nav-sidebar): support custom-link group by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2379](https://github.com/web-infra-dev/rspress/pull/2379) ##### Bug Fixes 🐞 - fix: support mutations from child nodes for dynamic TOC by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2363](https://github.com/web-infra-dev/rspress/pull/2363) - fix: use `withBase` from runtime by [@&#8203;jbroma](https://github.com/jbroma) in [#&#8203;2373](https://github.com/web-infra-dev/rspress/pull/2373) - fix(buildCache): other configuration files besides `rspress.config.ts` should be added to persistent cache deps by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2378](https://github.com/web-infra-dev/rspress/pull/2378) - fix: use SvgWrapper in LinkCard & NavScreenMenuGroup by [@&#8203;jbroma](https://github.com/jbroma) in [#&#8203;2381](https://github.com/web-infra-dev/rspress/pull/2381) ##### Document 📖 - docs: update copyright year to match format by [@&#8203;Marukome0743](https://github.com/Marukome0743) in [#&#8203;2362](https://github.com/web-infra-dev/rspress/pull/2362) - docs: update PackageManagerTabs tips for pnpm by [@&#8203;Marukome0743](https://github.com/Marukome0743) in [#&#8203;2365](https://github.com/web-infra-dev/rspress/pull/2365) ##### Other Changes - refactor!: move [@&#8203;rspress/plugin-last-updated](https://github.com/rspress/plugin-last-updated) and [@&#8203;rspress/plugin-medium-zoom](https://github.com/rspress/plugin-medium-zoom) to [@&#8203;rspress/core](https://github.com/rspress/core) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2359](https://github.com/web-infra-dev/rspress/pull/2359) - test: remove leftover `node:path` module from e2e tests by [@&#8203;Marukome0743](https://github.com/Marukome0743) in [#&#8203;2369](https://github.com/web-infra-dev/rspress/pull/2369) - refactor: remove remoteSerach in `search` configuration, `type: 'remote'` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2366](https://github.com/web-infra-dev/rspress/pull/2366) - test: add missing non-null assertion to dynamic-toc test by [@&#8203;Marukome0743](https://github.com/Marukome0743) in [#&#8203;2370](https://github.com/web-infra-dev/rspress/pull/2370) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2374](https://github.com/web-infra-dev/rspress/pull/2374) - chore(deps): update pnpm to v10.13.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2377](https://github.com/web-infra-dev/rspress/pull/2377) - chore(deps): update dependency zx to ^8.7.0 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2375](https://github.com/web-infra-dev/rspress/pull/2375) - refactor!: remove `builderPlugins` and migrate it to `builderConfig.plugins` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2371](https://github.com/web-infra-dev/rspress/pull/2371) - chore(deps): update playwright monorepo to v1.54.1 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;2376](https://github.com/web-infra-dev/rspress/pull/2376) - Release v2.0.0-beta.21 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2380](https://github.com/web-infra-dev/rspress/pull/2380) #### New Contributors - [@&#8203;Marukome0743](https://github.com/Marukome0743) made their first contribution in [#&#8203;2362](https://github.com/web-infra-dev/rspress/pull/2362) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.20...v2.0.0-beta.21> ### [`v2.0.0-beta.20`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.20) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.19...v2.0.0-beta.20) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Enable `performance.buildCache: true` by default ⚡️ > related PR: [#&#8203;2349](https://github.com/web-infra-dev/rspress/issues/2349) enable persistent cache by default, ref: <https://rspack.rs/config/experiments#persistent-cache> This means that Rspress's local startup speed will be faster . **1. rspress dev** cold start 1s↓ hot start 0.3s↑ <img width="300" alt="image" src="https://github.com/user-attachments/assets/5289bf86-8288-4fa7-850e-7519582d1b27" /> **2. rspress build** cold build 6.48s↓ hot build 3.18s↑ <img width="300" alt="image" src="https://github.com/user-attachments/assets/e994d9fc-3d3b-48e3-be32-bd80ac9c1ef4" /> <img width="300" alt="image" src="https://github.com/user-attachments/assets/0896261f-57a1-46ac-b12a-398b8922b72a" /> #### What's Changed ##### New Features 🎉 * feat(rsbuild)!: enable persistent cache by default via `performance.buildCache` by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2349 ##### Bug Fixes 🐞 * fix(plugin-typedoc): skip patch raw links by @&#8203;fu050409 in https://github.com/web-infra-dev/rspress/pull/2356 ##### Other Changes * chore(deps): update all patch dependencies by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2352 * chore(deps): update dependency @&#8203;babel/types to ^7.28.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2353 * chore(deps): update dependency @&#8203;rsbuild/plugin-vue to ^1.1.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2354 * chore(deps): update playwright monorepo to v1.53.2 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2355 * Release v2.0.0-beta.20 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2358 #### New Contributors * @&#8203;fu050409 made their first contribution in https://github.com/web-infra-dev/rspress/pull/2356 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.19...v2.0.0-beta.20> ### [`v2.0.0-beta.19`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.19) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.18...v2.0.0-beta.19) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Correct relative link in markdown without `./` prefix > Related PR: [#&#8203;2348](https://github.com/web-infra-dev/rspress/issues/2348) Markdown links without "./" prefix are now relative links, e.g: `[subfolder](subfolder)` is equal to `[subfolder](./subfolder)` <img width="300" alt="image" src="https://github.com/user-attachments/assets/04f238aa-347a-49dd-a812-8cc876ee0f12" /> **Before** `[](installation)` and `[](installation.mdx)` points to `/installation.html`, this behavior is strange ❌ **After** `[](installation)` and `[](installation.mdx)` points to `/guide/api/installation.html` ✅ If you are updating to Rspress V2, don't worry, our friend `markdown.checkDeadLinks` which is also refactored can help us check and find these broken links 👬🏻 <img width="300" alt="image" src="https://github.com/user-attachments/assets/b37a3a04-2136-4ed4-b816-21c794789f6d" /> #### What's Changed ##### New Features 🎉 * feat(theme-default): support binary execution commands in `PackageManagerTabs` component by @&#8203;artus9033 in https://github.com/web-infra-dev/rspress/pull/2343 * feat(plugin-llms): multiple configuration for multiple llms.txt by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2347 ##### Bug Fixes 🐞 * fix(theme/dynamic-toc): remove comment for props replacing in SSG by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2345 * fix(remarkNormalizeLink)!: support relative path [subfolder](subfolder) which is equal to [subfolder](./subfolder) by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2348 ##### Document 📖 * docs: add deepwiki badge by @&#8203;Timeless0911 in https://github.com/web-infra-dev/rspress/pull/2342 ##### Other Changes * refactor: move the RoutePath logic to RoutePage class by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2334 * chore(deps): update all patch dependencies by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2337 * chore(deps): update dependency rspress-plugin-sitemap to ^1.2.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2339 * chore(deps): update dependency zx to ^8.6.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2340 * refactor: move remark-check-deadlink to remark-normalize-link and fix plugin-llms with base usage by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2335 * test(e2e): add dir link to check-dead-link by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2344 * chore(cli): polish checkDeadLinks logs by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2350 * Release v2.0.0-beta.19 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2351 #### New Contributors * @&#8203;artus9033 made their first contribution in https://github.com/web-infra-dev/rspress/pull/2343 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.18...v2.0.0-beta.19> ### [`v2.0.0-beta.18`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.18) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.17...v2.0.0-beta.18) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Reimplement `base` config with `basename` feature of react-router > Related PR: [#&#8203;2322](https://github.com/web-infra-dev/rspress/pull/2322) If you are using `const { pathname } = useLocation()` together with `base` configuration, it should be noted that pathname will not contain `base` url, as the top-level BrowserRouter includes `basename` #### What's Changed ##### Bug Fixes 🐞 - fix: should add nav-json-schema.json and expose `rspress/shiki-transformers` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2327](https://github.com/web-infra-dev/rspress/pull/2327) - fix: sidebarGroup should add `SidebarSectionHeader` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2328](https://github.com/web-infra-dev/rspress/pull/2328) - fix(ssg): better format of mdx compile time error in SSG by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2332](https://github.com/web-infra-dev/rspress/pull/2332) ##### Other Changes - chore(deps): upgrade [@&#8203;rslib/core](https://github.com/rslib/core)@&#8203;0.10.3 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2323](https://github.com/web-infra-dev/rspress/pull/2323) - refactor(runtime)!: use `basename` feature of react-router by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2322](https://github.com/web-infra-dev/rspress/pull/2322) - chore!: remove builtin `@rspress/plugin-container-syntax` pkg and intergrate `remarkContainerSyntax` to [@&#8203;rspress/core](https://github.com/rspress/core) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2324](https://github.com/web-infra-dev/rspress/pull/2324) - chore(deps): upgrade to Rsbuild\@&#8203;1.4.0 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2330](https://github.com/web-infra-dev/rspress/pull/2330) - chore: add pnpm setting to pnpm-workspace by [@&#8203;kovsu](https://github.com/kovsu) in [#&#8203;2331](https://github.com/web-infra-dev/rspress/pull/2331) - Release v2.0.0-beta.18 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2326](https://github.com/web-infra-dev/rspress/pull/2326) #### New Contributors - [@&#8203;kovsu](https://github.com/kovsu) made their first contribution in [#&#8203;2331](https://github.com/web-infra-dev/rspress/pull/2331) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.17...v2.0.0-beta.18> ### [`v2.0.0-beta.17`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.17) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.16...v2.0.0-beta.17) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Support Single Nav Mode by renaming the top level `_meta.json` to `_nav.json` > Related PR: [#&#8203;2314](https://github.com/web-infra-dev/rspress/issues/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: ```diff ├── doc │ ├── guide │ │ ├── advanced │ │ │ └── plugin.mdx │ │ ├── _meta.json │ │ └── index.mdx + ├── _meta.json │ └── index.md ├── package.json └── rspress.config.ts ``` <img src="https://github.com/user-attachments/assets/ee5e5949-faea-4e3c-be34-76ec6e5857b0" width="500" /> #### What's Changed ##### New Features 🎉 * feat(auto-nav-sidebar)!: rename the top level `_meta.json` to `_nav.json` in order to support single Nav Mode by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2314 ##### Performance 🚀 * perf(core/client): add useTransition when switch route by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2313 ##### Bug Fixes 🐞 * fix: auto-nav-sidebar should respect locales config by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2307 * fix(rehypeHeaderAnchor): trim anchor for better format with React Component by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2318 * fix(publicDir): should work with `base` in `rspress dev` and `rspress preview` by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2317 ##### Document 📖 * docs: fix Rsbuild url in README.md by @&#8203;superpung in https://github.com/web-infra-dev/rspress/pull/2304 ##### Other Changes * refactor(auto-nav): rewrite the logic, refine the code style by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2303 * chore(deps): upgrade rsbuild-plugin-virtual-module@0.3.0 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2305 * chore(infra)!: move "@&#8203;rspress/plugin-auto-nav-sidebar" to @&#8203;rspress/core by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2306 * chore(deps): update dependency create-rstack to v1.5.1 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2310 * chore(deps): update all patch dependencies by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2309 * chore(deps): update dependency react-docgen-typescript to v2.4.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2312 * chore(deps): update dependency prettier to v3.6.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2311 * chore(deps): update @&#8203;rsbuild/core to 1.4.0-rc.0 by @&#8203;chenjiahan in https://github.com/web-infra-dev/rspress/pull/2315 * Release v2.0.0-beta.17 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2320 #### New Contributors * @&#8203;superpung made their first contribution in https://github.com/web-infra-dev/rspress/pull/2304 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.16...v2.0.0-beta.17> ### [`v2.0.0-beta.16`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.16) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.15...v2.0.0-beta.16) <!-- Release notes generated using configuration in .github/release.yml at v2.0.0-beta.16 --> #### What's Changed ##### Bug Fixes 🐞 - fix: rspress/shiki-transformers should work by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2296](https://github.com/web-infra-dev/rspress/pull/2296) ##### Other Changes - refactor(ssg): use `async-node` target with asyncChunks by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2294](https://github.com/web-infra-dev/rspress/pull/2294) - chore(ssg): rename ssg folder to "**ssg**" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2295](https://github.com/web-infra-dev/rspress/pull/2295) - test(auto-nav): add same-name dir with file case in auto-nav snap by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2300](https://github.com/web-infra-dev/rspress/pull/2300) - Release v2.0.0-beta.16 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2301](https://github.com/web-infra-dev/rspress/pull/2301) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.15...v2.0.0-beta.16> ### [`v2.0.0-beta.15`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.15) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.14...v2.0.0-beta.15) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Bug Fixes 🐞 - fix: incorrect types for `shiki-transformers` entry by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2274](https://github.com/web-infra-dev/rspress/pull/2274) ##### Other Changes - refactor(virtual-module): migrate rspress plugin.addRuntimeModules to rsbuild-plugin-virtual-module by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2273](https://github.com/web-infra-dev/rspress/pull/2273) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2277](https://github.com/web-infra-dev/rspress/pull/2277) - chore(deps): update dependency lint-staged to \~15.5.2 by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2282](https://github.com/web-infra-dev/rspress/pull/2282) - chore(deps): update dependency nx to v20.8.2 by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2283](https://github.com/web-infra-dev/rspress/pull/2283) - chore(deps): remove unused dependency `framer-motion` by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2285](https://github.com/web-infra-dev/rspress/pull/2285) - chore(deps): update dependency path-serializer to v0.5.0 by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2284](https://github.com/web-infra-dev/rspress/pull/2284) - test: move custom-id to unit test instead of e2e test by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2287](https://github.com/web-infra-dev/rspress/pull/2287) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.10.0 by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2288](https://github.com/web-infra-dev/rspress/pull/2288) - refactor: frontmatter.head should be rendered by [@&#8203;unhead/react](https://github.com/unhead/react) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2289](https://github.com/web-infra-dev/rspress/pull/2289) - refactor!: remove useless "id" field in `PageIndexInfo` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2291](https://github.com/web-infra-dev/rspress/pull/2291) - test: add getPageIndexInfoByRoute unit test by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2292](https://github.com/web-infra-dev/rspress/pull/2292) - Release v2.0.0-beta.15 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2293](https://github.com/web-infra-dev/rspress/pull/2293) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.14...v2.0.0-beta.15> ### [`v2.0.0-beta.14`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.14) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.13...v2.0.0-beta.14) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Remove `@rspress/plugin-shiki` package and create `rspress/shiki-transformers`🔥 > related PR: [#&#8203;2270](https://github.com/web-infra-dev/rspress/pull/2270) We have already enabled shiki by default, so this package is no longer maintained. If you want to use some built-in transformers of Rspress, you can do this below: ```ts import { transformerCompatibleMetaHighlight } from "rspress/shiki-transformers"; ``` It also supports using it in React components, For example: ```tsx import { CodeBlockRuntime } from '@&#8203;theme'; import { transformerNotationHighlight } from '@&#8203;shikijs/transformers'; import { transformerLineNumber } from "rspress/shiki-transformers"; <CodeBlockRuntime lang="ts" title="highlight.ts" code={`console.log('Highlighted'); // [!code highlight] // [!code highlight:1] console.log('Highlighted'); console.log('Not highlighted');`} shikiOptions={{ transformers: [transformerNotationHighlight(), transformerLineNumber()], }} /> ``` #### What's Changed ##### New Features 🎉 - feat: support async entry by [@&#8203;2heal1](https://github.com/2heal1) in [#&#8203;2267](https://github.com/web-infra-dev/rspress/pull/2267) ##### Bug Fixes 🐞 - fix(mdx): should respect the space in the title by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2268](https://github.com/web-infra-dev/rspress/pull/2268) ##### Other Changes - chore(renovate): allow to bump pnpm version automatically by [@&#8203;Timeless0911](https://github.com/Timeless0911) in [#&#8203;2264](https://github.com/web-infra-dev/rspress/pull/2264) - chore: remove the useless highlightLanguages option by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2265](https://github.com/web-infra-dev/rspress/pull/2265) - test(mdx): migrate the test case to unit test by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2269](https://github.com/web-infra-dev/rspress/pull/2269) - refactor(plugin-shiki)!: remove [@&#8203;rspress/plugin-shiki](https://github.com/rspress/plugin-shiki), create "@&#8203;rspress/core/shiki-transformers" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2270](https://github.com/web-infra-dev/rspress/pull/2270) - Release v2.0.0-beta.14 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2271](https://github.com/web-infra-dev/rspress/pull/2271) #### New Contributors - [@&#8203;2heal1](https://github.com/2heal1) made their first contribution in [#&#8203;2267](https://github.com/web-infra-dev/rspress/pull/2267) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.13...v2.0.0-beta.14> ### [`v2.0.0-beta.13`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.13) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.12...v2.0.0-beta.13) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Bug Fixes 🐞 - fix: should replaced by / instead by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2262](https://github.com/web-infra-dev/rspress/pull/2262) ##### Other Changes - Release v2.0.0-beta.13 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2263](https://github.com/web-infra-dev/rspress/pull/2263) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.12...v2.0.0-beta.13> ### [`v2.0.0-beta.12`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.12) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.11...v2.0.0-beta.12) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat(mdx): add `markdown.crossCompilerCache` for speed up build process by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2256](https://github.com/web-infra-dev/rspress/pull/2256) ##### Bug Fixes 🐞 - fix: default lang redirect regression due to base/version by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2258](https://github.com/web-infra-dev/rspress/pull/2258) - fix(theme-default/style): vars should be unified to vars.css by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2259](https://github.com/web-infra-dev/rspress/pull/2259) ##### Document 📖 - docs: update community plugins links to point to the correct repository by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2257](https://github.com/web-infra-dev/rspress/pull/2257) ##### Other Changes - test(e2e): add css order fixture by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2249](https://github.com/web-infra-dev/rspress/pull/2249) - chore(deps): bump to Rslib\@&#8203;0.9.2 and remove #themes imports by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2252](https://github.com/web-infra-dev/rspress/pull/2252) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2254](https://github.com/web-infra-dev/rspress/pull/2254) - refactor: use regexp to replace location.pathname instead by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2260](https://github.com/web-infra-dev/rspress/pull/2260) - Release v2.0.0-beta.12 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2261](https://github.com/web-infra-dev/rspress/pull/2261) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.11...v2.0.0-beta.12> ### [`v2.0.0-beta.11`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.11) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.10...v2.0.0-beta.11) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Performance 🚀 - perf(ssg/async): ssg concurrency and use react18 renderToPipeableStream instead of renderToString by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2243](https://github.com/web-infra-dev/rspress/pull/2243) - perf(ssg/client): use React 18 startTransition for hydration by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2245](https://github.com/web-infra-dev/rspress/pull/2245) ##### Bug Fixes 🐞 - fix(theme/style): Tabs wrong margin by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2246](https://github.com/web-infra-dev/rspress/pull/2246) - fix(theme/style): add preEntry to ensure css order by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2248](https://github.com/web-infra-dev/rspress/pull/2248) ##### Other Changes - chore(deps): remove htmr dep and migrate htmr to `dangerouslySetInnerHTML` by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2191](https://github.com/web-infra-dev/rspress/pull/2191) - chore(core): add hint for react and react-dom are different versions. by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2235](https://github.com/web-infra-dev/rspress/pull/2235) - chore(cli)!: remove `rspress update` command by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2240](https://github.com/web-infra-dev/rspress/pull/2240) - chore(deps): upgrade [@&#8203;types/react](https://github.com/types/react) and [@&#8203;types/react-dom](https://github.com/types/react-dom) to 19 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2241](https://github.com/web-infra-dev/rspress/pull/2241) - refactor(ssg): use react18 api onRecoverableError and reduce the difference between SSR and CSR bundle by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2244](https://github.com/web-infra-dev/rspress/pull/2244) - test(e2e): move all the test file to its fixture folder by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2247](https://github.com/web-infra-dev/rspress/pull/2247) - Release v2.0.0-beta.11 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2250](https://github.com/web-infra-dev/rspress/pull/2250) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.10...v2.0.0-beta.11> ### [`v2.0.0-beta.10`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.10) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.9...v2.0.0-beta.10) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Bug Fixes 🐞 - fix(infra): bundle size regression after migrating to bundleless dist by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2228](https://github.com/web-infra-dev/rspress/pull/2228) ##### Document 📖 - docs: upgrade the algolia template by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2226](https://github.com/web-infra-dev/rspress/pull/2226) ##### Other Changes - refactor: unify all the virtual-global-styles to ensure the css order by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2227](https://github.com/web-infra-dev/rspress/pull/2227) - Release v2.0.0-beta.10 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2233](https://github.com/web-infra-dev/rspress/pull/2233) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.9...v2.0.0-beta.10> ### [`v2.0.0-beta.9`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.9) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.8...v2.0.0-beta.9) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat: enable `rehype-raw` plugin by default by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2213](https://github.com/web-infra-dev/rspress/pull/2213) ##### Performance 🚀 - perf: remove useless rehype-codeMeta from prism highlighting by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2214](https://github.com/web-infra-dev/rspress/pull/2214) ##### Bug Fixes 🐞 - fix: exclude `.rspress-toc-exclude` ancestor nodes in dynamic TOC by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2212](https://github.com/web-infra-dev/rspress/pull/2212) - fix: empty blockquote crash the compiler by [@&#8203;zoolsher](https://github.com/zoolsher) in [#&#8203;2221](https://github.com/web-infra-dev/rspress/pull/2221) - fix(ssg): expose the error stack hiden by Suspense by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2219](https://github.com/web-infra-dev/rspress/pull/2219) - fix: add rehype codeMeta plugin back but shiki compatible metastring property instead by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2222](https://github.com/web-infra-dev/rspress/pull/2222) ##### Document 📖 - docs: switch to new domain by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2218](https://github.com/web-infra-dev/rspress/pull/2218) ##### Other Changes - refactor: [@&#8203;rspress/theme-default](https://github.com/rspress/theme-default) should use bundleless dist structure by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2216](https://github.com/web-infra-dev/rspress/pull/2216) - refactor(virtual-module): remove 'virtual-routes-ssr' module, unify virtual-routes-ssr into virtual-routes module by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2217](https://github.com/web-infra-dev/rspress/pull/2217) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.8...v2.0.0-beta.9> ### [`v2.0.0-beta.8`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.8) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.7...v2.0.0-beta.8) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights✨ ##### Add \<CodeBlockRuntime /> component for dynamic code block highlighting > related PR: [#&#8203;2190](https://github.com/web-infra-dev/rspress/pull/2190), [#&#8203;2206](https://github.com/web-infra-dev/rspress/pull/2206) This is an escape hatch, which can be used for dynamic code block highlighting when the shiki highlighting at compile time does not meet your needs. ```tsx import { CodeBlockRuntime } from '@&#8203;theme'; import { transformerNotationHighlight } from '@&#8203;shikijs/transformers'; <CodeBlockRuntime lang="ts" title="highlight.ts" code={`console.log('Highlighted'); // [!code highlight] // [!code highlight:1] console.log('Highlighted'); console.log('Not highlighted');`} shikiOptions={{ transformers: [transformerNotationHighlight()], }} /> ``` #### What's Changed ##### New Features 🎉 - feat: enable `rehype-raw` plugin by default by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2199](https://github.com/web-infra-dev/rspress/pull/2199) - feat(CodeBlockRuntime): add shikiOptions prop by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2208](https://github.com/web-infra-dev/rspress/pull/2208) - feat(plugin-shiki): add @&#8203;rspress/plugin-shiki/transformers exports and transformerCompatibleMetaHighlight by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2209](https://github.com/web-infra-dev/rspress/pull/2209) - feat(CodeBlockRuntime): add onRendered prop by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2211](https://github.com/web-infra-dev/rspress/pull/2211) ##### Bug Fixes 🐞 - fix(CodeBlockRuntime): CodeBlockRuntime should render the same dom structure with compile-time code block by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2206](https://github.com/web-infra-dev/rspress/pull/2206) ##### Other Changes - fix: `children` should be unavailable for `CodeBlockRuntime` by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2205](https://github.com/web-infra-dev/rspress/pull/2205) - Revert "feat: enable `rehype-raw` plugin by default ([#&#8203;2199](https://github.com/web-infra-dev/rspress/issues/2199))" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2207](https://github.com/web-infra-dev/rspress/pull/2207) - Release v2.0.0-beta.8 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2210](https://github.com/web-infra-dev/rspress/pull/2210) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.7...v2.0.0-beta.8> ### [`v2.0.0-beta.7`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.7) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.6...v2.0.0-beta.7) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat(plugin-shiki): upgrade to shiki@^3.4.2 to support langAlias option by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2177](https://github.com/web-infra-dev/rspress/pull/2177) - feat: add new `CodeBlockRuntime` component by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2190](https://github.com/web-infra-dev/rspress/pull/2190) ##### Bug Fixes 🐞 - fix(theme-default): improve redirect URL handling in NotFoundLayout by [@&#8203;HyaCiovo](https://github.com/HyaCiovo) in [#&#8203;2184](https://github.com/web-infra-dev/rspress/pull/2184) - fix(theme-default): export type CodeButtonGroupProps by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2188](https://github.com/web-infra-dev/rspress/pull/2188) - fix(plugin-llms): support usage in `ssg: false` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2194](https://github.com/web-infra-dev/rspress/pull/2194) - fix: sidebar type=file with data-context by [@&#8203;zoolsher](https://github.com/zoolsher) in [#&#8203;2189](https://github.com/web-infra-dev/rspress/pull/2189) - fix(plugin-shiki/style): for force wrap style by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2195](https://github.com/web-infra-dev/rspress/pull/2195) ##### Document 📖 - docs: update Rstack introduction by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2179](https://github.com/web-infra-dev/rspress/pull/2179) - docs: incorrect usage of `socialLinks` by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2192](https://github.com/web-infra-dev/rspress/pull/2192) ##### Other Changes - chore(deps): upgrade to "[@&#8203;types/node](https://github.com/types/node)": "^22.8.1" by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2178](https://github.com/web-infra-dev/rspress/pull/2178) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2200](https://github.com/web-infra-dev/rspress/pull/2200) - chore(deps): update dependency [@&#8203;rslib/core](https://github.com/rslib/core) to v0.8.0 by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2201](https://github.com/web-infra-dev/rspress/pull/2201) - chore(plugin-algolia): highlight color can be changed by theme color by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2203](https://github.com/web-infra-dev/rspress/pull/2203) - refactor(virtual-module): migrate the routeList virtual-route and virtual-route-ssr by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2197](https://github.com/web-infra-dev/rspress/pull/2197) - Release v2.0.0-beta.7 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2204](https://github.com/web-infra-dev/rspress/pull/2204) #### New Contributors - [@&#8203;HyaCiovo](https://github.com/HyaCiovo) made their first contribution in [#&#8203;2184](https://github.com/web-infra-dev/rspress/pull/2184) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.6...v2.0.0-beta.7> ### [`v2.0.0-beta.6`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.6) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.5...v2.0.0-beta.6) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### New Features 🎉 - feat: update Rsbuild 1.3.18 and set caller name by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2139](https://github.com/web-infra-dev/rspress/pull/2139) - feat(theme): expose classname for crawler by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2161](https://github.com/web-infra-dev/rspress/pull/2161) - feat(core): support md definition syntax url by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2164](https://github.com/web-infra-dev/rspress/pull/2164) - feat: support `file://` protocol and `URL` for icon by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2167](https://github.com/web-infra-dev/rspress/pull/2167) ##### Performance 🚀 - perf: remove React 17 compatibility code by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2174](https://github.com/web-infra-dev/rspress/pull/2174) ##### Bug Fixes 🐞 - fix(deps): remove unused react-syntax-highlighter by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2138](https://github.com/web-infra-dev/rspress/pull/2138) - fix(plugin-api-doc-gen): plugin-api-doc-gen should have anchor ([#&#8203;2140](https://github.com/web-infra-dev/rspress/issues/2140)) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2146](https://github.com/web-infra-dev/rspress/pull/2146) - fix(shiki): shiki langs perf regression by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2151](https://github.com/web-infra-dev/rspress/pull/2151) - fix(theme): highlight the <PackageManagerTabs /> manually by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2153](https://github.com/web-infra-dev/rspress/pull/2153) - fix(core/mdx-loader): due to frontmatter stack error loc and remove useless hmr old codes by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2168](https://github.com/web-infra-dev/rspress/pull/2168) - fix(shiki/css): add diff language token and remove useless prism token by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2175](https://github.com/web-infra-dev/rspress/pull/2175) ##### Document 📖 - docs: replace `Helmet` with `Head` by [@&#8203;jbroma](https://github.com/jbroma) in [#&#8203;2150](https://github.com/web-infra-dev/rspress/pull/2150) - docs: update website contributing guide by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2157](https://github.com/web-infra-dev/rspress/pull/2157) - docs(algolia): update index name by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2163](https://github.com/web-infra-dev/rspress/pull/2163) - docs: add Rstest to homepage by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2169](https://github.com/web-infra-dev/rspress/pull/2169) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2144](https://github.com/web-infra-dev/rspress/pull/2144) - chore(plugin-shiki): add all builtin-langs in shiki by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2148](https://github.com/web-infra-dev/rspress/pull/2148) - chore(theme): rename Pre -> PreWithCodeButtonGroup, the only element that differs from the original element by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2162](https://github.com/web-infra-dev/rspress/pull/2162) - Release v2.0.0-beta.6 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2176](https://github.com/web-infra-dev/rspress/pull/2176) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.5...v2.0.0-beta.6> ### [`v2.0.0-beta.5`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.5) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.4...v2.0.0-beta.5) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights✨ ##### Use shiki v3 by default, drop prism support > related PR: [#&#8203;1672](https://github.com/web-infra-dev/rspress/pull/1672), [#&#8203;2046](https://github.com/web-infra-dev/rspress/pull/2046), [#&#8203;2122](https://github.com/web-infra-dev/rspress/pull/2122) Migrate all code highlighting from prism to shiki in compile time. It is worth noting that some code block syntax will be changed, e.g `transformerNotationHighlight` More info: <https://github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-12458121> before ```ts import { defineConfig } from 'rspress/config'; import { pluginShiki, createTransformerLineNumber, createTransformerDiff } from '@&#8203;rspress/plugin-shiki'; export default defineConfig({ plugins: [ pluginShiki({ transformers: [ createTransformerLineNumber(), createTransformerDiff(), // createTransformerErrorLevel(), // createTransformerHighlight(), // createTransformerFocus(), ], }), ], }); ``` after ```ts import { defineConfig } from 'rspress/config'; import { transformerNotationDiff, } from '@&#8203;shikijs/transformers'; export default defineConfig({ markdown: { showLineNumber: true, shiki: { transformers: [ transformerNotationDiff(), // transformerNotationErrorLevel(), // transformerNotationFocus(), // transformerNotationHighlight(), ], } } }); ``` ##### Support JSON schema for `_meta.json` > related PR: [#&#8203;2079](https://github.com/web-infra-dev/rspress/issues/2079) Now you can get type hints in the IDE. For example, in VSCode you can set ```json5 // .vscode/settings.json { //... "json.schemas": [ { "fileMatch": ["**/_meta.json"], "url": "./node_modules/rspress/meta-json-schema.json" // or "url": "https://unpkg.com/rspress@2.0.0-beta.5/meta-json-schema.json" } ], // ... } ``` #### What's Changed ##### New Features 🎉 - feat!: support shiki by default, drop prism support by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2122](https://github.com/web-infra-dev/rspress/pull/2122) - feat: add `_meta.json` json schema in `rspress/meta-json-schema.json` by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2079](https://github.com/web-infra-dev/rspress/pull/2079) - feat(theme/dynamic-toc): add .rspress-toc-exclude escape hatch by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2136](https://github.com/web-infra-dev/rspress/pull/2136) ##### Bug Fixes 🐞 - fix(theme/dynamic-toc): skip <a /> element in TOC by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2134](https://github.com/web-infra-dev/rspress/pull/2134) ##### Document 📖 - docs(algolia-search): use new docsearch account and optimize the dark mode by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2131](https://github.com/web-infra-dev/rspress/pull/2131) ##### Other Changes - chore: bump rsbuild to v1.3.17 by [@&#8203;JounQin](https://github.com/JounQin) in [#&#8203;2132](https://github.com/web-infra-dev/rspress/pull/2132) - Release v2.0.0-beta.5 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2137](https://github.com/web-infra-dev/rspress/pull/2137) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.4...v2.0.0-beta.5> ### [`v2.0.0-beta.4`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.4) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.3...v2.0.0-beta.4) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights✨ ##### Enable `dev.lazyCompilation: true` by default > related PR: [#&#8203;2123](https://github.com/web-infra-dev/rspress/pull/2123) **1. startup instantly** startup time 50x↑ faster with [`lazyCompilation: true`](https://rsbuild.dev/config/dev/lazy-compilation) before 3.80s↓ <img width="200" alt="image" src="https://github.com/user-attachments/assets/8f85490f-2597-45d0-9dc7-6eb7bfb240a0" /> after 0.05s↑ <img width="200" alt="image" src="https://github.com/user-attachments/assets/f4821a13-77ff-4eb9-b2fb-faf9722b76ab" /> **2. When `preload` meets `lazyCompilation` magic, a magical chemical burst out** Rspress will preload the corresponding route when hovering over the link, then a magical chemical reaction bursts out between lazyCompilation and preload, enabling a seamless refresh experience. <img width="400" src="https://github.com/user-attachments/assets/99e188fb-a097-4a3a-9241-6400c93c4a46" /> #### What's Changed ##### New Features 🎉 * feat: add `localeRedirect: 'only-default-lang'` support by @&#8203;JounQin in https://github.com/web-infra-dev/rspress/pull/2125 * feat!: enable `dev.lazyCompilation: true` by default by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2123 * feat: upgrade create-rspress to support `npm create rspress@beta` by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2128 ##### Bug Fixes 🐞 * fix(plugin-llms): group routes correctly without locales config by @&#8203;jbroma in https://github.com/web-infra-dev/rspress/pull/2116 * fix(theme/dynamic-toc): should abandon all elements with `display: none`. by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2119 * fix: the pkg type error in moduleResolution: node16 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2127 ##### Other Changes * chore(deps): update dependency cspell to ^8.19.4 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2118 * chore(deps): update all patch dependencies by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2117 * chore(deps): update Rsbuild to v1.3.16 by @&#8203;chenjiahan in https://github.com/web-infra-dev/rspress/pull/2120 * chore(deps): migrate react-helmet to @&#8203;unhead/react@2.0.0 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2121 * Release v2.0.0-beta.4 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2130 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.3...v2.0.0-beta.4> ### [`v2.0.0-beta.3`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.3) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.2...v2.0.0-beta.3) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights ✨ ##### Support dynamic TOC generation > related PR: [#&#8203;2018](https://github.com/web-infra-dev/rspress/pull/2018) It brings the application of the mdx component to a new level, ships lots of features and closes lots of issues ##### 1. Support mdx with \<Tabs /> <img width="400" alt="image" src="https://github.com/user-attachments/assets/e72dbc06-820b-4f72-a7b5-6902f3b3b4b2" /> ##### 2. Support the `<Badge />` in Title e.g: ```md // foo.mdx ## Title <Badge>Required</Badge> ``` <img width="300" src="https://github.com/user-attachments/assets/540999ab-7421-436a-b71f-7455d066f91a" /> <img width="300" src="https://github.com/user-attachments/assets/32a5629d-240b-43d4-814b-aa98023472fa" /> #### What's Changed ##### New Features 🎉 * feat(theme/toc)!: use dynamic toc generation by @&#8203;ktiays in https://github.com/web-infra-dev/rspress/pull/2018 ##### Bug Fixes 🐞 * fix: the nav bar lowerCase by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2100 ##### Document 📖 * docs: add 1.x doc link by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2108 ##### Other Changes * chore(deps): update all patch dependencies by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2103 * chore(deps): update dependency @&#8203;changesets/cli to ^2.29.2 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2104 * chore(deps): update dependency @&#8203;rstack-dev/doc-ui to v1.8.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2106 * chore(deps): update dependency create-rstack to v1.4.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/2107 * chore(deps): update playwright monorepo to v1.52.0 by @&#8203;renovate in https://github.com/web-infra-dev/rspress/pull/1782 * refactor(mdx-loader): remove flattenMdxContent in loader by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2101 * chore(plugin-llms): reduce pkg size by external deps by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2110 * chore(deps): migrate react-helmet-async to @&#8203;dr.pogodin/react-helmet by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2111 * Release v2.0.0-beta.3 by @&#8203;SoonIter in https://github.com/web-infra-dev/rspress/pull/2112 #### New Contributors * @&#8203;ktiays made their first contribution in https://github.com/web-infra-dev/rspress/pull/2018 **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.2...v2.0.0-beta.3> ### [`v2.0.0-beta.2`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.2) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.1...v2.0.0-beta.2) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights✨ ##### [@&#8203;rspress/plugin-llms](https://v2.rspress.dev/plugin/official-plugins/llms) > related PR: [#&#8203;2034](https://github.com/web-infra-dev/rspress/pull/2034), [#&#8203;2093](https://github.com/web-infra-dev/rspress/pull/2093) Generate [llms.txt](https://llmstxt.org/) related files for your Rspress site, allowing large language models to better understand your documentation site. #### What's Changed ##### New Features 🎉 - feat(plugin-llms): add include option and only generate for default lang by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2093](https://github.com/web-infra-dev/rspress/pull/2093) ##### Other Changes - chore(plugin-llms): adjust the llms-full.txt format and add url frontmatter by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2095](https://github.com/web-infra-dev/rspress/pull/2095) - Release v2.0.0-beta.2 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2096](https://github.com/web-infra-dev/rspress/pull/2096) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.1...v2.0.0-beta.2> ### [`v2.0.0-beta.1`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.1) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.0...v2.0.0-beta.1) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Remove `mdxRs` options > related PR: [#&#8203;2087](https://github.com/web-infra-dev/rspress/pull/2087) The core process of Rspress 2.0 will be handled by mdxjs with shiki, facilitating feature iteration. MdxRs would only handle some meta data generation. After a period of iteration, consideration may be given to mdxRs ##### Drop support for Node 16 > related PR: [#&#8203;2085](https://github.com/web-infra-dev/rspress/pull/2085) Node16 has reached EOL on September 11th, 2023, see <https://nodejs.org/en/blog/announcements/nodejs16-eol> Rspress 2.0 will drop support for Node 16 and the minimum supported Node version is 18. #### Highlights✨ ##### Migrate all the packages to "type: module" and pure esm with publint > related PR: [#&#8203;2084](https://github.com/web-infra-dev/rspress/pull/2084) #### What's Changed ##### New Features 🎉 - feat: migrate all the packages to "type: module" and pure esm with publint by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2084](https://github.com/web-infra-dev/rspress/pull/2084) - feat!: drop support for Node 16 by [@&#8203;chenjiahan](https://github.com/chenjiahan) in [#&#8203;2085](https://github.com/web-infra-dev/rspress/pull/2085) - feat(plugin-llms): init [@&#8203;rspress/plugin-llms](https://github.com/rspress/plugin-llms) by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2034](https://github.com/web-infra-dev/rspress/pull/2034) ##### Bug Fixes 🐞 - fix: remove useless peerDependencies and pin react-router-dom version by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2083](https://github.com/web-infra-dev/rspress/pull/2083) - fix: reduce react-router-dom bundle size by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2086](https://github.com/web-infra-dev/rspress/pull/2086) - fix(style): change flex to rp-flex by [@&#8203;LonelySnowman](https://github.com/LonelySnowman) in [#&#8203;2088](https://github.com/web-infra-dev/rspress/pull/2088) ##### Other Changes - refactor!: remove mdxRs temporarily by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2087](https://github.com/web-infra-dev/rspress/pull/2087) - Release v2.0.0-beta.1 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2090](https://github.com/web-infra-dev/rspress/pull/2090) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-beta.0...v2.0.0-beta.1> ### [`v2.0.0-beta.0`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.0-beta.0) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking Changes 🚨 ##### Upgrade to react\@&#8203;19 and react-dom\@&#8203;19 > related PR: [#&#8203;2073](https://github.com/web-infra-dev/rspress/pull/2073) #### What's Changed ##### New Features 🎉 - feat(deps)!: bump to react\@&#8203;19 and react-dom\@&#8203;19 by default by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2073](https://github.com/web-infra-dev/rspress/pull/2073) ##### Document 📖 - docs: migrate to docsearch new account by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2077](https://github.com/web-infra-dev/rspress/pull/2077) ##### Other Changes - chore(infra): add pkg.pr.new by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2076](https://github.com/web-infra-dev/rspress/pull/2076) - chore(infra): fix the exclude filter does not work by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2078](https://github.com/web-infra-dev/rspress/pull/2078) - refactor(virtual-module): migrate more virtualModule to rsbuild-virtual-module by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2075](https://github.com/web-infra-dev/rspress/pull/2075) - chore(deps): update actions/setup-node digest to [`49933ea`](https://github.com/web-infra-dev/rspress/commit/49933ea) by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2080](https://github.com/web-infra-dev/rspress/pull/2080) - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate) in [#&#8203;2081](https://github.com/web-infra-dev/rspress/pull/2081) - Release v2.0.0-beta.0 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;2082](https://github.com/web-infra-dev/rspress/pull/2082) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.0-alpha.12...v2.0.0-beta.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMS4wIiwidXBkYXRlZEluVmVyIjoiNDIuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiRGVwZW5kZW5jaWVzIiwiRGVwZW5kZW5jaWVzL1Jlbm92YXRlIl19-->
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.0-rc.1
All checks were successful
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m22s
Documentation / Build and Deploy Documentation (pull_request) Successful in 4m4s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m56s
19aca6853b
Jade merged commit a1b2d6ec46 into main 2025-11-25 21:50:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!1197
No description provided.