Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .claude/skills/commit/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ which also belongs in the release notes.

## Before committing

- **Documentation ships in pairs.** Touching any `NAME.md` means updating `NAME.vi.md` in
the same commit, and the other way round. English is authoritative.
- **Keep translations in sync.** Update the English, Chinese and Japanese versions of
published documents in the same commit. English is authoritative.
- **`VERSION` must match the tag** that will be pushed — `scripts/check-version.sh`
fails the deploy otherwise — and the tag needs its `packaging/release-notes/` file, or
`scripts/check-release-notes.sh` fails it.
Expand All @@ -61,7 +61,7 @@ which also belongs in the release notes.

| Instead of | Write |
| --- | --- |
| `Add Vietnamese documentation for installation and building instructions` | `docs: add Vietnamese install and build guides` |
| `Add Japanese documentation for installation and building instructions` | `docs: add Japanese install and build guides` |
| `Enhance security and authentication features` | `security: reject a second passcode guess on the same connection` |
| `Implement terminal sharing functionality` | `feat(terminal): share a shell from desktop hosts` |
| `Update CMake configurations and enhance QUIC build options` | `build: pin the quiche static runtime on MSVC` |
Expand Down
35 changes: 17 additions & 18 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,44 +153,43 @@ A green local `make test` + `make lint` does not cover those.
members (`cur_`, `min_`).
- Formatting is enforced by pinned tools — never hand-format; run `make format`.
- All identifiers, log messages, and code comments are in **English**. Documentation is
published in four languages — see below.
published in three languages — see below.
- New logic in `core/` needs a test in the matching `core/tests/` subdirectory.

## Documentation

Every prose document is published in four languages: `NAME.md` plus `NAME.vi.md`,
Every prose document is published in three languages: `NAME.md` plus
`NAME.zh.md` and `NAME.ja.md` beside it. **English is the authoritative version** — write
the change there first, then mirror it into all three translations, in the same commit. A
the change there first, then mirror it into both translations, in the same commit. A
translation that lags behind its English original is a bug.

| English | Translations | Covers |
| --- | --- | --- |
| `README.md` | `README.{vi,zh,ja}.md` | What it is, why, platforms, what's inside — short, and links out |
| `docs/INSTALL.md` | `docs/INSTALL.{vi,zh,ja}.md` | Getting a prebuilt Deskhub onto each platform |
| `docs/BUILD.md` | `docs/BUILD.{vi,zh,ja}.md` | Building from source, tests, packaging, releasing |
| `docs/SPECIFICATION.md` | `docs/SPECIFICATION.{vi,zh,ja}.md` | Feature spec — behaviour only, no implementation detail |
| `docs/ARCHITECTURE.md` | `docs/ARCHITECTURE.{vi,zh,ja}.md` | How it is built — layers, threads, wire protocol, design decisions |
| `SECURITY.md` | `SECURITY.{vi,zh,ja}.md` | Threat model, hardening, vulnerability reports |
| `THIRD_PARTY_NOTICES.md` | `THIRD_PARTY_NOTICES.{vi,zh,ja}.md` | Third-party components and licences |
| `README.md` | `README.{zh,ja}.md` | What it is, why, platforms, what's inside — short, and links out |
| `docs/INSTALL.md` | `docs/INSTALL.{zh,ja}.md` | Getting a prebuilt Deskhub onto each platform |
| `docs/BUILD.md` | `docs/BUILD.{zh,ja}.md` | Building from source, tests, packaging, releasing |
| `docs/SPECIFICATION.md` | `docs/SPECIFICATION.{zh,ja}.md` | Feature spec — behaviour only, no implementation detail |
| `docs/ARCHITECTURE.md` | `docs/ARCHITECTURE.{zh,ja}.md` | How it is built — layers, threads, wire protocol, design decisions |
| `SECURITY.md` | `SECURITY.{zh,ja}.md` | Threat model, hardening, vulnerability reports |
| `THIRD_PARTY_NOTICES.md` | `THIRD_PARTY_NOTICES.{zh,ja}.md` | Third-party components and licences |

Rules for these files:

