From 9124ffd92bf42cc6a4c76b09aa5ad93d529b374d Mon Sep 17 00:00:00 2001
From: eastagiletracker <310448263+eastagiletracker@users.noreply.github.com>
Date: Tue, 18 Aug 2026 08:23:35 +0000
Subject: [PATCH] zh-Hans: close the front matter with --- so the pages stop
rendering as source
Four Chinese pages open with a ```markdown fence where the front matter
delimiter should be, and close with a matching fence at EOF, so Docusaurus
wraps the whole document in a code block instead of parsing it. On the two
pages the build routes today the title falls back to the source filename,
sidebar_position is dropped and the meta description is lost.
---
.../current/cookbook/generate_unit_test.md | 3 +--
.../current/tutorial-features/stackoverflow.md | 3 +--
.../current/tutorial-features/unit_testing.md | 3 +--
.../current/tutorial-features/vision.md | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/cookbook/generate_unit_test.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/cookbook/generate_unit_test.md
index 35dbff20..5641a77e 100644
--- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/cookbook/generate_unit_test.md
+++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/cookbook/generate_unit_test.md
@@ -1,4 +1,4 @@
-```markdown
+---
sidebar_position: 1
---
# 编写单元测试
@@ -82,4 +82,3 @@ if __name__ == '__main__':
2. **空输入**:第三个测试确认 `calculate_total` 能正确处理空购物车。
3. **多个商品**:第四个测试验证购物车中多个商品的总成本计算。
4. **错误处理**:第五个测试检查当输入缺少必要键时 `calculate_item_cost` 的行为。
-```
\ No newline at end of file
diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/tutorial-features/stackoverflow.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/tutorial-features/stackoverflow.md
index f86b45d7..42131222 100644
--- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/tutorial-features/stackoverflow.md
+++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/tutorial-features/stackoverflow.md
@@ -1,4 +1,4 @@
-```markdown
+---
sidebar_position: 11
---
@@ -26,4 +26,3 @@ sidebar_position: 11