Add bilingual navigation for docs site#2
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Docs site bilingual navigation. Bring English + zh-TW into single MkDocs nav tree, add explicit language switches so readers can hop between matched pages.
Changes:
- Restructure
mkdocs.ymlnav into Home + English Guide + 繁體中文指南. - Add English/繁體中文(台灣) switch links to English index + chapter landing pages.
- Minor formatting tweak in zh-TW “Why Tokens Matter” diagram.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| mkdocs.yml | New nav tree with Home language split + parallel EN/zh-TW guides |
| docs/index.md | Add language switch on English homepage |
| docs/01-why-tokens-matter.md | Add language switch to EN Part 1 landing |
| docs/02-prompt-compression.md | Add language switch to EN chapter landing |
| docs/03-language-comparison.md | Add language switch to EN chapter landing |
| docs/04-context-management.md | Add language switch to EN chapter landing |
| docs/05-output-control.md | Add language switch to EN chapter landing |
| docs/06-workflow-optimization.md | Add language switch to EN chapter landing |
| docs/07-agents-md-problem.md | Add language switch to EN chapter landing |
| docs/08-mcp-tool-costs.md | Add language switch to EN chapter landing |
| docs/09-comparisons-data.md | Add language switch to EN Part 3 landing |
| docs/10-practical-setup.md | Add language switch to EN Part 4 landing |
| docs/11-models-and-pricing.md | Add language switch to EN chapter landing |
| docs/12-enterprise-governance.md | Add language switch to EN chapter landing |
| docs/01-why-tokens-matter.zh-TW.md | Adjust spacing in ASCII diagram line |
| │ │ INPUT TOKENS │ │ OUTPUT TOKENS │ │ | ||
| │ │ │ │ │ │ | ||
| │ │ System prompt │ │ 你收到的回應 │ │ | ||
| │ │ System prompt │ │ 你收到的回應 │ │ |
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.
Why
The repo already had English and zh-TW MkDocs content, but the published site only exposed one side cleanly. This updates the docs site to behave like a single-site bilingual GitHub Pages guide instead of a partially linked set of pages.
What changed
mkdocs.ymlnavigation into Home, English Guide, and繁體中文指南Notes
nav