docs: add bilingual beginner's guide and full i18n site - #199
Open
flyzstu wants to merge 1 commit into
Open
Conversation
- Beginner's guide (Chinese + English): what is ShadowQUIC, 5-minute quick start, plain-word config walkthrough, FAQ. - Full bilingual site using Zensical's standard i18n mechanism: two complete doc trees (docs/en, docs/zh) rendered via gen_docs.py --lang, each with its own zensical config and a header language selector (extra.alternate) with hreflang tags. - Chinese configuration reference generated from the same rustdoc JSON with an exact-match translation table; untranslated entries fall back to English. - Chinese API reference (document/api.zh.md). - Workflow builds both sites and merges them: / serves English, /zh/ serves Chinese.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a beginner-friendly bilingual (Chinese + English) guide and migrates the
docs site to Zensical's standard i18n mechanism.
Beginner's guide (Chinese + English)
Full bilingual site
docs/en,docs/zh) generated bygen_docs.pyvia a new
--langflag, each with its ownzensical.tomlconfig and aheader language selector (
extra.alternate) withhreflangtags.JSON with an exact-match translation table; untranslated entries fall
back to English so the build never breaks.
document/api.zh.md./serves English,/zh/servesChinese.
Note
The guide is also cross-checked against the implementation (JLS
camouflage mechanism, admin API commands, config defaults, feature gating).
gen_docs.py+zensical build)