📝 收紧文档入口与导航层次
Ubuntu System Information / show-system-info (push) Successful in 0s

This commit is contained in:
csh
2026-05-22 10:20:33 +08:00
parent 95402f4830
commit 61e512c2ae
4 changed files with 54 additions and 35 deletions
+12
View File
@@ -70,6 +70,17 @@ test_runner_data_is_gitignored() {
done
}
test_readme_is_navigation_focused() {
local file
file="${REPO_ROOT}/README.md"
grep -q '^## 🚀 快速开始$' "${file}" || fail "README.md should provide a quick start section"
grep -q '\[DEPLOYMENT.md\](\./DEPLOYMENT.md)' "${file}" || fail "README.md should link to DEPLOYMENT.md"
grep -q '\[WORKFLOW.md\](\./WORKFLOW.md)' "${file}" || fail "README.md should link to WORKFLOW.md"
grep -q 'cp \.env\.example \.env' "${file}" || fail "README.md quick start should mention copying .env.example"
}
test_preset_env_examples_exist() {
local file
@@ -89,6 +100,7 @@ test_stats_workflow_uses_workflow_secret_consistently
test_workflow_docs_and_links_use_actual_paths
test_presets_do_not_mount_check_crlf_helper
test_runner_data_is_gitignored
test_readme_is_navigation_focused
test_preset_env_examples_exist
echo "template_defaults_test.sh: PASS"