Files
BackupX/docs-site
Wu Qing 0e615677db feat(docs): 升级文档站界面与导航 (#124)
重构文档站首页、导航与内容布局,统一 SVG 图标和双语文案,并完善响应式、深色模式与可访问性。
2026-08-09 22:32:27 +08:00
..

BackupX documentation site

The public documentation is a Docusaurus site with English source documents and a complete Simplified Chinese translation.

Local development

npm ci
npm start

Use npm start -- --locale zh-Hans to preview the Chinese site. The public Chinese URL remains /zh-Hans/; its source files live under i18n/zh-CN/ through the locale path mapping in docusaurus.config.ts.

Verification

npm run typecheck
npm run build

The production build renders both locales and fails on broken document links. GitHub Actions publishes build/ to GitHub Pages after changes reach main; do not deploy the site manually from a feature branch.

When adding, renaming, or removing a document:

  1. Apply the same change under docs/ and i18n/zh-CN/docusaurus-plugin-content-docs/current/.
  2. Update sidebars.ts and the translated sidebar labels when a category changes.
  3. Use relative links for links between documents so both locale prefixes resolve correctly.
  4. Run the full verification commands before opening a pull request.