Skip to content

Releases: web-infra-dev/rspress

v2.0.17

Choose a tag to compare

@SoonIter SoonIter released this 08 Jul 11:59
237a9c3

What's Changed

New Features πŸŽ‰

  • feat(theme/Link): Add route.useTransitions to opt-out startTransition navigation by @sanjaiyan-dev in #3479
  • feat(core): expose runCLI API by @chenjiahan in #3504
  • feat(theme/Link): support opt-out prefetch via route.prefetchLink by @SoonIter in #3506
  • feat(core): support siteOrigin config to set absoluteUrl cases by @SoonIter in #3466

Bug Fixes 🐞

  • fix(theme/codeblock): avoid list markers when copying code blocks by @maikthomas in #3501
  • fix(theme/Link): startTransition in async behaviour πŸ”§ by @sanjaiyan-dev in #3503
  • fix(theme/GithubStars): avoid github stars hydration mismatch by @SoonIter in #3505

Other Changes

New Contributors

Full Changelog: v2.0.16...v2.0.17

v2.0.16

Choose a tag to compare

@SoonIter SoonIter released this 03 Jul 08:09
ee123b1

What's Changed

New Features πŸŽ‰

  • feat(mdx/container): Support [!IMPORTANT] callout for feature parity with GitHub-flavored markdown by @mnebes in #3493

Bug Fixes 🐞

  • fix(mdx/container): Fix rendering of multi-line GitHub-style alerts by @mnebes in #3487
  • fix(plugin-playground): include source path in mdx parse errors by @SoonIter in #3486

Refactor πŸ”¨

  • refactor(theme): internal code change, replace @theme alias with @rspress/core/theme by @SoonIter in #3492
  • refactor(router): await navigate and opt-in to router useTransition 🧭 by @sanjaiyan-dev in #3476

Document πŸ“–

Other Changes

  • chore(deps): update dependency remark-cjk-friendly-gfm-strikethrough to ^2.3.1 by @renovate[bot] in #3482
  • chore(deps): update dev-tools by @renovate[bot] in #3483
  • chore(deps): update playwright monorepo to v1.61.1 by @renovate[bot] in #3484
  • chore(deps): update all patch dependencies by @renovate[bot] in #3481
  • chore(deps): update github-actions (major) by @renovate[bot] in #3489
  • chore(deps): update dependency react-router-dom to ^7.18.1 by @renovate[bot] in #3463
  • chore(deps): update github-actions by @renovate[bot] in #3488
  • chore(deps): upgrade agent skills to latest commit by @SoonIter in #3495
  • Release v2.0.16 by @SoonIter in #3496

New Contributors

Full Changelog: v2.0.15...v2.0.16

v2.0.15

Choose a tag to compare

@SoonIter SoonIter released this 25 Jun 11:39
796b136

Highlights

πŸŒ™ themeConfig.darkMode supports default and forced values

You can now set the default or forced theme behavior directly via themeConfig.darkMode, instead of relying on window.RSPRESS_THEME. It accepts values like 'dark', 'light', 'auto', 'force-dark', and 'force-light'.

import { defineConfig } from '@rspress/core';

export default defineConfig({
  themeConfig: {
    darkMode: 'force-dark',
  },
});

πŸ”— Markdown anchor link validation

Rspress now validates internal heading hash links during builds. Enable markdown.link.checkAnchors to catch broken anchors in same-page, relative, and absolute Markdown/MDX links.

import { defineConfig } from '@rspress/core';

export default defineConfig({
  markdown: {
    link: {
      checkAnchors: true,
    },
  },
});

What's Changed

New Features πŸŽ‰

  • feat(search): Allow excluding pages from default search via frontmatter by @elliotcourant in #3456
  • feat(theme/darkMode): support themeConfig.darkMode set default values by @SoonIter in #3473
  • feat(mdx/link): support markdown anchor checks by @SoonIter in #3443

Performance πŸš€

  • perf(ssg): avoid eager asset source reads by @SyMind in #3459

Bug Fixes 🐞

  • fix(theme/Nav): render active language as non-link by @SoonIter in #3450
  • fix(core): allow overriding printFileSize config by @SoonIter in #3451
  • fix(auto-nav-sidebar): isolate global sidebar by version by @SoonIter in #3454
  • fix(mdx/title): strip inline markdown in h1 e.g: "# __ReplaceElements" by @SoonIter in #3468
  • fix(theme/inline-code-link): align link styles --rp-c-link and nav gap by @SoonIter in #3474

