testsAndMisc/python_pkg/byox_ladder/Makefile
Krzysztof kuhy Rudnicki 6342eaf0e2
Some checks are pending
Pre-commit checks / pre-commit (push) Waiting to run
Python tests / test (push) Waiting to run
feat(byox_ladder): add build-your-own-x difficulty ladder generator
Ranks the codecrafters build-your-own-x projects by difficulty and emits two
offline, self-contained HTML pages: a per-guide ladder (~360 tutorials) and a
per-category ladder (30 categories), grouped into Beginner/Intermediate/Advanced/
Expert tiers plus an Unsorted bucket. A guide inherits its category's tier;
language only nudges order within a tier. Includes a Makefile pipeline
(fetch -> parse -> build) and 100%-branch-covered tests. Excludes the generated
guide page from codespell since it inlines upstream titles verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01QNRTPNYvoBTQoTEWkYtCJD
2026-07-17 18:31:21 +02:00

21 lines
533 B
Makefile

# Regenerate the Build-Your-Own-X difficulty ladders.
#
# make build # fetch README -> parse -> build both standalone pages
# make clean # remove the fetched README copy and derived data
README_URL = https://raw.githubusercontent.com/codecrafters-io/build-your-own-x/master/README.md
.PHONY: build clean
build: guides.json
python3 build_pages.py
guides.json: byox-readme.md parse_guides.py
python3 parse_guides.py
byox-readme.md:
curl -fsSL "$(README_URL)" -o byox-readme.md
clean:
rm -f byox-readme.md guides.json