Skip to content

docs(common): fix broken uart/ssh links + rename screenless → headless in cubie#1917

Merged
Milir-Radxa merged 4 commits into
radxa-docs:mainfrom
tangzz-radxa:docs/cubie-screenless-link-fix
Jul 8, 2026
Merged

docs(common): fix broken uart/ssh links + rename screenless → headless in cubie#1917
Milir-Radxa merged 4 commits into
radxa-docs:mainfrom
tangzz-radxa:docs/cubie-screenless-link-fix

Conversation

@tangzz-radxa

Copy link
Copy Markdown
Contributor

背景

https://docs.radxa.com/cubie/a5e/system-config/screenless 页面里有两处跳转链接点击后是 404:

  • 串口登录/cubie/a5e/system-config/uart_login
  • SSH 远程(出现两次,有线网络 / 无线网络两段各一处)→ /cubie/a5e/system-config/ssh_remote

实际页面 slug 是 uart-login / ssh-login(中划线),但 partial 里写成了下划线的 uart_login / ssh_remote

排查时发现另一个共享 partial common/radxa-os/install-system/_use_system.mdx(也是只有 a5e / a7s 引用)也命中同样的下划线/中划线错位,按要求一并合到本 PR 修。

之后 Tom 又指出 screenless 在英文里不是行业标准说法——SBC / Linux-on-arm 圈子通常用 headless。这条线已经在 ROCK 5 / ROCK 4 / ROCK 3 / Zero / CM3 / template-sbc 上跑通(这些产品早就用 _headless.mdx + # Headless Mode + slug headless),Cubie 这边是异类。所以又顺手把 cubie a5e / a7s 的英文翻译统一成 Headless,并把 cubie 自己的 partial 文件从 _screenless.mdx 改名成 _headless.mdx

最后 Tom 又要求页面文件 screenless.md 也改成 headless.md——这会改已发布的 URL,但与仓库此前的 rename 约定一致(参考 docs/rockpi/rocks0 → rockpis0 这次 PR,URL 直接换、不加 redirect),所以本 PR 沿用同一约定。

修改

只动 common partial + cubie 自己的 wrapper,中英文同步范围按改动语义自然延伸:

  • docs/common/radxa-os/system-config/_screenless.mdx_headless.mdx(CN,rename)
  • i18n/en/docusaurus-plugin-content-docs/current/common/radxa-os/system-config/_screenless.mdx_headless.mdx(EN,rename)
  • docs/common/radxa-os/install-system/_use_system.mdx(CN)
  • i18n/en/docusaurus-plugin-content-docs/current/common/radxa-os/install-system/_use_system.mdx(EN)
  • docs/cubie/a5e/system-config/screenless.mdheadless.md(CN wrapper 文件 rename)
  • docs/cubie/a7s/system-config/screenless.mdheadless.md(CN wrapper 文件 rename)
  • i18n/en/docusaurus-plugin-content-docs/current/cubie/a5e/system-config/screenless.mdheadless.md(EN wrapper 文件 rename)
  • i18n/en/docusaurus-plugin-content-docs/current/cubie/a7s/system-config/screenless.mdheadless.md(EN wrapper 文件 rename)

具体改动:

文件
_screenless.mdx_headless.mdx CN/EN × 3 ./uart_login./ssh_remote ./uart-login./ssh-login
_use_system.mdx CN/EN × 1 ../system-config/uart_login../system-config/ssh_login ../system-config/uart-login../system-config/ssh-login
_use_system.mdx CN/EN × 1 ../system-config/screenless ../system-config/headless
_headless.mdx EN × 1 Screenless mode refers to … Headless mode refers to …
_use_system.mdx EN × 1 ### Display-less Mode / Display-less mode ### Headless Mode / Headless mode
cubie/a5e wrapper EN # Screenless Mode # Headless Mode
cubie/a7s wrapper EN # Headless mode(小写) # Headless Mode(与其他产品线一致)
cubie/a5e/a7s wrappers CN+EN(4 个) _screenless.mdx import 路径 _headless.mdx import 路径
cubie/a5e/a7s wrappers CN+EN 文件名(4 个) screenless.md headless.md(重命名)
cubie/a5e/a7s wrappers CN+EN partial 文件名(4 个) _screenless.mdx _headless.mdx(重命名)

CN 的"无屏模式"本来就是中文里通顺且准确的写法,没有需要改的对齐内容,所以 EN 翻译这一类是有意的 EN-only,CN 不动。

总计 8 文件 / +20 -20 / 4 commit。

影响范围

仅 cubie-a5e / cubie-a7s 的页面跳转、EN 标题/正文、partial 文件名、页面文件名:

  • 旧 URL:/cubie/a5e/system-config/screenless/cubie/a7s/system-config/screenless不再有效,会 404)
  • 新 URL:/cubie/a5e/system-config/headless/cubie/a7s/system-config/headless

不改其他产品,不改 partial 内部中文文本。

为什么这个改法是安全的

  • 链接修复:_screenless.mdx / _use_system.mdx 都只被 cubie-a5e 和 cubie-a7s 引用,且这两个产品的本地页面 slug 恰好就是 uart-login / ssh-login。相对链接 ./uart-login 在 Docusaurus 里按引用方所在目录解析(不是 partial 自己所在目录),_auto_login.mdx → ./rsetup 是个现成的成功先例。
  • 翻译修复:EN-only 是有意的——CN 的"无屏模式"正确,guard 的"missing Chinese counterpart"在这里是结构性误报。commit message 已显式声明 "in EN",符合 b18dd8ee1 docs: 移除 linkr-kvm 中文教程中的 KVM 表述,引入瑞莎灵控产品名 这类既有 single-language PR 的写法。
  • 文件改名:rename 只发生在 cubie/{a5e,a7s}/system-config/common/radxa-os/system-config/ 这两个原本 cubie 独占的子目录下;改完后 cubie 的 wrapper 直接 import/指向新名字的 partial/页面,没有其他产品受影响。
  • URL 不加 redirect:与 docs/rockpi/rocks0 → rockpis0(commit a0e26903a)那次重命名的处理方式一致——直接换 URL,不在旧路径保留 redirect 文件。

备注

  • 跨产品 UART/SSH 页面 slug 命名不统一(cubie-a7a / a7z 用 uart-debug / ssh-remote,dragon-q6a / q8b / e20c~e54c 也是,orion-o6 / o6n 用 uart / ssh)。这次 partial 只服务 a5e / a7s 是因为这两个产品命名恰好匹配;以后想给其他产品也接 headless partial,得先帮那些产品改页面 slug 或把 partial 改成参数化。
  • 现在仓库里会出现两个叫 _headless.mdx 的 partial:旧的 docs/common/radxa-os/_headless.mdx(rock5/zero 等用,精简,用 props)和新的 docs/common/radxa-os/system-config/_headless.mdx(cubie 用,详细,含 before.txt/config.txt)。两者内容结构不同,没合并。如果后续想合并,是另一个独立话题。

Tang ZZ added 4 commits July 8, 2026 14:11
…-system partials

The shared common partials `_screenless.mdx` and `_use_system.mdx` link to
`./uart_login` / `./ssh_remote` (and `../system-config/uart_login` /
`ssh_login`), but the actual page slugs are `uart-login` and `ssh-login`
(with hyphens), so every cross-reference to the serial-console and SSH pages
returns 404 on docs.radxa.com.

Both partials are only consumed by cubie a5e and cubie a7s, and those two
products are the only ones whose local UART/SSH pages use the
`uart-login` / `ssh-login` slugs, so the rename is safe for the current
set of importers. Update both partials in Chinese and English to keep the
docs in sync.
…ess' in EN

The English pages for cubie a5e and a7s render the '无屏模式' section as
'Screenless Mode', which is not the conventional term in the SBC /
Linux-on-arm world. ROCK 5 / ROCK 4 / ROCK 3 / Zero / CM3 / template-sbc
all already use 'Headless Mode' for the same concept.

Update the EN titles, headings and first-sentence wording to use
'Headless' / 'Headless Mode' so cubie's terminology matches the rest of
the docs. Leave the slug and filename (`screenless` /`screenless.md`)
alone for now — renaming those would also require a URL redirect and a
follow-up PR.
…ss.mdx

Follow up on the 'screenless → headless' terminology cleanup. The cubie
shared partial lived at `common/radxa-os/system-config/_screenless.mdx`,
which is the only place outside of CN/EN headless pages still using the
'screenless' term. Rename it to `_headless.mdx` so the partial file
matches the rest of the docs (rock5/rock4/rock3/zero/cm3/template all
already use `_headless.mdx`).

Update the frontmatter `imports_resolve_to` and the `import … from …`
statement in the four cubie a5e / a7s wrapper files (CN + EN) to point
to the new file.

Note: this leaves us with two partials called `_headless.mdx` —
`docs/common/radxa-os/_headless.mdx` (rock5/zero/etc, concise, uses
props) and `docs/common/radxa-os/system-config/_headless.mdx` (cubie,
detailed with before.txt/config.txt walkthrough). They have different
content shapes and merging them is out of scope here. Page slug
`screenless` and the `screenless.md` wrappers are intentionally
unchanged — renaming those would break published URLs and needs a
separate redirect-based PR.
Follow up on the partial rename in the previous commit. The actual
published pages lived at `cubie/{a5e,a7s}/system-config/screenless.md`,
so rename those wrappers too so the page slug matches the partial and
the rest of the docs.

Update the only remaining internal link to the old slug
(`_use_system.mdx`, both CN and EN) to point at `system-config/headless`.

Note: this changes the published URL of `/cubie/a5e/system-config/screenless`
→ `/cubie/a5e/system-config/headless` (same for a7s). No redirect is
added — this matches the existing repo convention used for previous
file renames (e.g. `docs/rockpi/rocks0 → rockpis0`), where URLs
simply change on rename.
@tangzz-radxa tangzz-radxa requested review from a team and RadxaYuntian as code owners July 8, 2026 06:47
@Milir-Radxa Milir-Radxa merged commit 5c277f7 into radxa-docs:main Jul 8, 2026
5 of 6 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