Refactor πŸ”¨

  • refactor(search): extract helper and add idle callback cleanup ♻️ by @sanjaiyan-dev in #3467
  • refactor(theme): use useLayoutEffect in useNavTransparent for performanceπŸ› οΈ by @sanjaiyan-dev in #3475

Document πŸ“–

Other Changes

New Contributors

Full Changelog: v2.0.14...v2.0.15

v2.0.14

Choose a tag to compare

@SoonIter SoonIter released this 08 Jun 03:47
97a7fb0

What's Changed

New Features πŸŽ‰

  • feat(theme): Add onTouchStart event to preload links on touch devices πŸ“± by @sanjaiyan-dev in #3422
  • feat(create-rspress): add i18n template by @SoonIter in #3411
  • feat(theme): Add React DOM-based preloading to Image component πŸ–ΌοΈ by @sanjaiyan-dev in #3425
  • feat(theme/SocialLinks): add github-stars mode to socialLinks by @Huxpro in #3433
  • feat(mdx): support markdown ?raw query imports by @SoonIter in #3434

Performance πŸš€

  • perf(ssg/experimentalWorker): write SSG worker output to disk directly and skip processAssets for memory by @SoonIter in #3426
  • perf(core): optimize node rspack builds by @SoonIter in #3440
  • perf(auto-nav-sidebar): cache site data module in production by @SoonIter in #3441

Bug Fixes 🐞

  • fix(theme): Optimize search highlight extraction and improve accessibility by @sanjaiyan-dev in #3421
  • fix(plugin-algolia): Add react-dom react peerDependencies and optimize Search component preconnect ⚑ by @sanjaiyan-dev in #3413
  • fix(theme): keep custom outline slots visible by @JounQin in #3423
  • fix(theme/Tag): render SVG and local image tags correctly by @SoonIter in #3431
  • fix(mdx): normalize rule ids from MDX to oneOf mdx and mdx-raw by @SoonIter in #3436
  • fix(theme/Banner): keep mobile banner single-line by @SoonIter in #3439

Document πŸ“–

Other Changes

New Contributors

Full Changelog: v2.0.13...v2.0.14

v2.0.13

Choose a tag to compare

@SoonIter SoonIter released this 26 May 03:59
12990a9

What's Changed

πŸ› Bug Fixes

  • fix(plugin-preview): avoid emitting ~demo without iframe previews by @Copilot in #3404
  • fix(theme/i18n): localize code wrap button title by @Copilot in #3330
  • fix(theme/Steps): h3 styles in Steps component by @JounQin in #3409
  • fix(ssg): remove unused boolean define for import.meta.env.SSR after Rsbuild 2.0.7 by @elecmonkey in #3405

πŸ›  Refactors

  • refactor(ssg-md): use import.meta env for SSG-MD and add snapshot tests by @SoonIter in #3406

πŸ“¦ Chores & Dependencies

  • chore(ci): harden workflow permissions and setup-node caching by @Copilot in #3401
  • ci: allow ecosystem CI commit comments by @Timeless0911 in #3402
  • chore(deps): update react-render-to-markdown to 19.1.0 and 18.3.2 by @Copilot in #3407
  • chore(deps): upgrade @rstack-dev/doc-ui to 1.14.2 by @Copilot in #3408
  • chore(deps): update rstackjs/rstack-ecosystem-ci digest to a3cd90c by @renovate[bot] in #3414
  • chore(deps): update all patch dependencies by @renovate[bot] in #3415
  • chore(deps): update rstack by @renovate[bot] in #3416
  • chore(deps): update dependency typedoc-plugin-markdown to v4.11.0 by @renovate[bot] in #3417

Full Changelog: v2.0.12...v2.0.13

v2.0.12

Choose a tag to compare

@SoonIter SoonIter released this 19 May 12:16
5ef404d

What's Changed

New Features πŸŽ‰

Bug Fixes 🐞

  • fix: remarkImage lint compatibility with plain markdown files by @JounQin in #3388
  • fix(mdx/title): preserve whitespace in code block title meta by @Copilot in #3374
  • fix(theme/Sidebar): add rp-doc class to inline-code sidebar titles by @Copilot in #3372

Document πŸ“–

Other Changes

v2.0.11

Choose a tag to compare

@SoonIter SoonIter released this 11 May 09:02
d49bb8a

What's Changed

New Features πŸŽ‰

  • feat(mdx/FileCodeblock): support file codeblock starts with / prefix by @JounQin in #3357
  • feat(theme): add BrowserOnly runtime component for sideEffects import and deprecate NoSSR by @SoonIter in #3360

Bug Fixes 🐞

  • fix(theme/Search): NFD normalization causes search to highlight wrong characters in Japanese or backtrack in an infinite loop by @Quatton in #3335
  • fix(ssg): experimentalWorker "Cannot find module '@rspress/core/dist/entry/worker.js'" by @SoonIter in #3354
  • fix(theme/darkMode): restore auto appearance when toggle matches system theme by @Copilot in #3352
  • fix(plugin-preview & plugin-playground): react-router-dom peer compatibility by @Copilot in #3350
  • fix(theme/Prompt): avoid gradients in dark mode by @SoonIter in #3338
  • fix(layout): Fixed mobile doc layout menu showing unnecessarily by @elliotcourant in #3342
  • fix(core): preserve false ssg option by @chenjiahan in #3361

Other Changes

  • chore(deps): update all patch dependencies by @renovate[bot] in #3343
  • chore(deps): update dependency @changesets/cli to ^2.31.0 by @renovate[bot] in #3346
  • chore(deps): update actions/setup-node action to v6.4.0 by @renovate[bot] in #3345
  • chore(deps): update rstack by @renovate[bot] in #3344
  • chore(deps): update dependency @rstack-dev/doc-ui to ^1.13.3 by @renovate[bot] in #3347
  • chore(deps): update dependency react-router-dom to ^7.14.2 by @renovate[bot] in #3348
  • chore: export remarkImage for reusing like remarkLink by @JounQin in #3353
  • chore(infra): replace changeset with bumpp by @SoonIter in #3355
  • chore(rslib): clean up config and align ES target by @chenjiahan in #3358
  • chore(infra/lint): migrate to Rslint and Prettier by @SoonIter in #3337
  • chore(deps): update all patch dependencies by @renovate[bot] in #3362
  • chore(deps): update dependency bumpp to ^11.1.0 by @renovate[bot] in #3364
  • chore(deps): update dependency react-router-dom to ^7.15.0 by @renovate[bot] in #3365
  • chore(deps): update dependency tm-themes to v1.12.2 by @renovate[bot] in #3367
  • chore(deps): update dependency skills-package-manager to v0.9.0 by @renovate[bot] in #3366
  • chore(deps): update rstack by @renovate[bot] in #3363
  • docs(skills): add Rspress agent skills by @SoonIter in #3370
  • Release v2.0.11 by @SoonIter in #3368

New Contributors

Full Changelog: v2.0.10...v2.0.11

v1.47.2

Choose a tag to compare

@SoonIter SoonIter released this 07 May 07:54
5491edc

What's Changed

Document πŸ“–

  • docs(1.x): add migration notes for packages deprecated in Rspress 2.0 by @SoonIter in #3105
  • docs: update rspress package deprecation notice by @Timeless0911 in #3341

Other Changes

Full Changelog: v1.47.1...v1.47.2

v2.0.10

Choose a tag to compare

@SoonIter SoonIter released this 28 Apr 11:49
7449903

Highlights✨

Rspack 2.0 & Rsbuild 2.0 integrated πŸ¦€

related PR: #3322

Rspress v2.0.10 upgrades Rsbuild to 2.0.0, which means Rspress is now powered by the stable Rspack 2.0 toolchain. This keeps Rspress aligned with the latest Rstack ecosystem and brings the compiler improvements from Rspack 2.0 to every Rspress site.

See more πŸ‘‰πŸ» Rspack 2.0 and Rsbuild 2.0

New Prompt component πŸ€–

related PR: #3325

Rspress now provides a built-in Prompt component from @rspress/core/theme, designed for AI-native documentation.

It helps authors present reusable, copyable agent instructions directly in MDX, with theme-ready styling and flexible custom content support.

20260428180332_rec_

See more πŸ‘‰πŸ» Prompt - Rspress doc components

What's Changed

