Skip to content

Commit 4e8ecba

Browse files
authored
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 (#188)
1 parent 5acaf6f commit 4e8ecba

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
@@ -289,6 +289,7 @@ jobs:
289289
upload: |
290290
tmp/visual/screenshots --prefix screenshots/ --platform chrome-linux
291291
tmp/visual/site --prefix site/
292+
tmp/visual/og --prefix og/
292293
tmp/visual/site/docs/quick-start.md --prefix site/docs/ --format text
293294
frontend/src --from vitest --prefix components/
294295
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)