feat(docs): regenerate CHAMPIONS.md from champions.json in scraper

- Add saveMarkdown in markdown.go rendering the Loldle classic-mode column
  table (Champion | Gender | Genre | Range | Resource | Region | Lane | Year).
- main.go writes CHAMPIONS.md after champions.json on every scrape.
- update-champions.yml stages CHAMPIONS.md alongside champions.json so CI
  commits both in lockstep.
- alt text on tile images now uses champion display name (e.g. Bel'Veth)
  instead of the ID slug.
This commit is contained in:
2026-04-21 10:03:07 +07:00
parent 3824945eaa
commit c446f08c2f
4 changed files with 141 additions and 23 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add champions.json
git add champions.json CHAMPIONS.md
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0