|
| 1 | +import { transformerTwoslash } from "@shikijs/vitepress-twoslash"; |
| 2 | +import footnotePlugin from "markdown-it-footnote"; |
| 3 | +import { defineConfig } from "vitepress"; |
| 4 | + |
| 5 | +// https://vitepress.dev/reference/site-config |
| 6 | +export default defineConfig({ |
| 7 | + title: "Alchemy", |
| 8 | + description: "Alchemy Docs", |
| 9 | + markdown: { |
| 10 | + // @ts-ignore |
| 11 | + codeTransformers: [transformerTwoslash()], |
| 12 | + theme: { light: "light-plus", dark: "dark-plus" }, |
| 13 | + config: (md) => md.use(footnotePlugin), |
| 14 | + }, |
| 15 | + // https://vitepress.dev/reference/default-theme-config |
| 16 | + themeConfig: { |
| 17 | + nav: [ |
| 18 | + { text: "Home", link: "/" }, |
| 19 | + { text: "Docs", link: "/docs/getting-started" }, |
| 20 | + ], |
| 21 | + sidebar: [ |
| 22 | + { text: "Getting Started", link: "/docs/getting-started" }, |
| 23 | + { |
| 24 | + text: "Tutorials", |
| 25 | + link: "/docs/tutorials/deploy-cloudflare-worker-and-static-site", |
| 26 | + collapsed: false, |
| 27 | + items: [ |
| 28 | + { |
| 29 | + text: "Deploying a Cloudflare Worker and Static Site", |
| 30 | + link: "/docs/tutorials/deploy-cloudflare-worker-and-static-site", |
| 31 | + }, |
| 32 | + { |
| 33 | + text: "Bundling and Deploying an AWS Lambda Function", |
| 34 | + link: "/docs/tutorials/deploy-aws-lambda-function", |
| 35 | + }, |
| 36 | + ], |
| 37 | + }, |
| 38 | + { |
| 39 | + text: "Providers", |
| 40 | + link: "/docs/providers", |
| 41 | + collapsed: false, |
| 42 | + items: [ |
| 43 | + { |
| 44 | + text: "ai", |
| 45 | + collapsed: true, |
| 46 | + items: [ |
| 47 | + { text: "Approve", link: "/docs/providers/ai/approve.md" }, |
| 48 | + { text: "Astro File", link: "/docs/providers/ai/astro-file.md" }, |
| 49 | + { text: "CSS File", link: "/docs/providers/ai/css-file.md" }, |
| 50 | + { text: "Data", link: "/docs/providers/ai/data.md" }, |
| 51 | + { text: "Document", link: "/docs/providers/ai/document.md" }, |
| 52 | + { text: "HTML File", link: "/docs/providers/ai/html-file.md" }, |
| 53 | + { text: "JSON File", link: "/docs/providers/ai/json-file.md" }, |
| 54 | + { text: "Review", link: "/docs/providers/ai/review.md" }, |
| 55 | + { |
| 56 | + text: "TypeScript File", |
| 57 | + link: "/docs/providers/ai/typescript-file.md", |
| 58 | + }, |
| 59 | + { text: "Vue File", link: "/docs/providers/ai/vue-file.md" }, |
| 60 | + { text: "YAML File", link: "/docs/providers/ai/yaml-file.md" }, |
| 61 | + ], |
| 62 | + }, |
| 63 | + { |
| 64 | + text: "aws", |
| 65 | + collapsed: true, |
| 66 | + items: [ |
| 67 | + { text: "Bucket", link: "/docs/providers/aws/bucket.md" }, |
| 68 | + { text: "Function", link: "/docs/providers/aws/function.md" }, |
| 69 | + { text: "Policy", link: "/docs/providers/aws/policy.md" }, |
| 70 | + { |
| 71 | + text: "Policy Attachment", |
| 72 | + link: "/docs/providers/aws/policy-attachment.md", |
| 73 | + }, |
| 74 | + { text: "Queue", link: "/docs/providers/aws/queue.md" }, |
| 75 | + { text: "Role", link: "/docs/providers/aws/role.md" }, |
| 76 | + { text: "SES", link: "/docs/providers/aws/ses.md" }, |
| 77 | + { text: "Table", link: "/docs/providers/aws/table.md" }, |
| 78 | + ], |
| 79 | + }, |
| 80 | + { |
| 81 | + text: "cloudflare", |
| 82 | + collapsed: true, |
| 83 | + items: [ |
| 84 | + { |
| 85 | + text: "DNS Records", |
| 86 | + link: "/docs/providers/cloudflare/dns.md", |
| 87 | + }, |
| 88 | + { |
| 89 | + text: "KV Namespace", |
| 90 | + link: "/docs/providers/cloudflare/kv-namespace.md", |
| 91 | + }, |
| 92 | + { |
| 93 | + text: "R2 Bucket", |
| 94 | + link: "/docs/providers/cloudflare/bucket.md", |
| 95 | + }, |
| 96 | + { |
| 97 | + text: "Static Site", |
| 98 | + link: "/docs/providers/cloudflare/static-site.md", |
| 99 | + }, |
| 100 | + { text: "Worker", link: "/docs/providers/cloudflare/worker.md" }, |
| 101 | + { |
| 102 | + text: "Wrangler Json", |
| 103 | + link: "/docs/providers/cloudflare/wrangler.json.md", |
| 104 | + }, |
| 105 | + { text: "Zone", link: "/docs/providers/cloudflare/zone.md" }, |
| 106 | + ], |
| 107 | + }, |
| 108 | + { |
| 109 | + text: "dns", |
| 110 | + collapsed: true, |
| 111 | + items: [ |
| 112 | + { |
| 113 | + text: "Import Dns Records", |
| 114 | + link: "/docs/providers/dns/import-dns.md", |
| 115 | + }, |
| 116 | + ], |
| 117 | + }, |
| 118 | + { |
| 119 | + text: "esbuild", |
| 120 | + collapsed: true, |
| 121 | + items: [ |
| 122 | + { text: "Bundle", link: "/docs/providers/esbuild/bundle.md" }, |
| 123 | + ], |
| 124 | + }, |
| 125 | + { |
| 126 | + text: "fs", |
| 127 | + collapsed: true, |
| 128 | + items: [ |
| 129 | + { text: "Copy File", link: "/docs/providers/fs/copy-file.md" }, |
| 130 | + { text: "File", link: "/docs/providers/fs/file.md" }, |
| 131 | + { text: "Folder", link: "/docs/providers/fs/folder.md" }, |
| 132 | + { |
| 133 | + text: "Static Astro File", |
| 134 | + link: "/docs/providers/fs/static-astro-file.md", |
| 135 | + }, |
| 136 | + { |
| 137 | + text: "Static CSS File", |
| 138 | + link: "/docs/providers/fs/static-css-file.md", |
| 139 | + }, |
| 140 | + { |
| 141 | + text: "Static HTML File", |
| 142 | + link: "/docs/providers/fs/static-html-file.md", |
| 143 | + }, |
| 144 | + { |
| 145 | + text: "Static JSON File", |
| 146 | + link: "/docs/providers/fs/static-json-file.md", |
| 147 | + }, |
| 148 | + { |
| 149 | + text: "Static Text File", |
| 150 | + link: "/docs/providers/fs/static-text-file.md", |
| 151 | + }, |
| 152 | + { |
| 153 | + text: "Static TypeScript File", |
| 154 | + link: "/docs/providers/fs/static-typescript-file.md", |
| 155 | + }, |
| 156 | + { |
| 157 | + text: "Static Vue File", |
| 158 | + link: "/docs/providers/fs/static-vue-file.md", |
| 159 | + }, |
| 160 | + { |
| 161 | + text: "Static YAML File", |
| 162 | + link: "/docs/providers/fs/static-yaml-file.md", |
| 163 | + }, |
| 164 | + ], |
| 165 | + }, |
| 166 | + { |
| 167 | + text: "github", |
| 168 | + collapsed: true, |
| 169 | + items: [ |
| 170 | + { |
| 171 | + text: "GitHub Secret", |
| 172 | + link: "/docs/providers/github/secret.md", |
| 173 | + }, |
| 174 | + ], |
| 175 | + }, |
| 176 | + { |
| 177 | + text: "stripe", |
| 178 | + collapsed: true, |
| 179 | + items: [ |
| 180 | + { text: "Price", link: "/docs/providers/stripe/price.md" }, |
| 181 | + { text: "Product", link: "/docs/providers/stripe/product.md" }, |
| 182 | + { |
| 183 | + text: "Webhook Endpoint", |
| 184 | + link: "/docs/providers/stripe/webhook.md", |
| 185 | + }, |
| 186 | + ], |
| 187 | + }, |
| 188 | + ], |
| 189 | + }, |
| 190 | + ], |
| 191 | + search: { provider: "local" }, |
| 192 | + socialLinks: [], |
| 193 | + }, |
| 194 | +}); |
0 commit comments