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