blume.config.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { defineConfig } from "blume"
  2. export default defineConfig({
  3. title: "OpenCode",
  4. description: "The open source AI coding agent.",
  5. basePath: "/docs",
  6. logo: {
  7. image: {
  8. light: "/assets/logo-light.svg",
  9. dark: "/assets/logo-dark.svg",
  10. alt: "OpenCode",
  11. },
  12. text: "",
  13. href: "/",
  14. },
  15. content: {
  16. root: "content/docs",
  17. },
  18. github: {
  19. owner: "anomalyco",
  20. repo: "opencode",
  21. branch: "v2",
  22. dir: "packages/www",
  23. },
  24. theme: {
  25. background: { dark: "#131010" },
  26. fonts: {
  27. body: "ibm-plex-mono",
  28. display: "ibm-plex-mono",
  29. mono: "ibm-plex-mono",
  30. },
  31. mode: "dark",
  32. },
  33. navigation: {
  34. tabs: [
  35. { label: "Docs", path: "/" },
  36. { label: "Build", path: "/build" },
  37. { label: "API", path: "/api" },
  38. ],
  39. },
  40. openapi: {
  41. enabled: true,
  42. route: "/api",
  43. spec: "./openapi.json",
  44. },
  45. seo: {
  46. og: {
  47. fonts: [{ name: "IBM Plex Mono", weight: [400, 600] }],
  48. logo: "public/assets/logo-dark.svg",
  49. palette: {
  50. accent: "#b7b1b1",
  51. background: "#131010",
  52. border: "#343030",
  53. foreground: "#f1ecec",
  54. muted: "#b7b1b1",
  55. },
  56. },
  57. },
  58. deployment: {
  59. adapter: "cloudflare",
  60. base: "/v2/",
  61. output: "server",
  62. site: process.env.BLUME_ENV === "dev" ? "https://dev.opencode.ai" : "https://opencode.ai",
  63. },
  64. })