Skip to content

Directory shell guard: heading parity both ways, against Threats and Platforms - #90

Merged
yesnet0 merged 1 commit into
mainfrom
chore/directory-heading-guard
Dec 1, 2026
Merged

yesnet0 merged 1 commit into
mainfrom
chore/directory-heading-guard

Conversation

@yesnet0

@yesnet0 yesnet0 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Follow-up to #87. The build check that keeps the directory.disclose.io page heading in step with the Threats and Platforms headers only checked one way (template classes present in the CSS rule), only against Threats, and not the header block.

scripts/check-directory-shell.mjs now compares the header block, title and description rules in assets/css/main.css with both threats.html and platforms.html, in both directions. The few extra classes the directory needs (p-0, text-gray-900, tracking-tight, font-sans) are listed in HEADING_EXTRAS with the reason each exists; any other difference fails the build. --self-test adds five deliberate breaks (Threats title changed, Platforms description changed, header block changed, unexplained extra class, rule removed), each caught, plus the unchanged case passing.

No change to any page or to the stylesheet.

…ts and Platforms

The check that keeps the directory heading in step with its sibling pages only
looked one way, only at Threats, and not at the header block. It now compares the
header block, title and description rules with both templates in both directions;
the few extra classes the directory needs are listed with the reason each exists.
Self-test adds five deliberate breaks for it. No page output changes.
@yesnet0
yesnet0 merged commit 02583e8 into main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant