Skip to content

Commit bf3ea82

Browse files
luoxuanzaoQoder-AI
andauthored
docs(site): add a social share card for link previews (#87)
og:image and twitter:image were absent, so links to the docs site rendered as bare text cards in chat apps. The card is a 1200x630 crop of assets/preview.png, synced into the site like the other assets. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
1 parent 76cca97 commit bf3ea82

4 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎assets/social-card.jpg‎

122 KB
Loading

‎docs/.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Synced by scripts/sync-assets.mjs, not committed
2-
/static/img/preview.png
2+
/static/img/
33

44
# Docusaurus build output (also covered by root .gitignore, kept for local runs)
55
/build/

‎docs/docusaurus.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const config = {
4545
themeConfig:
4646
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
4747
({
48+
image: "img/social-card.jpg",
4849
navbar: {
4950
title: "Qoderian",
5051
items: [

‎docs/scripts/sync-assets.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const repoRoot = join(scriptsDir, "..", "..");
1010

1111
const targets = [
1212
["assets/preview.png", "static/img/preview.png"],
13+
["assets/social-card.jpg", "static/img/social-card.jpg"],
1314
];
1415

1516
for (const [from, to] of targets) {

0 commit comments

Comments
 (0)