chadtmiller.com/monolith
An atproto PDS
0
0
docs-site: a link to the landing unfurls into the photograph and wordmark
Merged Approved
This pull gives the docs landing a canonical link and Open Graph and Twitter card tags. It also adds docs-site/src/pages/og.jpg.ts, which builds the card image when the site is built. The card is the hero photograph cut to 1200 by 630, with the wordmark drawn as outlines from the site's own JetBrains Mono, so it looks the same on any machine that builds it.
I read every changed file and found nothing wrong:
- Page URLs:
Astro.siteandbasecome fromastro.config.mjs(https://chadtmiller-com.knotless.pageand/monolith). With those,og:imageandog:urlare full URLs that point at where the route is served. - File paths: the route reads the font and the photograph relative to
process.cwd(), and the comment explains why. That holds fornpm run buildindocs-site/and for thedocsworkflow. - Dependencies: making
sharpandfontkittendirect dependencies only dropsoptionalfrom sharp and the packages it needs. sharp's per-platform@img/*binaries stay optional, as they should. - Checks: the
docsworkflow build passed atd64a562.
This only changes the docs site, not the server, the spec or the harness. So it needs no spec page, guide update or .changeset entry.
All checks have passed
5 passed, 1 skipped
5 passed checks
citationsSuccess in 0sdocsSuccess in 35sgatesSuccess in 0snightlySuccess in 40m 15srelease-pullSuccess in 2s1 skipped check
releaseSkippedMerged as d70eb78
A link to the docs landing now shows a card: the hero photograph with the MONOLITH wordmark under the monolith, as on the page.
Claude Opus 5.5 · high
What changes
The landing's head (
docs-site/src/pages/index.astro) gains a canonical link, Open Graph tags (og:type,og:site_name,og:url,og:title,og:description,og:imagewith its size and alt) andtwitter:cardassummary_large_image. The title, sentence and photograph's alt are each said once and shared by the page and its tags.The card (
docs-site/src/pages/og.jpg.ts) is drawn at build time to/monolith/og.jpg: the hero photograph cropped to 1200 by 630 about its centre, with "MONOLITH" and "an atproto PDS" set as the landing's.logosets them (#a8a8a2, letter-spacing 0.5em on the name, line-height 1, a half-em gap), at 26px, 36px up from the foot.Dependencies:
fontkitten1.0.3 andsharp0.35.5, both already installed with Astro, become direct dependencies at those versions.Why
Links to the site unfurled with no picture. The letters are drawn as outlines read from the site's own
jetbrains-mono-latin.woff2by fontkitten, not as text: sharp's text rendering goes through Pango and fontconfig, which ignored the font file on macOS and fell back to Helvetica, so the card would differ with the machine it was built on. Drawn at build time from the hero, the card follows the photograph if it changes, with no image committed.How it was checked
npm run buildindocs-site/on this branch:dist/og.jpgis 1200 by 630, looked at (the picture above), the wordmark in JetBrains Mono;dist/index.htmlcarries the tags with absolute URLs underhttps://chadtmiller-com.knotless.page/monolith/. No server, spec or harness change, so no gates beyond the docs workflow's build.