mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 15:30:57 +01:00
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
21 lines
533 B
Makefile
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
|