feat: add Release section with HTML iframe + markdown support#32
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…+ open-in-tab actions
…release/static dirs
…arkdown pages, remove sample v0.2.0
…e selectors, same shape)
…UDE.md project guide
60f7e53 to
a273a47
Compare
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
Adds a new top-level Release section parallel to Docs and Blog. Each release is a single Hugo page authored as
.md. Two kinds, distinguished by front-matter:iframe: \"/release/<file>.html\"in front-matter embeds a standalone HTML artifact fromstatic/release/inside a full-width frame with a breadcrumb + open-in-tab + fullscreen-toggle action bar. Reading time is computed by reading the linked artifact.Per-language under
content/en/release/andcontent/zh/release/. "Release" / "发布" added as the last main top-nav item in both menus.Includes two sample releases (v0.15.0 markdown + v0.16.0 HTML report) so reviewers can see both shapes in action, plus dev-server + lint cleanups encountered along the way.
Highlights
docs/superpowers/specs/2026-06-11-release-section-design.md,docs/superpowers/plans/2026-06-11-release-section.md.layouts/release/{list,single}.html, partiallayouts/partials/main/release-meta.html, SCSSassets/scss/components/_release.scss..card-listshape, hover, padding) extended viaassets/scss/layouts/_posts.scssselector list.readFile+plainify+ word count / 213 wpm.:fullscreenCSS, no vendor prefix), "open in new tab" link, sandbox="allow-scripts allow-same-origin allow-popups allow-forms".npm run startnow uses--poll 700ms --forceSyncStatic --navigateToChangedso newly-added files instatic/release/andcontent/.../release/live-reload on Windows without restart..gitattributespins LF line endings repo-wide.Test plan
npm run lintpasses (scripts + styles + markdown).npm run buildsucceeds;public/release/v0-15-0/index.html,public/release/v0-16-0/index.html,public/release/v0-16-0.html, and zh equivalents all generated;v0-16-0.html(artifact) andv0-16-0/(page directory) coexist as siblings./release/lists v0.16.0 (HTML badge) and v0.15.0 in card form, sorted newest-first./release/v0-15-0/renders the markdown release in blog-style centered article layout with right-side TOC./release/v0-16-0/renders the iframe page with breadcrumb + ↗ + ⤢ on a single row, full-width iframe, no left sidebar, no lead text./release/v0-16-0/works (Fullscreen API).static/release/v0-16-0.htmllinks to/and breaks out of iframe viatarget=\"_top\"./release/index.xml(RSS) is generated.🤖 Generated with Claude Code