diff --git a/README.md b/README.md index 6bc6b4f83..9430205a6 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@
- Quick Start · Colab · Benchmark · Model selection · Migration guide · Use cases · Community integrations · Deployment matrix · Troubleshooting · Models · Agent Integration · Docs · Contribute + Quick Start · Colab · Benchmark · Model selection · Migration guide · Use cases · Community integrations · Deployment matrix · Deployment hub · Troubleshooting · Models · Agent Integration · Docs · Contribute
--- diff --git a/README_zh.md b/README_zh.md index 9ab9e2fbe..a73cc0b05 100644 --- a/README_zh.md +++ b/README_zh.md @@ -21,7 +21,7 @@- 快速开始 · Colab · 性能评测 · 模型选择 · 迁移指南 · 场景速览 · 社区集成 · 部署选型 · 排障 FAQ · 模型列表 · Agent 集成 · 文档 · 贡献 + 快速开始 · Colab · 性能评测 · 模型选择 · 迁移指南 · 场景速览 · 社区集成 · 部署选型 · 部署中心 · 排障 FAQ · 模型列表 · Agent 集成 · 文档 · 贡献
--- diff --git a/tests/test_readme_deployment_hub_links.py b/tests/test_readme_deployment_hub_links.py new file mode 100644 index 000000000..d1de9ccef --- /dev/null +++ b/tests/test_readme_deployment_hub_links.py @@ -0,0 +1,18 @@ +from pathlib import Path + +import pytest + + +ROOT = Path(__file__).resolve().parents[1] +DEPLOYMENT_HUB_URL = "https://www.funasr.com/" + + +@pytest.mark.parametrize( + ("readme", "label"), + (("README.md", "Deployment hub"), ("README_zh.md", "部署中心")), +) +def test_deployment_hub_is_in_readme_primary_navigation(readme: str, label: str) -> None: + primary_navigation = "\n".join((ROOT / readme).read_text(encoding="utf-8").splitlines()[:40]) + link = f'{label}' + + assert primary_navigation.count(link) == 1