From ea7061629c51766f85a3c6a870a922650d38711f Mon Sep 17 00:00:00 2001 From: Tang Zaozao Date: Wed, 1 Jul 2026 09:53:25 +0800 Subject: [PATCH] fix(rock5/rock5t): repair broken ./3d-case link in accessories README User vectorcrumb reported in #1880 that the link to 'Third-Party 3D-Printed Cases' on /rock5/rock5t/accessories returns 404 on the published docs site. Root cause: in the accessories/README.md that acts as the category index page, Docusaurus resolves the autolink [./3d-case] to /rock5/rock5t/3d-case (parent section URL) instead of /rock5/rock5t/accessories/3d-case (the actual docs route). The target file 3d-case.md lives in the same accessories/ subdirectory, but Docusaurus drops the accessories/ segment when autolinking from a category README. Fix: replace the relative autolink [./3d-case] with the absolute path [/rock5/rock5t/accessories/3d-case], so the link is unambiguous regardless of Docusaurus autolink resolution rules. Scope intentionally limited to rock5t only (the product filed in #1880). Same broken pattern also exists in rock5/rock5b, rock4/rock4d, and cubie/a7a but a broader fix is out of scope for this issue. Chinese and English versions updated together for cross-locale sync. Fixes #1880. --- docs/rock5/rock5t/accessories/README.md | 2 +- .../current/rock5/rock5t/accessories/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rock5/rock5t/accessories/README.md b/docs/rock5/rock5t/accessories/README.md index 780a009fe..95c3e21ed 100644 --- a/docs/rock5/rock5t/accessories/README.md +++ b/docs/rock5/rock5t/accessories/README.md @@ -24,4 +24,4 @@ sidebar_position: 99 ## 3D 打印外壳 -- [第三方 3D 打印外壳](./3d-case):社区设计的 ROCK 5T 专用外壳 +- [第三方 3D 打印外壳](/rock5/rock5t/accessories/3d-case):社区设计的 ROCK 5T 专用外壳 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/rock5/rock5t/accessories/README.md b/i18n/en/docusaurus-plugin-content-docs/current/rock5/rock5t/accessories/README.md index 1dc2412ae..a4854279a 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/rock5/rock5t/accessories/README.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/rock5/rock5t/accessories/README.md @@ -24,4 +24,4 @@ This page lists the official accessories compatible with ROCK 5T. ## 3D-Printed Cases -- [Third-Party 3D-Printed Cases](./3d-case): Community-designed cases for ROCK 5T +- [Third-Party 3D-Printed Cases](/rock5/rock5t/accessories/3d-case): Community-designed cases for ROCK 5T