Skip to content

fix(docs): make the site check fail on self-closed raw tags and bad config, never crash - #31

Merged
GeiserX merged 1 commit into
mainfrom
docs/site-check-v5
Nov 6, 2026
Merged

GeiserX merged 1 commit into
mainfrom
docs/site-check-v5

Conversation

@GeiserX

@GeiserX GeiserX commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

The shared site check let a few broken pages through and crashed on one kind of bad link. A self-closed <textarea/> hides the rest of a page in a browser, because HTML ignores that slash, but the check read it as empty. A %00 in a link path stopped the check with a traceback instead of an error line. A theme.features string, a redirect_maps that is not a table, a site URL without a scheme, or a home page with no content block passed without a word.

What changes: .github/scripts/site-check.py (and, on a list, docs/hooks/awesome_site.py) is the new shared copy. Each case above is now an ERROR line; a redirect stub is recognised by its parsed title, and the list's include line may use either quote and CRLF line endings.

Verified: planted controls on a real build, each new rule red before and green after the fix, with the error message checked; all 58 sites in the fleet build and check clean with it.

Summary by CodeRabbit

  • Bug Fixes
    • Site checks now catch more broken or malformed links, including invalid URLs and fragment references.
    • Reports now flag missing Markdown copies, invalid site or canonical URLs, and malformed plugin, redirect, or feature configuration.
    • Detects page structure issues, including content hidden by unclosed HTML elements and redirect-only or non-content index pages.
    • Checks account for HTML templates, SVG and MathML content, and redirect-stub pages when validating page IDs and links.

Loading
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