Repository navigation
v0.5.0
Breaking changes
- Integration required. Add
astroShell({ config, styles })from
@brainage04/astro-shelltoastro.config.mjs. It sets the GitHub Pagessite/base
fromPUBLIC_SITE_URL/PUBLIC_BASE_PATH, provides the site config toSiteLayout,
loads site styles after the shell's, and injects/404. - SiteLayout reads config from the integration; don't spread
siteConfiginto it.
Props:title?(omit on the home page — thetitle === 'Home'check is gone),
description?,image?,ogType?,canonicalHref?. Delete localSiteLayout
wrappers and404.astro. - SiteConfig:
ownerHrefandownerNameare required (no brainage04 defaults).
New optionalyear. - Tokens renamed (old names removed):
--accent-cyan→--accent-primary--accent→--accent-secondary--accent-yellow→--accent-highlight--shadow-soft/--panel-shadow→--shadow-raised--font-body/--font-display→--font-mono--accent-greenremoved
.action-buttonnow controls its own size, so<button class="action-button">
matches<a class="action-button">. Dropis-="button"and any height workarounds.
Added
themes/rose.css- Components:
StatCard,ProfileCard - Utilities:
.meta-row,.section-heading,.chip-list,.table-wrap--stack,
site-wide reduced-motion rule - Presets:
@brainage04/astro-shell/eslint,/prettier,/tsconfig.json - Reusable workflows:
.github/workflows/site-validate.ymlandsite-deploy.yml
(workflow_call; the deploy workflow takes an optionalrefinput) @brainage04/astro-shell/navigation:isNavItemActive
Fixes
- Scanline overlay now sits behind content.
PageHeaderh1 is 16ch wide.- Number inputs use the
--control-*tokens. - A root-level
prefixnav item no longer matches every page under a non-root base. - Test files are no longer included in the package.
See the README's "Migrating from 0.4" section for step-by-step instructions.