Skip to content

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 00:17
· 1 commit to main since this release

Highlights ✨

Tailor 0.8.0 adds an opt-in social capability that generates theme-aware Open Graph cards (pages/og.png) and animated light and dark SVG assets for repository READMEs.

Social assets and tailor social

  • Opt-in configuration: Declare social.enabled: true in .tailor.yml to manage nix/og.nix, just/og.just, and .github/workflows/tailor-social.yml. Tailor inherits the project display name (using the Haberdasher and Vitrine title rule), description (with trailing emoji removed), icon (pages/icon.svg or pages/icon.png), and µCSS colour palette from pages/style.css.
  • Static README SVGs (tailor social --static): Generates offline dark and light SVG pairs under pages/social/ for the hero banner (with undulating water waves), preferred social link pills, community banners (discord, matrix, slack, irc, forum, discussions), balanced Haberdasher package rows, a multi-coloured Sponsors call-to-action banner, a framed animated demo window (demo.webp or demo-still.png up to 512 KiB), and a slim "Fitted by Tailor" footer banner.
  • Live README SVGs (tailor social --live): Generates a 4-column project health strip (commits, open and closed issues, merged and open pull requests, and established date linked to /pulse), an animated star-history chart (or drifting-stars call to action below threshold), a floating-avatars human contributors banner linked to /graphs/contributors, and live Discord online and member counts.
  • README marker blocks: Updates only explicit <!-- tailor:social-*:start --> / <!-- tailor:social-*:end --> pairs in README.md, leaving surrounding prose untouched.

Open Graph cards and Pages updates

  • Offline og.png rendering (just og): Adds a self-contained Nix wrapper (nix/og.nix) bundling headless Chromium, Work Sans, static Fira Code, and oxipng to render 1280 x 640 PNG cards under 1 MB. Uses a borderless icon-showcase split layout by default (og.include_preview: false) or a framed demo screenshot or terminal preview when opted in, and requires --force to overwrite existing artwork.
  • Local health check (tailor measure): Validates existing pages/og.png files read-only for PNG format, 1280 x 640 or 1200 x 630 dimensions, and size under 1 MB.
  • Static Pages starter (swatches/pages/): Adds Open Graph and Twitter Card (summary_large_image) meta tags using {{SITE_URL}}, adds irc to pages.links, and adds a subtle inline "Fitted by Tailor" colophon to the page footer.

Upgrade notes

  • Default merging never enables social. Add social: { enabled: true } to .tailor.yml, run tailor baste, then run tailor alter.
  • Existing first-fit pages/index.html and bespoke pages/og.png files stay untouched during tailor alter.
  • Update to v0.8.1 for the updated .github/workflows/tailor-social.yml workflow that uses branch-based social-assets URLs without pushing to a protected default branch.

Changelog

Install

Tailor needs a GitHub authentication token. Set GH_TOKEN or GITHUB_TOKEN, or run gh auth login locally.