- Every one starts with a language switcher line naming all four in the same order —
English · Tiếng Việt · 中文 · 日本語 — with the file's own language in bold and the
other three as links. Each translation states that English governs.
- Every one starts with a language switcher line naming all three in the same order —
English · 中文 · 日本語 — with the file's own language in bold and the
other two as links. Each translation states that English governs.
- Links inside a translation point at the counterpart in the same language wherever one
exists.
- Cross-language link integrity is not enforced by CI — check relative links resolve
before you finish.
- The privacy policy is a published legal document maintained in the Bitfaring admin
(admin.bitfaring.com → Products → Deskhub → Privacy, one version per language) and
published at https://bitfaring.com/products/deskhub/privacy/ (`/vi/`, `/zh/`, `/ja/`).
published at https://bitfaring.com/products/deskhub/privacy/ (`/zh/`, `/ja/`).
There is no copy in this repo. Any behaviour change that touches what is
stored or transmitted needs the policy updated there — a new version number, a new
effective date and a changelog row, in all four languages — then "Publish website".
- `CLAUDE.md`, the store listings under `client/android/fastlane/metadata/android/vi/`
and `client/ios/fastlane/metadata/vi/`, and the working plan `docs/UNATTENDED_PLAN.md`
(Vietnamese only, deleted once the work it describes ships) are outside this scheme.
effective date and a changelog row, in every published language — then "Publish website".
- `CLAUDE.md`, the mobile store listings, and the working plan `docs/UNATTENDED_PLAN.md`
(deleted once the work it describes ships) are outside this scheme.

When you change behaviour, check whether these documents still describe it. Passcode
handling, what is persisted on disk, and per-platform capability tables go stale fastest.
Expand Down
18 changes: 9 additions & 9 deletions README.ja.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[English](README.md) · [Tiếng Việt](README.vi.md) · [中文](README.zh.md) · **日本語**
[English](README.md) · [中文](README.zh.md) · **日本語**

<div align="center">

Expand Down Expand Up @@ -183,18 +183,18 @@ threat model は [`SECURITY.ja.md`](SECURITY.ja.md) を参照。

## 📚 ドキュメント

すべてのドキュメントは英語で公開し、その隣に訳を置いている。ベトナム語 `*.vi.md`、
すべてのドキュメントは英語で公開し、その隣に訳を置いている。
中国語 `*.zh.md`、日本語 `*.ja.md`。正文は英語版である。

