Skip to content

Commit fb59dcb

Browse files
committed
Site: a link-preview card for every docs page, blog post and page, drawn at build time (satori + resvg-js); og:image, twitter:image, JSON-LD and the Atom feed point at it; the cards are og/ snapshots in the VisualCI build
1 parent 41ab4c9 commit fb59dcb

10 files changed

Lines changed: 457 additions & 9 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ jobs:
278278
upload: |
279279
tmp/visual/screenshots --prefix screenshots/ --platform chrome-linux
280280
tmp/visual/site --prefix site/
281+
tmp/visual/og --prefix og/
281282
tmp/visual/site/docs/quick-start.md --prefix site/docs/ --format text
282283
frontend/src --from vitest --prefix components/
283284
app/tests/golden/api --prefix json/api/ --format json

‎frontend/package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424
"simple-icons": "^16.39.0"
2525
},
2626
"devDependencies": {
27+
"@fontsource/geist": "^5.3.0",
28+
"@resvg/resvg-js": "^2.6.2",
2729
"@testing-library/react": "^16.3.3",
2830
"@types/react": "^19",
2931
"@types/react-dom": "^19",
3032
"@vitejs/plugin-react": "^6.0.5",
3133
"jsdom": "^27.4.0",
34+
"satori": "^0.64.3",
3235
"typescript": "^5",
3336
"vite": "^8.2.1",
3437
"vitest": "^4.1.12"

0 commit comments

Comments
 (0)