vinta-awesome-python/website/tests
Vinta Chen 4322026817
refactor: parse thematic groups from README bold markers instead of hardcoding them
The website builder previously relied on a hardcoded SECTION_GROUPS list in
build.py to organize categories into thematic groups. This was fragile: any
rename or addition to README.md required a matching code change.

Replace this with a parser-driven approach:
- readme_parser.py now detects bold-only paragraphs (**Group Name**) as
  group boundary markers and groups H2 categories beneath them into
  ParsedGroup structs.
- build.py drops SECTION_GROUPS entirely; group_categories() now just
  passes parsed groups through and appends the Resources group.
- sort.py is removed as it relied on the old flat section model.
- Tests updated throughout to reflect the new (groups, resources) return
  shape and to cover the new grouping logic.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-20 18:43:09 +08:00
..
test_build.py refactor: parse thematic groups from README bold markers instead of hardcoding them 2026-03-20 18:43:09 +08:00
test_fetch_github_stars.py feat: skip fetching repos whose cache entry is still fresh 2026-03-18 22:55:21 +08:00
test_readme_parser.py refactor: parse thematic groups from README bold markers instead of hardcoding them 2026-03-20 18:43:09 +08:00