| 1 | // @ts-check |
| 2 | // Note: type annotations allow type checking and IDEs autocompletion |
| 3 | |
| 4 | const { themes } = require("prism-react-renderer"); |
| 5 | const lightCodeTheme = themes.github; |
| 6 | const darkCodeTheme = themes.dracula; |
| 7 | |
| 8 | /** @type {import("@docusaurus/types").Config} */ |
| 9 | const config = { |
| 10 | // Docusaurus V3.6 experimental faster compile features |
| 11 | // https://docusaurus.io/blog/releases/3.6#adoption-strategy |
| 12 | future: { |
| 13 | experimental_faster: true, |
| 14 | }, |
| 15 | |
| 16 | title: "Continue", |
| 17 | tagline: |
| 18 | "the open-source library for accelerating software development with language models", |
| 19 | favicon: "img/favicon.ico", |
| 20 | |
| 21 | // Set the production url of your site here |
| 22 | url: "https://docs.continue.dev", |
| 23 | // Set the /<baseUrl>/ pathname under which your site is served |
| 24 | // For GitHub pages deployment, it is often '/<projectName>/' |
| 25 | baseUrl: "/", |
| 26 | |
| 27 | // GitHub pages deployment config. |
| 28 | // If you aren't using GitHub pages, you don't need these. |
| 29 | organizationName: "continuedev", // Usually your GitHub org/user name. |
| 30 | projectName: "continue", // Usually your repo name. |
| 31 | |
| 32 | onBrokenLinks: "throw", |
| 33 | onBrokenMarkdownLinks: "warn", |
| 34 | |
| 35 | // Even if you don't use internalization, you can use this field to set useful |
| 36 | // metadata like html lang. For example, if your site is Chinese, you may want |
| 37 | // to replace "en" with "zh-Hans". |
| 38 | i18n: { |
| 39 | defaultLocale: "en", |
| 40 | locales: [ |
| 41 | "en", |
| 42 | // "zh-CN" |
| 43 | ], |
| 44 | }, |
| 45 | |
| 46 | themes: [], |
| 47 | |
| 48 | presets: [ |
| 49 | [ |
| 50 | "classic", |
| 51 | /** @type {import("@docusaurus/preset-classic").Options} */ |
| 52 | ({ |
| 53 | docs: { |
| 54 | routeBasePath: "/", |
| 55 | sidebarPath: require.resolve("./sidebars.js"), |
| 56 | editUrl: "https://github.com/continuedev/continue/tree/main/docs", |
| 57 | }, |
| 58 | theme: { |
| 59 | customCss: require.resolve("./src/css/custom.css"), |
| 60 | }, |
| 61 | ...(process.env.NODE_ENV === "production" && { |
| 62 | gtag: { |
| 63 | trackingID: "G-M3JWW8N2XQ", |
| 64 | anonymizeIP: true, |
| 65 | }, |
| 66 | }), |
| 67 | }), |
| 68 | ], |
| 69 | ], |
| 70 | |
| 71 | scripts: [ |
| 72 | { |
| 73 | src: "/scripts/custom-reo.js", // it references from static folder |
| 74 | }, |
| 75 | ], |
| 76 | |
| 77 | themeConfig: |
| 78 | /** @type {import("@docusaurus/preset-classic").ThemeConfig} */ |
| 79 | ({ |
| 80 | metadata: [ |
| 81 | { |
| 82 | name: "keywords", |
| 83 | content: |
| 84 | "open source, ai, vscode, intellij, jetbrains, developer tools, chatgpt, copilot, llm", |
| 85 | }, |
| 86 | ], |
| 87 | // Replace with your project's social card |
| 88 | image: "https://docs.continue.dev/img/continue-social-card.png", |
| 89 | navbar: { |
| 90 | title: "Continue", |
| 91 | logo: { |
| 92 | alt: "Continue Logo", |
| 93 | src: "img/logo.png", |
| 94 | href: "https://continue.dev", |
| 95 | target: "_blank", |
| 96 | }, |
| 97 | items: [ |
| 98 | { |
| 99 | type: "docSidebar", |
| 100 | sidebarId: "docsSidebar", |
| 101 | position: "left", |
| 102 | label: "Documentation", |
| 103 | href: "/", |
| 104 | }, |
| 105 | { |
| 106 | to: "/guides/overview", |
| 107 | label: "Guides", |
| 108 | position: "left", |
| 109 | }, |
| 110 | { |
| 111 | to: "https://hub.continue.dev", |
| 112 | label: "Explore", |
| 113 | position: "left", |
| 114 | }, |
| 115 | |
| 116 | { |
| 117 | to: "https://github.com/continuedev/continue", |
| 118 | label: "GitHub", |
| 119 | position: "right", |
| 120 | className: "github-navbar", |
| 121 | }, |
| 122 | { |
| 123 | to: "https://discord.gg/vapESyrFmJ", |
| 124 | label: "Discord", |
| 125 | position: "right", |
| 126 | className: "discord-navbar", |
| 127 | }, |
| 128 | { |
| 129 | type: "localeDropdown", |
| 130 | position: "right", |
| 131 | }, |
| 132 | ], |
| 133 | }, |
| 134 | footer: { |
| 135 | style: "dark", |
| 136 | links: [ |
| 137 | { |
| 138 | title: "Extensions", |
| 139 | items: [ |
| 140 | { |
| 141 | label: "VS Code", |
| 142 | to: "https://marketplace.visualstudio.com/items?itemName=Continue.continue", |
| 143 | }, |
| 144 | { |
| 145 | label: "JetBrains", |
| 146 | to: "https://plugins.jetbrains.com/plugin/22707-continue-extension", |
| 147 | }, |
| 148 | ], |
| 149 | }, |
| 150 | { |
| 151 | title: "Community", |
| 152 | items: [ |
| 153 | { |
| 154 | label: "Discord", |
| 155 | to: "https://discord.gg/vapESyrFmJ", |
| 156 | }, |
| 157 | { |
| 158 | label: "GitHub", |
| 159 | to: "https://github.com/continuedev/continue", |
| 160 | }, |
| 161 | ], |
| 162 | }, |
| 163 | { |
| 164 | title: "Follow Us", |
| 165 | items: [ |
| 166 | { |
| 167 | label: "Twitter", |
| 168 | to: "https://twitter.com/continuedev", |
| 169 | }, |
| 170 | { |
| 171 | label: "LinkedIn", |
| 172 | to: "https://linkedin.com/company/continuedev", |
| 173 | }, |
| 174 | ], |
| 175 | }, |
| 176 | ], |
| 177 | copyright: `Copyright © ${new Date().getFullYear()} Continue Dev, Inc.`, |
| 178 | }, |
| 179 | prism: { |
| 180 | theme: lightCodeTheme, |
| 181 | darkTheme: darkCodeTheme, |
| 182 | additionalLanguages: ["json"], |
| 183 | }, |
| 184 | algolia: { |
| 185 | // The application ID provided by Algolia |
| 186 | appId: "0OMUMCQZVV", |
| 187 | |
| 188 | // Public API key: it is safe to commit it |
| 189 | apiKey: "6795de0f612eebe17018f8061a9ef18e", |
| 190 | |
| 191 | indexName: "continue", |
| 192 | |
| 193 | // Optional: see doc section below |
| 194 | contextualSearch: true, |
| 195 | }, |
| 196 | }), |
| 197 | plugins: [ |
| 198 | [ |
| 199 | "posthog-docusaurus", |
| 200 | { |
| 201 | apiKey: process.env.POSTHOG_API_KEY || "DEV", |
| 202 | appUrl: "https://us.i.posthog.com", |
| 203 | enableInDevelopment: false, |
| 204 | }, |
| 205 | ], |
| 206 | [ |
| 207 | "docusaurus-plugin-llms-txt", |
| 208 | { |
| 209 | // Optional configuration |
| 210 | outputPath: "static/llms.txt", |
| 211 | includePatterns: ["docs/**"], |
| 212 | excludePatterns: ["**/node_modules/**"], |
| 213 | }, |
| 214 | ], |
| 215 | [ |
| 216 | "@docusaurus/plugin-client-redirects", |
| 217 | { |
| 218 | redirects: [ |
| 219 | { |
| 220 | to: "/hub/introduction", |
| 221 | from: ["/hub"], |
| 222 | }, |
| 223 | { |
| 224 | to: "/hub/governance/org-permissions", |
| 225 | from: "/hub/governance", |
| 226 | }, |
| 227 | { |
| 228 | to: "/hub/secrets/secret-types", |
| 229 | from: "/hub/secrets", |
| 230 | }, |
| 231 | { |
| 232 | to: "/hub/assistants/intro", |
| 233 | from: "/hub/assistants", |
| 234 | }, |
| 235 | { |
| 236 | to: "/hub/blocks/intro", |
| 237 | from: "/hub/blocks", |
| 238 | }, |
| 239 | { |
| 240 | to: "/customization/overview", |
| 241 | from: ["/customize", "/customization"], |
| 242 | }, |
| 243 | { |
| 244 | to: "/customization/mcp-tools", |
| 245 | from: "/customize/tools", |
| 246 | }, |
| 247 | { |
| 248 | to: "/getting-started/install", |
| 249 | from: ["/install/vscode", "/install/jetbrains"], |
| 250 | }, |
| 251 | { |
| 252 | to: "/advanced/deep-dives/settings", |
| 253 | from: "/customize/settings", |
| 254 | }, |
| 255 | { |
| 256 | to: "/advanced/model-roles/intro", |
| 257 | from: ["/customize/model-types", "/setup/overview"], |
| 258 | }, |
| 259 | { |
| 260 | to: "/advanced/model-roles/embeddings", |
| 261 | from: "/customize/model-types/embeddings", |
| 262 | }, |
| 263 | { |
| 264 | to: "/advanced/model-roles/autocomplete", |
| 265 | from: "/customize/model-types/autocomplete", |
| 266 | }, |
| 267 | { |
| 268 | to: "/advanced/model-roles/chat", |
| 269 | from: "/customize/model-types/chat", |
| 270 | }, |
| 271 | { |
| 272 | to: "/advanced/model-roles/reranking", |
| 273 | from: "/customize/model-types/reranking", |
| 274 | }, |
| 275 | { |
| 276 | to: "/getting-started/overview", |
| 277 | from: [ |
| 278 | "/model-setup/overview", |
| 279 | "/model-setup/select-model", |
| 280 | "/model-setup/configuration", |
| 281 | "/quickstart", |
| 282 | "/how-to-use-continue", |
| 283 | ], |
| 284 | }, |
| 285 | { |
| 286 | to: "/advanced/model-providers/anthropic", |
| 287 | from: ["/setup/select-provider", "/setup/model-providers"], |
| 288 | }, |
| 289 | { |
| 290 | to: "/advanced/deep-dives/codebase", |
| 291 | from: [ |
| 292 | "/walkthroughs/codebase-embeddings", |
| 293 | "/features/codebase-embeddings", |
| 294 | ], |
| 295 | }, |
| 296 | { |
| 297 | to: "/advanced/deep-dives/autocomplete", |
| 298 | from: [ |
| 299 | "/walkthroughs/tab-autocomplete", |
| 300 | "/features/tab-autocomplete", |
| 301 | ], |
| 302 | }, |
| 303 | { |
| 304 | to: "/advanced/deep-dives/prompts", |
| 305 | from: ["/walkthroughs/prompt-files", "/features/prompt-files"], |
| 306 | }, |
| 307 | // TODO - actions redirects |
| 308 | { |
| 309 | to: "/advanced/deep-dives/slash-commands", |
| 310 | from: [ |
| 311 | "/actions/how-to-use-it", |
| 312 | "/actions/how-to-customize", |
| 313 | "/actions", |
| 314 | "/actions/model-setup", |
| 315 | "/actions/context-selection", |
| 316 | "/actions/how-it-works", |
| 317 | "/customize/slash-commands", |
| 318 | "/customization/slash-commands", |
| 319 | ], |
| 320 | }, |
| 321 | |
| 322 | { |
| 323 | to: "/advanced/deep-dives/vscode-actions", |
| 324 | from: ["/walkthroughs/quick-actions"], |
| 325 | }, |
| 326 | { |
| 327 | to: "/advanced/reference", |
| 328 | from: "/changelog", |
| 329 | }, |
| 330 | { |
| 331 | to: "/advanced/reference", |
| 332 | from: [ |
| 333 | "/customization/code-config", |
| 334 | "/reference/config", |
| 335 | "/yaml-reference", |
| 336 | ], |
| 337 | }, |
| 338 | { |
| 339 | to: "/advanced/context-integration/custom-providers", |
| 340 | from: ["/customization/context-providers"], |
| 341 | }, |
| 342 | { |
| 343 | to: "/advanced/deep-dives/development-data", |
| 344 | from: ["/development-data", "/customize/development-data"], |
| 345 | }, |
| 346 | { |
| 347 | to: "/advanced/context-integration/documentation", |
| 348 | from: "/features/talk-to-your-docs", |
| 349 | }, |
| 350 | { |
| 351 | to: "/advanced/model-providers/anthropic", |
| 352 | from: "/reference/Model Providers/anthropicllm", |
| 353 | }, |
| 354 | { |
| 355 | to: "/advanced/model-providers/azure", |
| 356 | from: "/reference/Model Providers/azure", |
| 357 | }, |
| 358 | { |
| 359 | to: "/advanced/model-providers/bedrock", |
| 360 | from: "/reference/Model Providers/bedrock", |
| 361 | }, |
| 362 | { |
| 363 | to: "/advanced/model-providers/deepseek", |
| 364 | from: "/reference/Model Providers/deepseek", |
| 365 | }, |
| 366 | { |
| 367 | to: "/advanced/model-providers/anthropic", |
| 368 | from: "/reference/Model Providers/freetrial", |
| 369 | }, |
| 370 | { |
| 371 | to: "/advanced/model-providers/gemini", |
| 372 | from: "/reference/Model Providers/geminiapi", |
| 373 | }, |
| 374 | { |
| 375 | to: "/advanced/model-providers/mistral", |
| 376 | from: "/reference/Model Providers/mistral", |
| 377 | }, |
| 378 | { |
| 379 | to: "/advanced/model-providers/ollama", |
| 380 | from: "/reference/Model Providers/ollama", |
| 381 | }, |
| 382 | { |
| 383 | to: "/advanced/model-providers/openai", |
| 384 | from: "/reference/Model Providers/openai", |
| 385 | }, |
| 386 | { |
| 387 | to: "/", |
| 388 | from: "/intro", |
| 389 | }, |
| 390 | { |
| 391 | to: "/advanced/model-providers/more/cloudflare", |
| 392 | from: "/reference/Model Providers/cloudflare", |
| 393 | }, |
| 394 | { |
| 395 | to: "/advanced/model-providers/more/cohere", |
| 396 | from: "/reference/Model Providers/cohere", |
| 397 | }, |
| 398 | { |
| 399 | to: "/advanced/model-providers/more/deepinfra", |
| 400 | from: "/reference/Model Providers/deepinfra", |
| 401 | }, |
| 402 | { |
| 403 | to: "/advanced/model-providers/more/flowise", |
| 404 | from: "/reference/Model Providers/flowise", |
| 405 | }, |
| 406 | { |
| 407 | to: "/advanced/model-providers/more/huggingfaceinferenceapi", |
| 408 | from: "/reference/Model Providers/huggingfaceinferenceapi", |
| 409 | }, |
| 410 | { |
| 411 | to: "/advanced/model-providers/more/ipex_llm", |
| 412 | from: "/reference/Model Providers/ipex_llm", |
| 413 | }, |
| 414 | { |
| 415 | to: "/advanced/model-providers/more/kindo", |
| 416 | from: "/reference/Model Providers/kindo", |
| 417 | }, |
| 418 | { |
| 419 | to: "/advanced/model-providers/more/llamacpp", |
| 420 | from: "/reference/Model Providers/llamacpp", |
| 421 | }, |
| 422 | { |
| 423 | to: "/advanced/model-providers/more/llamafile", |
| 424 | from: "/reference/Model Providers/llamafile", |
| 425 | }, |
| 426 | { |
| 427 | to: "/advanced/model-providers/more/lmstudio", |
| 428 | from: "/reference/Model Providers/lmstudio", |
| 429 | }, |
| 430 | { |
| 431 | to: "/advanced/model-providers/more/msty", |
| 432 | from: "/reference/Model Providers/msty", |
| 433 | }, |
| 434 | { |
| 435 | to: "/advanced/model-providers/more/openrouter", |
| 436 | from: "/reference/Model Providers/openrouter", |
| 437 | }, |
| 438 | { |
| 439 | to: "/advanced/model-providers/more/replicatellm", |
| 440 | from: "/reference/Model Providers/replicatellm", |
| 441 | }, |
| 442 | { |
| 443 | to: "/advanced/model-providers/more/sagemaker", |
| 444 | from: "/reference/Model Providers/sagemaker", |
| 445 | }, |
| 446 | { |
| 447 | to: "/advanced/model-providers/more/textgenwebui", |
| 448 | from: "/reference/Model Providers/textgenwebui", |
| 449 | }, |
| 450 | { |
| 451 | to: "/advanced/model-providers/more/together", |
| 452 | from: "/reference/Model Providers/together", |
| 453 | }, |
| 454 | { |
| 455 | to: "/advanced/model-providers/more/novita", |
| 456 | from: "/reference/Model Providers/novita", |
| 457 | }, |
| 458 | { |
| 459 | to: "/advanced/model-providers/more/vllm", |
| 460 | from: "/reference/Model Providers/vllm", |
| 461 | }, |
| 462 | { |
| 463 | to: "/advanced/model-providers/more/watsonx", |
| 464 | from: "/reference/Model Providers/watsonx", |
| 465 | }, |
| 466 | { |
| 467 | to: "/advanced/model-providers/more/nebius", |
| 468 | from: "/reference/Model Providers/nebius", |
| 469 | }, |
| 470 | // Sidebar items that should route directly to a subpage |
| 471 | { |
| 472 | to: "/features/chat/quick-start", |
| 473 | from: ["/chat", "/chat/how-to-use-it"], |
| 474 | }, |
| 475 | { |
| 476 | to: "/features/agent/quick-start", |
| 477 | from: ["/agent", "/agent/how-to-use-it"], |
| 478 | }, |
| 479 | { |
| 480 | to: "/features/edit/quick-start", |
| 481 | from: ["/edit", "/edit/how-to-use-it"], |
| 482 | }, |
| 483 | { |
| 484 | to: "/features/autocomplete/quick-start", |
| 485 | from: ["/autocomplete", "/autocomplete/how-to-use-it"], |
| 486 | }, |
| 487 | { |
| 488 | to: "/getting-started/install", |
| 489 | from: "/getting-started", |
| 490 | }, |
| 491 | { |
| 492 | to: "/advanced/deep-dives/prompts", |
| 493 | from: "/customize/deep-dives/prompt-files", |
| 494 | }, |
| 495 | // Migrated from netlify.toml |
| 496 | { |
| 497 | to: "/features/chat/quick-start", |
| 498 | from: "/chat/how-to-use-it", |
| 499 | }, |
| 500 | { |
| 501 | to: "/features/autocomplete/quick-start", |
| 502 | from: "/autocomplete/how-to-use-it", |
| 503 | }, |
| 504 | { |
| 505 | to: "/features/edit/quick-start", |
| 506 | from: "/edit/how-to-use-it", |
| 507 | }, |
| 508 | { |
| 509 | to: "/features/agent/quick-start", |
| 510 | from: "/agent/how-to-use-it", |
| 511 | }, |
| 512 | { |
| 513 | to: "/features/chat/how-it-works", |
| 514 | from: "/chat/how-it-works", |
| 515 | }, |
| 516 | { |
| 517 | to: "/features/autocomplete/how-it-works", |
| 518 | from: "/autocomplete/how-it-works", |
| 519 | }, |
| 520 | { |
| 521 | to: "/features/edit/how-it-works", |
| 522 | from: "/edit/how-it-works", |
| 523 | }, |
| 524 | { |
| 525 | to: "/features/agent/how-it-works", |
| 526 | from: "/agent/how-it-works", |
| 527 | }, |
| 528 | { |
| 529 | to: "/advanced/reference", |
| 530 | from: "/reference", |
| 531 | }, |
| 532 | { |
| 533 | to: "/advanced/troubleshooting", |
| 534 | from: "/troubleshooting", |
| 535 | }, |
| 536 | { |
| 537 | to: "/advanced/telemetry", |
| 538 | from: "/telemetry", |
| 539 | }, |
| 540 | { |
| 541 | to: "/advanced/reference", |
| 542 | from: "/json-reference", |
| 543 | }, |
| 544 | { |
| 545 | to: "/advanced/yaml-migration", |
| 546 | from: "/yaml-migration", |
| 547 | }, |
| 548 | ], |
| 549 | }, |
| 550 | ], |
| 551 | ], |
| 552 | }; |
| 553 | |
| 554 | module.exports = config; |