Skip to content

fix: add redirects for old /docs/basics/concepts paths#852

Merged
RetricSu merged 1 commit into
nervosnetwork:developfrom
humble-little-bear:fix/broken-link-redirects
Jul 7, 2026
Merged

fix: add redirects for old /docs/basics/concepts paths#852
RetricSu merged 1 commit into
nervosnetwork:developfrom
humble-little-bear:fix/broken-link-redirects

Conversation

@humble-little-bear

Copy link
Copy Markdown
Contributor

Summary

This PR adds Docusaurus client-side redirects for concept pages that were moved from /docs/basics/concepts/ to /docs/ckb-fundamentals/ during the docs restructure.

Changes

Added redirects for the following old paths:

Old path Redirect target
/docs/basics/concepts/cell-model /docs/ckb-fundamentals/cell-model
/docs/basics/concepts/ckb-vm /docs/ckb-fundamentals/ckb-vm
/docs/basics/concepts/consensus /docs/ckb-fundamentals/consensus
/docs/basics/concepts/cryptowallet /docs/integrate-wallets/intro-to-wallets
/docs/basics/concepts/nervos-blockchain /docs/ckb-fundamentals/nervos-blockchain

Note: /getting-started/wallet already redirects to /docs/integrate-wallets/intro-to-wallets, so no additional change was needed there.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

@humble-little-bear is attempting to deploy a commit to the CKBA-2026 Team on Vercel.

A member of the Team first needs to authorize it.

@humble-little-bear

Copy link
Copy Markdown
Contributor Author

No docs-writing issues found. LGTM from an editorial standpoint.

@humble-little-bear

Copy link
Copy Markdown
Contributor Author

CKB factual-accuracy review summary

Scope checked: This PR only changes website/docusaurus.config.js (Docusaurus redirect configuration). No Markdown/MDX documentation files under website/docs/** or examples/** were modified, so there are no CKB technical factual claims (RPC methods, config values, consensus constants, script standards, etc.) to verify against nervosnetwork/ckb or nervosnetwork/rfcs sources.

LGTM, No factual-review issues found.

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nervos-ckb-docs Ready Ready Preview, Comment Jul 7, 2026 10:22am

Request Review

@humble-little-bear

Copy link
Copy Markdown
Contributor Author

已自检文档站内部链接。

针对本 PR 新增的 /docs/basics/concepts/* 重定向路径以及 /getting-started/wallet,已检索 website/ 下所有 .md.mdx.js.ts.jsx.tsx.jsonstatic/ 文件,未发现在文档内容或组件中存在指向这些旧路径的内部链接。

当前所有内部引用均已使用新的正确路径,例如:

  • /docs/ckb-fundamentals/cell-model
  • /docs/ckb-fundamentals/ckb-vm
  • /docs/ckb-fundamentals/consensus
  • /docs/ckb-fundamentals/nervos-blockchain
  • /docs/integrate-wallets/intro-to-wallets

因此不会形成"文档站内部存在错误死链,再被自己 redirect 一次"的情况。

@humble-little-bear

Copy link
Copy Markdown
Contributor Author

补充一点:在检索过程中,我注意到当前 website/docusaurus.config.js 以及 develop 分支中均没有 /getting-started/wallet 的 redirect 规则。PR 描述中提到该路径"already redirects",但实际配置里似乎并未包含。如果该路径确实需要修复,建议也加上一条到 /docs/integrate-wallets/intro-to-wallets 的 redirect。

Add Docusaurus client-side redirects for concept pages moved from
/docs/basics/concepts/* to /docs/ckb-fundamentals/* during the docs
restructure. The reported 404s include /docs/basics/concepts/ckb-vm;
this covers all concept pages from the old path.

Co-Authored-By: Claude <noreply@anthropic.com>
@humble-little-bear
humble-little-bear force-pushed the fix/broken-link-redirects branch from 0c7ed1c to 1230f95 Compare July 7, 2026 10:16
@RetricSu
RetricSu merged commit 77a6f37 into nervosnetwork:develop Jul 7, 2026
3 checks passed
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