blume.config.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: "#000000" },
  26. fonts: {
  27. body: { name: "Monaspace Neon", provider: "fontsource", weights: [400, 500, 600, 700], fallback: "mono" },
  28. display: { name: "Monaspace Neon", provider: "fontsource", weights: [400, 500, 600, 700], fallback: "mono" },
  29. mono: { name: "Monaspace Neon", provider: "fontsource", weights: [400, 500, 600, 700], fallback: "mono" },
  30. },
  31. mode: "dark",
  32. },
  33. navigation: {
  34. tabs: [
  35. { label: "Docs", path: "/" },
  36. { label: "CLI", path: "/cli" },
  37. { label: "Build", path: "/build" },
  38. { label: "API", path: "/api" },
  39. ],
  40. },
  41. markdown: {
  42. code: {
  43. icons: false,
  44. },
  45. },
  46. openapi: {
  47. enabled: true,
  48. route: "/api",
  49. spec: "./openapi.json",
  50. },
  51. seo: {
  52. og: {
  53. fonts: [{ name: "IBM Plex Mono", weight: [400, 600] }],
  54. logo: "public/assets/logo-dark.svg",
  55. palette: {
  56. accent: "#b7b1b1",
  57. background: "#131010",
  58. border: "#343030",
  59. foreground: "#f1ecec",
  60. muted: "#b7b1b1",
  61. },
  62. },
  63. },
  64. deployment: {
  65. adapter: "cloudflare",
  66. base: "/v2/",
  67. output: "server",
  68. site: process.env.BLUME_ENV === "dev" ? "https://dev.opencode.ai" : "https://opencode.ai",
  69. },
  70. })