| ドキュメント | 内容 |
| --- | --- |
| [Install](docs/INSTALL.ja.md) ([en](docs/INSTALL.md) · [vi](docs/INSTALL.vi.md) · [zh](docs/INSTALL.zh.md)) | 5 つのプラットフォームそれぞれへの Deskhub の導入 |
| [Build](docs/BUILD.ja.md) ([en](docs/BUILD.md) · [vi](docs/BUILD.vi.md) · [zh](docs/BUILD.zh.md)) | source からのコンパイル、test、パッケージング、release |
| [Specification](docs/SPECIFICATION.ja.md) ([en](docs/SPECIFICATION.md) · [vi](docs/SPECIFICATION.vi.md) · [zh](docs/SPECIFICATION.zh.md)) | Deskhub が何をするか。実装の詳細は扱わない |
| [Architecture](docs/ARCHITECTURE.ja.md) ([en](docs/ARCHITECTURE.md) · [vi](docs/ARCHITECTURE.vi.md) · [zh](docs/ARCHITECTURE.zh.md)) | layer、thread、wire protocol、設計判断 |
| [`SECURITY.ja.md`](SECURITY.ja.md) ([en](SECURITY.md) · [vi](SECURITY.vi.md) · [zh](SECURITY.zh.md)) | Threat model と脆弱性の報告方法 |
| [プライバシーポリシー](https://bitfaring.com/products/deskhub/privacy/ja/) ([en](https://bitfaring.com/products/deskhub/privacy/) · [vi](https://bitfaring.com/products/deskhub/privacy/vi/) · [zh](https://bitfaring.com/products/deskhub/privacy/zh/)) | プライバシーポリシー |
| [`THIRD_PARTY_NOTICES.ja.md`](THIRD_PARTY_NOTICES.ja.md) ([en](THIRD_PARTY_NOTICES.md) · [vi](THIRD_PARTY_NOTICES.vi.md) · [zh](THIRD_PARTY_NOTICES.zh.md)) | サードパーティ製コンポーネントと license |
| [Install](docs/INSTALL.ja.md) ([en](docs/INSTALL.md) · [zh](docs/INSTALL.zh.md)) | 5 つのプラットフォームそれぞれへの Deskhub の導入 |
| [Build](docs/BUILD.ja.md) ([en](docs/BUILD.md) · [zh](docs/BUILD.zh.md)) | source からのコンパイル、test、パッケージング、release |
| [Specification](docs/SPECIFICATION.ja.md) ([en](docs/SPECIFICATION.md) · [zh](docs/SPECIFICATION.zh.md)) | Deskhub が何をするか。実装の詳細は扱わない |
| [Architecture](docs/ARCHITECTURE.ja.md) ([en](docs/ARCHITECTURE.md) · [zh](docs/ARCHITECTURE.zh.md)) | layer、thread、wire protocol、設計判断 |
| [`SECURITY.ja.md`](SECURITY.ja.md) ([en](SECURITY.md) · [zh](SECURITY.zh.md)) | Threat model と脆弱性の報告方法 |
| [プライバシーポリシー](https://bitfaring.com/products/deskhub/privacy/ja/) ([en](https://bitfaring.com/products/deskhub/privacy/) · [zh](https://bitfaring.com/products/deskhub/privacy/zh/)) | プライバシーポリシー |
| [`THIRD_PARTY_NOTICES.ja.md`](THIRD_PARTY_NOTICES.ja.md) ([en](THIRD_PARTY_NOTICES.md) · [zh](THIRD_PARTY_NOTICES.zh.md)) | サードパーティ製コンポーネントと license |

バグ報告と意見: [issues](https://github.com/Bitfaring/Deskhub/issues) —— 端末の機種名
を添えてほしい。
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**English** · [Tiếng Việt](README.vi.md) · [中文](README.zh.md) · [日本語](README.ja.md)
**English** · [中文](README.zh.md) · [日本語](README.ja.md)

<div align="center">

Expand Down Expand Up @@ -182,19 +182,18 @@ no discovery, no switch that lets strangers in. Use a network you trust or a VPN

## 📚 Docs

Every document is published in English with translations beside it — Vietnamese as
`*.vi.md`, Chinese as `*.zh.md`, Japanese as `*.ja.md`. The English text is the
Every document is published in English with translations beside it — Chinese as `*.zh.md`, Japanese as `*.ja.md`. The English text is the
authoritative one.

| Document | Covers |
| --- | --- |
| [Install](docs/INSTALL.md) ([vi](docs/INSTALL.vi.md) · [zh](docs/INSTALL.zh.md) · [ja](docs/INSTALL.ja.md)) | Getting Deskhub onto each of the five platforms |
| [Build](docs/BUILD.md) ([vi](docs/BUILD.vi.md) · [zh](docs/BUILD.zh.md) · [ja](docs/BUILD.ja.md)) | Compiling from source, tests, packaging, releasing |
| [Specification](docs/SPECIFICATION.md) ([vi](docs/SPECIFICATION.vi.md) · [zh](docs/SPECIFICATION.zh.md) · [ja](docs/SPECIFICATION.ja.md)) | What Deskhub does, with no implementation detail |
| [Architecture](docs/ARCHITECTURE.md) ([vi](docs/ARCHITECTURE.vi.md) · [zh](docs/ARCHITECTURE.zh.md) · [ja](docs/ARCHITECTURE.ja.md)) | Layers, threads, wire protocol, decisions |
| [`SECURITY.md`](SECURITY.md) ([vi](SECURITY.vi.md) · [zh](SECURITY.zh.md) · [ja](SECURITY.ja.md)) | Threat model and how to report a vulnerability |
| [Privacy policy](https://bitfaring.com/products/deskhub/privacy/) ([vi](https://bitfaring.com/products/deskhub/privacy/vi/) · [zh](https://bitfaring.com/products/deskhub/privacy/zh/) · [ja](https://bitfaring.com/products/deskhub/privacy/ja/)) | Privacy policy |
| [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md) ([vi](THIRD_PARTY_NOTICES.vi.md) · [zh](THIRD_PARTY_NOTICES.zh.md) · [ja](THIRD_PARTY_NOTICES.ja.md)) | Third-party components and licences |
| [Install](docs/INSTALL.md) ([zh](docs/INSTALL.zh.md) · [ja](docs/INSTALL.ja.md)) | Getting Deskhub onto each of the five platforms |
| [Build](docs/BUILD.md) ([zh](docs/BUILD.zh.md) · [ja](docs/BUILD.ja.md)) | Compiling from source, tests, packaging, releasing |
| [Specification](docs/SPECIFICATION.md) ([zh](docs/SPECIFICATION.zh.md) · [ja](docs/SPECIFICATION.ja.md)) | What Deskhub does, with no implementation detail |
| [Architecture](docs/ARCHITECTURE.md) ([zh](docs/ARCHITECTURE.zh.md) · [ja](docs/ARCHITECTURE.ja.md)) | Layers, threads, wire protocol, decisions |
| [`SECURITY.md`](SECURITY.md) ([zh](SECURITY.zh.md) · [ja](SECURITY.ja.md)) | Threat model and how to report a vulnerability |
| [Privacy policy](https://bitfaring.com/products/deskhub/privacy/) ([zh](https://bitfaring.com/products/deskhub/privacy/zh/) · [ja](https://bitfaring.com/products/deskhub/privacy/ja/)) | Privacy policy |
| [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md) ([zh](THIRD_PARTY_NOTICES.zh.md) · [ja](THIRD_PARTY_NOTICES.ja.md)) | Third-party components and licences |

Bugs and feedback: [issues](https://github.com/Bitfaring/Deskhub/issues) — include your
device model.
Expand Down
Loading
Loading