Commit 4a313cd
committed
ci+style: fix broken pages deploy (PyYAML missing) + consolidate 8 heading clamps onto tokens
CI fix (root cause of stale onchainattack.org):
The deploy-pages workflow was failing silently since I added
specs/ axis support — npm run build chains into npm run site:data,
which calls python3 tools/build_specs.py, which imports yaml. The
GitHub Actions runner had setup-node but no setup-python and no
pip install pyyaml step, so every push since the spec axis introduction
ran into ModuleNotFoundError: No module named 'yaml' on the build
step and the deploy job never ran. That's why production was last
modified Apr 30.
- Added actions/setup-python@v5 (3.12) step before npm install
- Added 'pip install -r tools/requirements.txt' step
- New tools/requirements.txt pinning PyYAML>=6.0 (the only non-stdlib
Python dep across tools/)
Style — heading clamp consolidation:
There were still 8 different clamp() values for headings, each in one
place — large/medium/small variants of essentially the same role.
Consolidated:
clamp(36, 5.5vw, 68) → new --fs-display (hero numbers)
clamp(28, 3.5vw, 44) → new --fs-display-sm (large section heading)
clamp(28, 3.5vw, 40) → --fs-display-sm (close variant — merged)
clamp(32, 4vw, 56) → --fs-h1 (within range)
clamp(24, 2.6vw, 36) → --fs-h2 (close to existing h2)
clamp(20, 5vw, 28) → --fs-h3 (within fluid h3 range)
clamp(15, 1.3vw, 17) → --fs-h3 (close to h3)
clamp(14, 1.15vw, 16) → --fs-md (equivalent)
Final scale carries 11 sizes covering display → micro mono. Future
edge-case hero variants should use --fs-display / --fs-display-sm
instead of new clamps.1 parent 44ba0e4 commit 4a313cd
3 files changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
789 | 791 | | |
790 | 792 | | |
791 | 793 | | |
792 | | - | |
| 794 | + | |
793 | 795 | | |
794 | 796 | | |
795 | 797 | | |
| |||
804 | 806 | | |
805 | 807 | | |
806 | 808 | | |
807 | | - | |
| 809 | + | |
808 | 810 | | |
809 | 811 | | |
810 | 812 | | |
| |||
947 | 949 | | |
948 | 950 | | |
949 | 951 | | |
950 | | - | |
| 952 | + | |
951 | 953 | | |
952 | 954 | | |
953 | 955 | | |
| |||
2571 | 2573 | | |
2572 | 2574 | | |
2573 | 2575 | | |
2574 | | - | |
| 2576 | + | |
2575 | 2577 | | |
2576 | 2578 | | |
2577 | 2579 | | |
| |||
2683 | 2685 | | |
2684 | 2686 | | |
2685 | 2687 | | |
2686 | | - | |
| 2688 | + | |
2687 | 2689 | | |
2688 | 2690 | | |
2689 | 2691 | | |
| |||
3540 | 3542 | | |
3541 | 3543 | | |
3542 | 3544 | | |
3543 | | - | |
| 3545 | + | |
3544 | 3546 | | |
3545 | 3547 | | |
3546 | 3548 | | |
| |||
3550 | 3552 | | |
3551 | 3553 | | |
3552 | 3554 | | |
3553 | | - | |
| 3555 | + | |
3554 | 3556 | | |
3555 | 3557 | | |
3556 | 3558 | | |
| |||
4632 | 4634 | | |
4633 | 4635 | | |
4634 | 4636 | | |
4635 | | - | |
| 4637 | + | |
4636 | 4638 | | |
4637 | 4639 | | |
4638 | 4640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments