Repository navigation
Directory shell guard: heading parity both ways, against Threats and Platforms - #90
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mjsnow compares the header block, title and description rules inassets/css/main.csswith boththreats.htmlandplatforms.html, in both directions. The few extra classes the directory needs (p-0,text-gray-900,tracking-tight,font-sans) are listed inHEADING_EXTRASwith the reason each exists; any other difference fails the build.--self-testadds 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.