Skip to content

Upgrade docs site to Rspress 2.1.0 - #634

Merged
ruibaby merged 1 commit into
mainfrom
cursor/upgrade-rspress-2-1-0-bf3a
Nov 2, 2026
Merged

ruibaby merged 1 commit into
mainfrom
cursor/upgrade-rspress-2-1-0-bf3a

Conversation

@ruibaby

@ruibaby ruibaby commented Nov 2, 2026

Copy link
Copy Markdown
Member

Summary

Upgrades the Halo docs site from Rspress 2.0.23 to 2.1.0 and drops config that now duplicates built-in defaults.

  • @rspress/core is ^2.1.0 (lockfile resolves to 2.1.0). @rspress/plugin-sitemap is removed. Sitemap generation is built into Rspress 2.1.0 and is on by default. The old plugin only set siteUrl to https://docs.halo.run, which is already siteOrigin, so no sitemap.siteUrl override was added.
  • Removed llms: true and route.cleanUrls: true. Both are default in 2.1.0, so llms.txt / llms-full.txt and extensionless URLs stay enabled. Built-in WebMCP and anchor checks also stay at their 2.1.0 defaults (on). Dead-link and dead-image checks were already explicit and are unchanged.
  • File tree, Google Analytics, Mermaid, Sass, and icon plugins are unchanged. The site remains Chinese-only (lang: "zh"); there is no English locale tree to migrate.
  • pnpm 12 records @rspress/core@2.1.0 and @rspress/shared@2.1.0 in minimumReleaseAgeExclude. 2.1.0 was published inside the default 24-hour release-age window, and a later frozen install needs those exclusions.
  • Anchor checking (new default) failed the production build on two links. They now point at headings the checker can see:
    • manifest.md no longer links to #run-with-devtools / #run-with-traditional-way. Those ids are not registered because the steps live inside PageTabs. Both links go to #运行插件.
    • api-client.md no longer links to #使用 on the plugin API request page. That heading does not exist. The link goes to #选择客户端.

Behavior that changes with 2.1.0

  • Sitemap URLs are absolute (https://docs.halo.run/...) and omit .html. The build wrote 255 entries; the homepage priority is 1.0.
  • Generated HTML still uses .html files on disk, but in-page links omit the suffix (clean URLs).
  • llms.txt and llms-full.txt are still emitted, with absolute docs.halo.run links and the hidden llms hint in each page.
  • WebMCP tools ship in the client bundle and are not enabled during SSR.

The bundled js-yaml update is inside @rspress/core. This repo does not depend on js-yaml directly; the lockfile still has transitive js-yaml@4.3.1.

Verification

  • pnpm install
  • pnpm build — Rspress v2.1.0, sitemap for 255 pages, HTML and Markdown SSG both succeeded
  • pnpm check:ci — Rslint and Rsfmt passed
  • pnpm preview — HTTP 200 for /, /guide/, the hello-world, manifest, and API request pages, plus /sitemap.xml, /llms.txt, and /llms-full.txt. Served HTML contains id="运行插件", id="选择客户端", and clean links such as /developer-guide/plugin/hello-world#运行插件.
Open in Web Open in Cursor 

Use the built-in sitemap, llms.txt, and clean URLs instead of the legacy
plugin and duplicate flags, and retarget anchors rejected by the new check.

Co-authored-by: Ryan Wang <i@ryanc.cc>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T11:57:59.390281Z a1bd50b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
docs a1bd50b Commit Preview URL

Branch Preview URL
Nov 02 2026, 11:56 AM

@ruibaby
ruibaby merged commit ce62001 into main Nov 2, 2026
2 checks passed
@ruibaby
ruibaby deleted the cursor/upgrade-rspress-2-1-0-bf3a branch November 2, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants