Full-featured, WCAG 2.2 AAA-capable casket-ssg#34
Merged
Conversation
Wire CasketGnosis (the real executable) for full site builds:
- Load templates/default.html (vars: title, brand, date, content) with a
built-in fallback; substitute {{content}} last so body HTML is not
re-processed.
- copyAssets: copy assets/static/css/js/images into the output tree.
- copyPublic: copy <site>/public/ to the output ROOT so root web files ship
(.well-known/security.txt, CNAME, robots.txt, favicon.svg).
- Tolerate a leading SPDX HTML comment before the frontmatter fence.
- Enable Pandoc.pandocExtensions (raw_html + pipe tables) so hero/badge/card
HTML and tables render instead of being escaped.
Add a dark-mode-aware default theme (templates/default.html) and design
system (assets/style.css).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Engine (src/CasketGnosis.hs): recursive multi-page build, frontmatter +
draft-skip, Pandoc rich markdown (anchors, pipe tables w/ <th scope>,
footnotes, task lists, strikethrough, smart punctuation, raw HTML) +
syntax highlighting (skylighting -> /assets/highlight.css), file layouts +
partials ({{> name}}/{{include:}}) + {{toc}}/{{nav}}/{{site.*}}, site.conf,
collections + tag pages, sitemap.xml + Atom feed.xml, clean URLs; accessible
builtin fallback template.
Accessibility: default theme (templates/default.html + assets/style.css) is
WCAG 2.2 AAA-capable (contrast-verified >=7:1 palette light+dark, skip link,
labelled landmarks, :focus-visible, reduced-motion, reflow, >=44px targets);
generated tables get <th scope="col">. Verified vnu-clean (W3C Nu).
Cleanup: remove dead top-level Casket.hs (cabal builds CasketGnosis.hs);
remove duplicate, mislabelled README.md (AsciiDoc-in-.md with a wrong PMPL-1.0
badge) keeping README.adoc as canonical; add Sponsor badge to README.adoc.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Maps each WCAG 2.2 AAA success criterion to engine-owned (handled by the default theme + generated markup) vs author-owned (per-page content). Prose, CC-BY-SA-4.0 per estate Rule 1. Also fixes the local license-enforcer pre-commit hook to expect the correct licence per file type (.adoc/.md -> CC-BY-SA-4.0, code -> MPL-2.0) instead of hard-coding MPL-2.0 for all files (owner-directed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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.
Summary
Turns casket-ssg into a full-featured static-site generator and makes its default output WCAG 2.2 AAA-capable, plus repo cleanup.
Engine (src/CasketGnosis.hs)
/assets/highlight.css{{> name}}/{{include:}}) +{{toc}}/{{nav}}/{{site.*}};site.confsitemap.xml+ Atomfeed.xml; clean URLsAccessibility (WCAG 2.2 AAA-capable, engine-owned surface)
:focus-visible, reduced-motion, reflow, ≥44px targets<th scope="col">docs/ACCESSIBILITY-CHECKLIST.adocCleanup
Casket.hs(cabal buildsCasketGnosis.hs)README.md(AsciiDoc-in-.mdwith a wrong PMPL-1.0 badge); keptREADME.adoc+ added Sponsor badgeAll commits signed.
🤖 Generated with Claude Code