Jay V 7 месяцев назад
Родитель
Сommit
76b2e4539c
3 измененных файлов с 7 добавлено и 3 удалено
  1. 2 2
      README.md
  2. 4 1
      packages/web/astro.config.mjs
  3. 1 0
      packages/web/config.mjs

+ 2 - 2
README.md

@@ -9,7 +9,7 @@
 </p>
 <p align="center">AI coding agent, built for the terminal.</p>
 <p align="center">
-  <a href="https://opencode.ai/docs"><img alt="View docs" src="https://img.shields.io/badge/view-docs-blue?style=flat-square" /></a>
+  <a href="https://discord.gg/opencode"><img alt="Discord" src="https://img.shields.io/discord/1391832426048651334?style=flat-square&label=discord" /></a>
   <a href="https://www.npmjs.com/package/opencode-ai"><img alt="npm" src="https://img.shields.io/npm/v/opencode-ai?style=flat-square" /></a>
   <a href="https://github.com/sst/opencode/actions/workflows/publish.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/sst/opencode/publish.yml?style=flat-square&branch=dev" /></a>
 </p>
@@ -76,4 +76,4 @@ The other confusingly named repo has no relation to this one. You can [read the
 
 ---
 
-**Join our community** [YouTube](https://www.youtube.com/c/sst-dev) | [X.com](https://x.com/SST_dev)
+**Join our community** [Discord](https://discord.gg/opencode) | [YouTube](https://www.youtube.com/c/sst-dev) | [X.com](https://x.com/SST_dev)

+ 4 - 1
packages/web/astro.config.mjs

@@ -31,7 +31,10 @@ 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 },
+        { icon: "discord", label: "Dscord", href: config.discord }
+      ],
       head: [
         {
           tag: "link",

+ 1 - 0
packages/web/config.mjs

@@ -2,6 +2,7 @@ export default {
   url: "https://opencode.ai",
   socialCard: "https://social-cards.sst.dev",
   github: "https://github.com/sst/opencode",
+  discord: "https://discord.gg/opencode",
   headerLinks: [
     { name: "Home", url: "/" },
     { name: "Docs", url: "/docs/" },