Skip to content

docs: tidy conformance table + drop shields.io badges from compliance report#24

Merged
chad-loder merged 1 commit into
mainfrom
docs/conformance-table-tidy
May 13, 2026
Merged

docs: tidy conformance table + drop shields.io badges from compliance report#24
chad-loder merged 1 commit into
mainfrom
docs/conformance-table-tidy

Conversation

@chad-loder
Copy link
Copy Markdown
Owner

Summary

Two small cleanups, both prompted by feedback on the rendered docs:

  1. README conformance table — collapse the duplicate Cases column into Status (the numerator already carries it) and switch the status indicator from <kbd>✓</kbd> to a raw U+2705 ✅ green check.
  2. docs/wpt-compliance.md — drop the five shields.io badges at the top of the report. They duplicated the Summary table directly below them, and shields.io's URL encoding mis-parses labels with embedded hyphens (e.g. urlpattern-constructor.any.js truncates at the first -), so several 404'd in practice.

Why raw Unicode for the check

:white_check_mark: is the GitHub-idiomatic shortcode, but README.md is this project's PyPI long_description via hatch fancy-pypi-readme. PyPI's CommonMark renderer doesn't expand emoji shortcodes — it would show the literal text :white_check_mark: on the package page. Raw Unicode ✅ renders consistently on GitHub, PyPI, the docs site, and any other CommonMark renderer.

What changes

README

Before — four columns; Cases is a redundant numerator:

Suite Source Cases Status
urlpattern.any.js WPT · urlpatterntestdata.json 366 366 / 366

After — three columns; pass marker upgraded to green ✅:

Suite Source Status
urlpattern.any.js WPT · urlpatterntestdata.json ✅ 366 / 366

docs/wpt-compliance.md

Five top-of-page shields.io badges removed. Run-metadata header now flows directly into the Summary table — the table already enumerates Total / Pass / XFail / Skip / Fail / Error per suite.

scripts/generate_compliance_report.py

  • Removed _badge, _suite_badge, and the badge-emission block in _render.
  • Dropped the now-orphan COLOR_PASS / COLOR_FAIL / COLOR_XFAIL / COLOR_SKIP / COLOR_ERROR constants.
  • Tightened the module docstring + the symbol-section comment to stop referencing shields.io.
  • The per-case status symbols (✓ / ✗ / ◐ / ◑ / ⚠) are unchanged — accessibility behaviour (glyph + status word in every cell) preserved.

Test plan

  • just compliance-report — regenerates docs/wpt-compliance.md as 469 cases, 0 failing
  • just docs — strict-mode site build clean
  • just lint — all tools green (ruff, mypy, pyright, ty, semgrep, shellcheck, rumdl, codespell, interrogate, validate-pyproject)
  • Signed commit (ED25519)

No source-code changes outside the report generator; docs only.

… report

README — collapse the duplicate Cases column into Status

The conformance table had Cases (e.g. ``366``) and Status (e.g. ``366 / 366``)
sitting side by side. Status already carries Cases in its numerator, so the
extra column was pure noise. Now: just Suite / Source / Status. Adds a U+2705
WHITE HEAVY CHECK MARK (✅) to each pass row — rendered as a green check by
GitHub, PyPI, the docs site, and every other CommonMark renderer (raw Unicode
rather than ``:white_check_mark:`` so it survives PyPI's long-description
rendering, which doesn't expand emoji shortcodes).

docs/wpt-compliance.md — drop the top-of-page shields.io badge row

The five shields.io badges at the top of the report duplicated the per-suite
counts that the Summary table immediately below them already carries.
shields.io's URL encoding also mis-parses labels with embedded hyphens
(``urlpattern-constructor.any.js`` truncates at the first ``-``), so several
of the badges 404'd in practice. Removing the row leaves the report jumping
straight from the run-metadata header to the Summary table.

scripts/generate_compliance_report.py — remove the now-unused badge plumbing

Dropped ``_badge``, ``_suite_badge``, the ``COLOR_*`` constants, the
top-of-page badge emission block, and the shields.io references in the
module docstring + section comment. The status-symbol palette (✓ / ✗ /
◐ / ◑ / ⚠) is untouched; per-case rows still pair every glyph with a
status word for accessibility.

No code changes outside the report generator; docs only.
@chad-loder chad-loder enabled auto-merge (squash) May 13, 2026 04:07
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 13, 2026
@chad-loder chad-loder merged commit 18a90df into main May 13, 2026
19 checks passed
@chad-loder chad-loder deleted the docs/conformance-table-tidy branch May 13, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant