changelog and final build

This commit is contained in:
2026-05-29 13:50:09 +08:00
parent 80f155dfe8
commit 2ca858cfa4
10 changed files with 129 additions and 77 deletions

View File

@@ -13,7 +13,7 @@ func ChangelogPage(w http.ResponseWriter, r *http.Request) {
body := `
<header class="tool-header">
<h2 class="tool-title">Changelog</h2>
<p class="tool-description">Loaded from CHANGELOG.md.</p>
<p class="tool-description">Loaded from README.md.</p>
</header>
<section class="tool-panel changelog-panel">
<div class="panel-body changelog-content">
@@ -42,7 +42,7 @@ func readChangelog() string {
}
}
}
return "# Changelog\n\nCHANGELOG.md was not found."
return "# Changelog\n\nREADME.md was not found."
}
func changelogSearchRoots() []string {
@@ -58,7 +58,7 @@ func changelogCandidates(start string) []string {
candidates := []string{}
dir := filepath.Clean(start)
for i := 0; i < 5; i++ {
candidates = append(candidates, filepath.Join(dir, "CHANGELOG.md"))
candidates = append(candidates, filepath.Join(dir, "README.md"))
parent := filepath.Dir(dir)
if parent == dir {
break