site: build with Accent CMS 0.26.0 and add Google site verification - #49
Merged
Merged
Conversation
Accent 0.26.0 removes the square-bracket shortcode syntax, requires
every theme to implement the canonical components, and blocks theme
scripts that do not carry a nonce. Adapt the site to it:
- Port the canonical components (accordion, breadcrumb, button,
callout, card, image, tab, tabs, tag) from the Accent 0.26.0 Agentic
theme the driller theme derives from, and drop the legacy alert
shortcode template, which callout replaces.
- Rewrite the two landing-page buttons as {% button %} components.
Under 0.26 the old [button] lines rendered as literal text.
- Style the callout component with the former alert styles, and drop
the .sc-button aliases the removed built-in shortcode used.
- Mark the theme scripts with nonce="{{ nonce }}" so the build records
their hashes in the page script policy.
- Show the Accent version and commit the site was built with in the
footer.
- Pin ACCENT_VERSION to v0.26.0 in the Pages workflow and drop
--strict-links, which is deprecated: a broken internal link now fails
the build by default.
Also add the google-site-verification meta tag to every page so the
site can be registered in Google Search Console.
Built locally with the checksum-verified v0.26.0 release binary using
the workflow's build command; the link check passes and
`accent validate --templates` reports no theme errors.
Replace the `curl ... install.sh | sh` step with accentup, the Rust installer published on crates.io as the `accent` crate. It verifies the release in-process with the signing key compiled in and no skip path, so the job no longer depends on the runner shipping gpg or on the install script served from the accent repository's main branch, and a failed download can no longer pipe empty input into a shell that exits zero. accentup is built with --locked at a pinned version (0.1.3) and cached by that version, so only the first run pays for the compile. It reads the same ACCENT_VERSION pin as before.
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
google-site-verificationmeta tag to every page's<head>, so the site can be verified.v0.26.0, up fromv0.25.1. This release needs three changes to the site:[button]lines rendered as literal text under 0.26 and failed the base-path check. They are now{% button %}components.accordion,breadcrumb,button,callout,card,image,tab,tabsandtagfrom the 0.26.0 Agentic theme, which the driller theme derives from (MIT). The legacyalerttemplate is replaced bycallout, which takes over the alert styles. The.sc-buttonaliases for the removed built-in are dropped.nonce="{{ nonce }}", so the build records their hashes in the page script policy.Built with Accent CMS 0.26.0 (054d85c).--strict-links. It is deprecated in 0.26 and removed in 0.27, because a broken internal link now fails the build by default.accentup(the crates.ioaccentcrate, pinned to 0.1.3 and cached) instead ofcurl ... install.sh | sh. It verifies the checksum and signature in-process, with the signing key compiled in and no skip path, so the job no longer depends ongpgon the runner or on an install script fetched frommain, and a failed download can no longer pass silently.Test plan
v0.26.0release binary, using the workflow's exact build command. The link check passes, andindex.htmland404.htmlexist.accent validate --templates: no theme errors. The content warnings matchmain; they are links to mounted pages, whichvalidatedoes not resolve./drillerprefix: both buttons styled and linked, theme toggle works, footer shows the version, no console errors.Build sitejob passes on this PR.accentup install --version v0.26.0tested locally, givingaccent 0.26.0 (054d85c).Build sitepasses withaccentup. The first run compiled it in 1m15s; later runs restore it from the cache.