mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-08-10 23:23:31 +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:
- Apply the same change under
docs/andi18n/zh-CN/docusaurus-plugin-content-docs/current/. - Update
sidebars.tsand the translated sidebar labels when a category changes. - Use relative links for links between documents so both locale prefixes resolve correctly.
- Run the full verification commands before opening a pull request.