Skip to content

Add bilingual navigation for docs site#2

Merged
JamestsaiTW merged 1 commit into
mainfrom
build_site
Jun 13, 2026
Merged

Add bilingual navigation for docs site#2
JamestsaiTW merged 1 commit into
mainfrom
build_site

Conversation

@JamestsaiTW

Copy link
Copy Markdown
Owner

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

  • reorganized mkdocs.yml navigation into Home, English Guide, and 繁體中文指南
  • added explicit English / zh-TW language switches to the English homepage and chapter landing pages
  • kept the existing single-site MkDocs structure instead of introducing a separate i18n plugin or split URL tree

Notes

  • zh-TW pages are now first-class in site navigation rather than existing outside nav
  • this PR is limited to docs structure and language-switch discoverability; deployment remains on the existing GitHub Pages workflow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 13, 2026 08:59
@JamestsaiTW JamestsaiTW merged commit 326b483 into main Jun 13, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml nav 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 │ │ 你收到的回應 │ │
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants