Skip to content

Commit c2ad23e

Browse files
committed
Set up social share details for website
1 parent 8d3f60c commit c2ad23e

3 files changed

Lines changed: 77 additions & 0 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ export default defineConfig({
99
},
1010

1111
head: [
12+
['meta', { property: 'og:image', content: 'https://afdocs.dev/social-card.png' }],
13+
['meta', { property: 'og:title', content: 'AFDocs' }],
14+
[
15+
'meta',
16+
{
17+
property: 'og:description',
18+
content: 'Test your documentation site against the Agent-Friendly Documentation Spec',
19+
},
20+
],
21+
['meta', { property: 'og:url', content: 'https://afdocs.dev' }],
22+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
23+
['meta', { name: 'twitter:image', content: 'https://afdocs.dev/social-card.png' }],
1224
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicons/favicon.ico' }],
1325
[
1426
'link',

docs/public/social-card.png

99.3 KB
Loading

docs/sharing-image.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<style>
6+
* { margin: 0; padding: 0; box-sizing: border-box; }
7+
body {
8+
width: 1200px;
9+
height: 630px;
10+
background: #001e1d;
11+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: center;
16+
overflow: hidden;
17+
position: relative;
18+
}
19+
.glow {
20+
position: absolute;
21+
width: 700px;
22+
height: 700px;
23+
background: radial-gradient(circle, rgba(0,70,67,0.5) 0%, transparent 65%);
24+
border-radius: 50%;
25+
pointer-events: none;
26+
}
27+
.logo {
28+
width: 260px;
29+
height: 260px;
30+
margin-bottom: 32px;
31+
position: relative;
32+
z-index: 1;
33+
}
34+
h1 {
35+
color: #e8f4f2;
36+
font-size: 56px;
37+
font-weight: 800;
38+
letter-spacing: -1px;
39+
margin-bottom: 14px;
40+
position: relative;
41+
z-index: 1;
42+
}
43+
.tagline {
44+
font-size: 21px;
45+
color: #abd1c6;
46+
position: relative;
47+
z-index: 1;
48+
}
49+
.url {
50+
position: absolute;
51+
bottom: 30px;
52+
font-size: 15px;
53+
color: #2a5450;
54+
letter-spacing: 0.5px;
55+
}
56+
</style>
57+
</head>
58+
<body>
59+
<div class="glow"></div>
60+
<svg class="logo" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><g id="head"><path d="M102.514,378.429l-0,161.215c-0,6.928 -5.625,12.552 -12.553,12.552l-25.105,0c-6.928,0 -12.553,-5.624 -12.553,-12.552l0,-161.215c0,-6.928 5.625,-12.553 12.553,-12.553l25.105,0c6.928,0 12.553,5.625 12.553,12.553Z" style="fill:#abd1c6;"/><path d="M145.514,378.429l-0,161.215l-1.13,11.158l-3.259,10.487l-11.884,17.635l-17.635,11.884l-10.487,3.258l-11.158,1.13l-25.105,0l-11.158,-1.13l-10.487,-3.258l-17.635,-11.884l-11.884,-17.635l-3.259,-10.487l-1.13,-11.158l0,-161.215l1.13,-11.158l3.259,-10.487l11.884,-17.635l17.635,-11.885l10.487,-3.258l11.158,-1.13l25.105,0l11.158,1.13l10.487,3.258l17.635,11.885l11.884,17.635l3.259,10.487l1.13,11.158Zm-43,-0c-0,-6.928 -5.625,-12.553 -12.553,-12.553l-25.105,0c-6.928,0 -12.553,5.625 -12.553,12.553l0,161.215c0,6.928 5.625,12.552 12.553,12.552l25.105,0c6.928,0 12.553,-5.624 12.553,-12.552l-0,-161.215Z" style="fill:#004643;"/><path d="M688.978,378.429l-0,161.215c-0,6.928 -5.625,12.552 -12.553,12.552l-25.105,0c-6.928,0 -12.553,-5.624 -12.553,-12.552l0,-161.215c0,-6.928 5.625,-12.553 12.553,-12.553l25.105,0c6.928,0 12.553,5.625 12.553,12.553Z" style="fill:#abd1c6;"/><path d="M731.978,378.429l-0,161.215l-1.13,11.158l-3.259,10.487l-11.884,17.635l-17.635,11.884l-10.487,3.258l-11.158,1.13l-25.105,0l-11.158,-1.13l-10.487,-3.258l-17.635,-11.884l-11.884,-17.635l-3.259,-10.487l-1.13,-11.158l0,-161.215l1.13,-11.158l3.259,-10.487l11.884,-17.635l17.635,-11.885l10.487,-3.258l11.158,-1.13l25.105,0l11.158,1.13l10.487,3.258l17.635,11.885l11.884,17.635l3.259,10.487l1.13,11.158Zm-43,-0c-0,-6.928 -5.625,-12.553 -12.553,-12.553l-25.105,0c-6.928,0 -12.553,5.625 -12.553,12.553l0,161.215c0,6.928 5.625,12.552 12.553,12.552l25.105,0c6.928,0 12.553,-5.624 12.553,-12.552l-0,-161.215Z" style="fill:#004643;"/><path d="M546.434,241.647l-160.264,0l-0,-79.918c22.444,-6.672 38.822,-27.448 38.822,-52.075c-0,-30.027 -24.325,-54.351 -54.351,-54.351c-30.026,0 -54.35,24.324 -54.35,54.351c-0,24.627 16.378,45.373 38.822,52.075l-0,79.918l-160.264,0c-35.789,0 -64.905,29.117 -64.905,64.906l-0,304.991c-0,35.789 29.116,64.905 64.905,64.905l351.577,-0c35.789,-0 64.905,-29.116 64.905,-64.905l0,-304.991c0,-35.789 -29.116,-64.906 -64.905,-64.906l0.008,0Zm-338.844,201.873c0,8.553 -6.976,15.529 -15.529,15.529c-8.552,-0 -15.528,-6.976 -15.528,-15.529c-0,-47.132 38.276,-85.407 85.407,-85.407c47.132,-0 85.408,38.275 85.408,85.407c0,8.553 -6.976,15.529 -15.528,15.529c-8.553,-0 -15.529,-6.976 -15.529,-15.529c-0,-29.965 -24.385,-54.35 -54.351,-54.35c-29.965,-0 -54.35,24.385 -54.35,54.35Zm240.695,156.974c-11.575,11.257 -36.367,32.078 -79.652,32.078c-40.659,-0 -65.16,-21.021 -75.635,-32.078c-4.734,-4.997 -13.524,-16.435 -16.334,-24.513c-2.769,-7.964 6.832,-22.208 20.914,-10.375c20.877,17.544 45.704,35.908 70.846,35.908c25.881,0 47.877,-5.371 76.213,-33.955c10.473,-10.564 22.619,-2.044 19.176,7.955c-2.784,8.087 -10.293,19.889 -15.528,24.98Zm100.936,-141.445c-8.553,-0 -15.529,-6.976 -15.529,-15.529c0,-29.965 -24.384,-54.35 -54.35,-54.35c-29.966,-0 -54.35,24.385 -54.35,54.35c-0,8.553 -6.976,15.529 -15.529,15.529c-8.553,-0 -15.529,-6.976 -15.529,-15.529c0,-47.132 38.276,-85.407 85.408,-85.407c47.132,-0 85.408,38.275 85.408,85.407c-0,8.553 -6.976,15.529 -15.529,15.529Z" style="fill:#abd1c6;fill-rule:nonzero;"/><path d="M546.434,198.647c59.495,0.005 107.897,48.409 107.897,107.906l0,304.991c0,59.499 -48.406,107.905 -107.905,107.905l-351.577,-0c-59.499,-0 -107.905,-48.406 -107.905,-107.905l-0,-304.991c-0,-59.5 48.406,-107.906 107.905,-107.906l117.264,0l-0,-11.237c-23.576,-17.754 -38.822,-45.95 -38.822,-77.756c-0,-53.782 43.568,-97.351 97.35,-97.351c53.782,0 97.351,43.569 97.351,97.351c-0,31.801 -15.25,60.013 -38.822,77.766l-0,11.227l117.264,0Zm-0,43l-160.264,0l-0,-79.918c22.444,-6.672 38.822,-27.448 38.822,-52.075c-0,-30.027 -24.325,-54.351 -54.351,-54.351c-30.026,0 -54.35,24.324 -54.35,54.351c-0,24.627 16.378,45.373 38.822,52.075l-0,79.918l-160.264,0c-35.789,0 -64.905,29.117 -64.905,64.906l-0,304.991c-0,35.789 29.116,64.905 64.905,64.905l351.577,-0c35.789,-0 64.905,-29.116 64.905,-64.905l0,-304.991c0,-35.787 -29.112,-64.901 -64.897,-64.906Zm-338.844,201.873c0,8.553 -6.976,15.529 -15.529,15.529c-8.552,-0 -15.528,-6.976 -15.528,-15.529c-0,-47.132 38.276,-85.407 85.407,-85.407c47.132,-0 85.408,38.275 85.408,85.407c0,8.553 -6.976,15.529 -15.528,15.529c-8.553,-0 -15.529,-6.976 -15.529,-15.529c-0,-29.965 -24.385,-54.35 -54.351,-54.35c-29.965,-0 -54.35,24.385 -54.35,54.35Zm240.695,156.974c-11.575,11.257 -36.367,32.078 -79.652,32.078c-40.659,-0 -65.16,-21.021 -75.635,-32.078c-4.734,-4.997 -13.524,-16.435 -16.334,-24.513c-2.769,-7.964 6.832,-22.208 20.914,-10.375c20.877,17.544 45.704,35.908 70.846,35.908c25.881,0 47.877,-5.371 76.213,-33.955c10.473,-10.564 22.619,-2.044 19.176,7.955c-2.784,8.087 -10.293,19.889 -15.528,24.98Zm100.936,-141.445c-8.553,-0 -15.529,-6.976 -15.529,-15.529c0,-29.965 -24.384,-54.35 -54.35,-54.35c-29.966,-0 -54.35,24.385 -54.35,54.35c-0,8.553 -6.976,15.529 -15.529,15.529c-8.553,-0 -15.529,-6.976 -15.529,-15.529c0,-47.132 38.276,-85.407 85.408,-85.407c47.132,-0 85.408,38.275 85.408,85.407c-0,8.553 -6.976,15.529 -15.529,15.529Z" style="fill:#004643;"/></g><g id="document"><path d="M984.379,923.719l-109.905,32.617l-22.255,22.255l-0,-0.023c-4.804,4.78 -11.304,7.489 -18.087,7.536l-59.487,-0l-104.42,31.062c-23.385,6.924 -47.995,-6.358 -54.99,-29.72l-0.423,-1.319l-21.761,-0.024c-24.398,-0.117 -44.109,-19.923 -44.133,-44.298l0,-178.037l-55.343,-185.267c-6.9,-23.385 6.406,-47.947 29.791,-54.919l25.552,-7.606l0,-2.167c0.024,-24.445 19.853,-44.274 44.322,-44.298l111.581,0l132.635,-39.494c11.257,-3.367 23.385,-2.119 33.724,3.462c10.339,5.582 18.04,15.049 21.384,26.306l2.896,9.773l26.471,0c24.445,0.047 44.274,19.853 44.298,44.322l-0,193.465l47.941,161.385c6.924,23.408 -6.405,47.995 -29.791,54.989Z" style="fill:#001e1d;"/><path d="M886.164,466.441l119.065,398.506c5.945,19.896 -5.382,40.875 -25.278,46.82l-308.893,92.291c-19.896,5.944 -40.875,-5.382 -46.82,-25.279l-119.065,-398.505c-5.945,-19.896 5.382,-40.876 25.278,-46.82l308.893,-92.291c19.896,-5.945 40.875,5.382 46.82,25.278Z" style="fill:#e16162;"/><path d="M954.433,708.247l1.095,151.55l-87.753,83.61l-21.019,21.019l-0,-0.023c-4.537,4.515 -10.676,7.073 -17.082,7.118l-56.183,-0l-150.954,0.022l-20.552,-0.023c-23.043,-0.111 -41.659,-18.816 -41.682,-41.837l0,-404.221c0.023,-23.087 18.751,-41.815 41.86,-41.838l105.383,0l180.05,0.045l24.999,0c23.088,0.045 41.816,18.75 41.838,41.86l-0,182.718Z" style="fill:#f9bb60;fill-rule:nonzero;"/><path d="M919.619,544.141l0,366.905l-29.98,29.98l-264.636,0c-16.547,0 -29.98,-13.433 -29.98,-29.98l-0,-366.905c-0,-16.546 13.433,-29.98 29.98,-29.98l264.636,-0c16.546,-0 29.98,13.434 29.98,29.98Z" style="fill:#abd1c6;"/><g><path d="M808.965,575.56c-0,-8.608 6.984,-15.592 15.591,-15.592l31.028,-0c8.229,0.489 14.657,7.318 14.657,15.569c0,8.252 -6.428,15.058 -14.657,15.57l-31.028,-0c-8.585,-0 -15.569,-6.962 -15.591,-15.547Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M855.584,621.111l-23.51,0c-8.229,0.49 -14.657,7.318 -14.657,15.57c-0,8.251 6.428,15.08 14.657,15.569l23.51,0c8.229,-0.489 14.657,-7.318 14.657,-15.569c0,-8.252 -6.428,-15.08 -14.657,-15.57Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M783.675,697.467c0,4.159 1.668,8.163 4.626,11.099c2.959,2.913 6.985,4.537 11.143,4.492l56.317,0c8.229,-0.489 14.657,-7.317 14.657,-15.569c0,-8.252 -6.428,-15.08 -14.657,-15.57l-56.317,0c-4.159,-0.044 -8.162,1.58 -11.12,4.493c-2.958,2.914 -4.627,6.895 -4.649,11.054l0,0.001Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M658.921,773.868l196.663,0c8.229,-0.489 14.657,-7.318 14.657,-15.569c0,-8.252 -6.428,-15.058 -14.657,-15.57l-196.663,0c-8.23,0.512 -14.657,7.318 -14.657,15.57c-0,8.251 6.427,15.08 14.657,15.569Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M658.921,834.679l102.935,0.023c4.293,0.244 8.519,-1.268 11.655,-4.226c3.114,-2.936 4.893,-7.051 4.893,-11.366c0,-4.293 -1.779,-8.408 -4.893,-11.343c-3.136,-2.959 -7.362,-4.471 -11.655,-4.226l-102.935,-0c-8.23,0.511 -14.657,7.317 -14.657,15.569c-0,8.252 6.427,15.08 14.657,15.592l-0,-0.023Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M658.921,895.491l102.935,0.022c4.293,0.245 8.519,-1.268 11.655,-4.226c3.114,-2.936 4.893,-7.051 4.893,-11.366c0,-4.292 -1.779,-8.407 -4.893,-11.343c-3.136,-2.958 -7.362,-4.471 -11.655,-4.226l-102.935,-0c-8.23,0.511 -14.657,7.34 -14.657,15.569c-0,8.252 6.427,15.08 14.657,15.592l-0,-0.022Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M734.81,630.569l55.004,-0c2.002,-0 3.937,-0.801 5.338,-2.224c1.424,-1.424 2.202,-3.337 2.18,-5.361c-0.178,-34.453 -28.158,-62.28 -62.633,-62.28c-4.137,0 -7.518,3.359 -7.518,7.518l0,55.004c0.111,4.115 3.514,7.407 7.629,7.34l-0,0.003Z" style="fill:#fff;fill-rule:nonzero;"/><path d="M703.626,714.668c34.453,1.513 63.767,-24.933 65.748,-59.387c0.045,-1.046 -0.333,-2.047 -1.045,-2.781c-0.734,-0.756 -1.735,-1.156 -2.758,-1.156l-54.604,-0c-2.513,-0 -4.56,-2.024 -4.56,-4.538l0,-54.603c0,-1.046 -0.422,-2.024 -1.156,-2.736c-0.756,-0.712 -1.757,-1.09 -2.78,-1.023c-33.297,2.313 -59.029,30.182 -58.699,63.59c0.356,33.385 26.668,60.72 60.008,62.343l-0.154,0.291Z" style="fill:#fff;fill-rule:nonzero;"/></g><path d="M839.166,971.521l-0,-96.156c-0,-7.339 8.229,-15.568 15.568,-15.568l100.794,-0" style="fill:#f9bb60;stroke:#000;stroke-width:13.33px;"/><g><path d="M548.918,763.768l0,-247.792l11.385,-7.998l0,282.091l-11.385,-26.301Z" style="fill:#001e1d;"/><path d="M704.821,469.511l190.639,0.047l17.135,14.111l-236.974,-0.052l29.2,-14.106Z" style="fill:#001e1d;"/><path d="M598.954,971.545l211.454,-0.024l-35.763,14.583l-159.833,0.023l-15.858,-14.582Z" style="fill:#001e1d;"/><path d="M963.292,870.529c-2.198,2.812 -6.494,6.823 -6.494,6.823l-82.324,78.984l-27.718,8.09l95.156,-95.157c0,0 6.25,-5.7 10.245,-11.824c3.265,-5.005 2.276,-22.402 2.276,-22.402l-0,-150.023l11.796,22.325l-0.292,136.293c0,0 -0.038,5.049 -0.063,8.964c-0.023,3.505 0.543,13.927 -2.582,17.927Z" style="fill:#001e1d;"/></g></g></svg>
61+
<h1>AFDocs</h1>
62+
<p class="tagline">How well can agents read your docs?</p>
63+
<p class="url">afdocs.dev</p>
64+
</body>
65+
</html>

0 commit comments

Comments
 (0)