New Features πŸŽ‰

  • feat(cli): add --base CLI option to build, dev, and preview commands by @Copilot in #3316
  • feat(deps): upgrade Rsbuild to 2.0.0 by @Timeless0911 in #3322
  • feat(theme/Prompt): add new Prompt component by @SoonIter in #3325
  • feat(theme)!: support sidebar: false and sidebar: placeholder mode by @SoonIter in #3331

Bug Fixes 🐞

  • fix(theme/Link): support custom URI schemes in external URL detection by @Copilot in #3304
  • fix(create-rspress): add env.d.ts to generated templates by @Copilot in #3310
  • fix(theme/table): polish table styles to fix too narrow col case by @SoonIter in #3317
  • fix(theme/outline): reduce outline toc mask spacing by @SoonIter in #3329
  • fix(theme/Prompt): address review follow-ups by @SoonIter in #3333

Document πŸ“–

  • docs: add rspress-plugin-comments to community plugins by @kalicyh in #3319

Other Changes

  • chore(deps): update pnpm-plugin-skills to 0.5.0 by @SoonIter in #3305
  • chore(infra): migrate to skills-package-manager CLI and upgrade to skills-package-manager@0.7.0 by @SoonIter in #3312
  • chore(deps): update all patch dependencies by @renovate[bot] in #3302
  • chore(deps): update rstack by @renovate[bot] in #3303
  • chore(deps): update all patch dependencies by @renovate[bot] in #3314
  • chore(deps): update rstack by @renovate[bot] in #3315
  • chore(theme/inline-codeblock): lighten inline code link styles by @Copilot in #3320
  • chore(deps): upgrade rsbuild plugins to latest by @Timeless0911 in #3323
  • chore(deps): update rstack by @renovate[bot] in #3324
  • chore(deps): update all patch dependencies by @renovate[bot] in #3326
  • chore(deps): update dependency @rsbuild/core to ^2.0.2 by @renovate[bot] in #3327
  • Release v2.0.10 by @SoonIter in #3334

New Contributors

Full Changelog: v2.0.9...v2.0.10

v2.0.9

Choose a tag to compare

@SoonIter SoonIter released this 13 Apr 03:02
9ea8b70

What's Changed

New Features πŸŽ‰

Performance πŸš€

  • perf(deps): externalize lodash-es via shared to reduce install size by @SoonIter in #3292
  • perf(core): bundle cli deps cac chokidar picocolors to reduce install size by @SoonIter in #3293
  • perf(deps): bundle tinyglobby and tinypool into core by @SoonIter in #3296
  • perf(deps): bundle github-slugger to reduce install size by @SoonIter in #3298
  • perf(deps): bundle gray-matter to reduce install size and deps complexity by @SoonIter in #3297

Bug Fixes 🐞

  • fix(core): log message include json file path in auto-nav-sidebar errors by @SoonIter in #3273
  • fix(theme/icon): use currentColor for success icons to follow theme color by @SoonIter in #3294
  • fix(theme/Steps): # for titles overlaps with the sequence number by @elliotcourant in #3276
  • fix(core): Fixed async page data loading by @elliotcourant in #3278

Document πŸ“–

  • docs(zh): translate dead image documentation by @Copilot in #3287
  • docs(introduction): refine guide overview by @SoonIter in #3289
  • docs(auto-nav-sidebar): small fix for clarify global sidebar usage by @SoonIter in #3290

Other Changes

  • chore(deps): update dependency lodash-es to v4.18.1 [security] by @renovate[bot] in #3274
  • chore(deps): update pnpm-plugin-skills and rspress-custom-theme skill by @SoonIter in #3285
  • chore(infra/agent): add pr-creator skill by @SoonIter in #3286
  • chore(deps): update pnpm to 10.33.0 by @Copilot in #3288
  • chore(deps): update dependency path-serializer to v0.6.0 by @renovate[bot] in #3282
  • chore(deps): update dependency heading-case to ^1.1.0 by @renovate[bot] in #3281
  • chore(deps): update rstack by @renovate[bot] in #3280
  • chore(deps): update all patch dependencies by @renovate[bot] in #3279
  • chore(infra): migrate husky + lint-staged to simple-git-hooks + nano-staged by @SoonIter in #3291
  • chore(deps): update rstack (@rsbuild/core 2.0.0-rc.1, @rslib/core 0.21.0) by @renovate[bot] in #3295
  • Release v2.0.9 by @SoonIter in #3299

Full Changelog: v2.0.8...v2.0.9