summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-06-26 17:22:17 -0400
committerJay V <[email protected]>2025-06-26 17:22:17 -0400
commitd84c1f20c76776652cc8b74edeb43b25457abd6f (patch)
treedc7c63d0f8b02c16694dff268d7350476741a0aa
parentdfb8777555060443c205f25cc75df2a824fe31b1 (diff)
downloadopencode-d84c1f20c76776652cc8b74edeb43b25457abd6f.tar.gz
opencode-d84c1f20c76776652cc8b74edeb43b25457abd6f.zip
docs: social share
-rw-r--r--packages/web/astro.config.mjs33
1 files changed, 28 insertions, 5 deletions
diff --git a/packages/web/astro.config.mjs b/packages/web/astro.config.mjs
index 575e68acc..c296b386a 100644
--- a/packages/web/astro.config.mjs
+++ b/packages/web/astro.config.mjs
@@ -8,14 +8,12 @@ import config from "./config.mjs"
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
+const url = "https://opencode.ai"
const github = "https://github.com/sst/opencode"
-const headerLinks = [
- { name: "Docs", url: "/docs/" },
- { name: "GitHub", url: github },
-]
// https://astro.build/config
export default defineConfig({
+ site: url,
output: "server",
adapter: cloudflare({
imageService: "passthrough",
@@ -34,7 +32,32 @@ export default defineConfig({
starlight({
title: "opencode",
expressiveCode: { themes: ["github-light", "github-dark"] },
- social: [{ icon: "github", label: "GitHub", href: config.github }],
+ social: [
+ { icon: "github", label: "GitHub", href: config.github },
+ ],
+ head: [
+ {
+ tag: "link",
+ attrs: {
+ rel: "icon",
+ href: "/favicon.svg",
+ },
+ },
+ {
+ tag: "meta",
+ attrs: {
+ property: "og:image",
+ content: `${url}/social-share.png`,
+ },
+ },
+ {
+ tag: "meta",
+ attrs: {
+ property: "twitter:image",
+ content: `${url}/social-share.png`,
+ },
+ },
+ ],
editLink: {
baseUrl: `${github}/edit/master/www/`,
},