Elffuss BraidHub

kikocis/continue public

d1910f72e429 · 19.5 KiBRawPermalink
1// @ts-check
2// Note: type annotations allow type checking and IDEs autocompletion
3
4const { themes } = require("prism-react-renderer");
5const lightCodeTheme = themes.github;
6const darkCodeTheme = themes.dracula;
7
8/** @type {import("@docusaurus/types").Config} */
9const 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 // Custom plugin for better structured llms.txt
207 require.resolve("./plugins/custom-llms-txt.js"),
208 // Keeping the original plugin commented out for now
209 // [
210 // "docusaurus-plugin-llms-txt",
211 // {
212 // title: "Continue Documentation",
213 // description: "Documentation for Continue - the open-source AI code assistant for developers",
214 // // Optional configuration
215 // outputPath: "static/llms.txt",
216 // includePatterns: ["docs/**"],
217 // excludePatterns: ["**/node_modules/**"],
218 // },
219 // ],
220 [
221 "@docusaurus/plugin-client-redirects",
222 {
223 redirects: [
224 {
225 to: "/hub/introduction",
226 from: ["/hub"],
227 },
228 {
229 to: "/hub/governance/org-permissions",
230 from: "/hub/governance",
231 },
232 {
233 to: "/hub/secrets/secret-types",
234 from: "/hub/secrets",
235 },
236 {
237 to: "/hub/assistants/intro",
238 from: "/hub/assistants",
239 },
240 {
241 to: "/hub/blocks/intro",
242 from: "/hub/blocks",
243 },
244 {
245 to: "/customization/overview",
246 from: ["/customize", "/customization"],
247 },
248 {
249 to: "/customization/mcp-tools",
250 from: "/customize/tools",
251 },
252 {
253 to: "/getting-started/install",
254 from: ["/install/vscode", "/install/jetbrains"],
255 },
256 {
257 to: "/customize/settings",
258 from: [
259 "/advanced/deep-dives/settings",
260 "/customize/deep-dives/settings",
261 ],
262 },
263 {
264 to: "/customize/model-roles/intro",
265 from: [
266 "/customize/model-types",
267 "/setup/overview",
268 "/advanced/model-roles/intro",
269 ],
270 },
271 {
272 to: "/customize/model-roles/embeddings",
273 from: [
274 "/customize/model-types/embeddings",
275 "/advanced/model-roles/embeddings",
276 ],
277 },
278 {
279 to: "/customize/model-roles/autocomplete",
280 from: [
281 "/customize/model-types/autocomplete",
282 "/advanced/model-roles/autocomplete",
283 ],
284 },
285 {
286 to: "/customize/model-roles/chat",
287 from: ["/customize/model-types/chat", "/advanced/model-roles/chat"],
288 },
289 {
290 to: "/customize/model-roles/reranking",
291 from: [
292 "/customize/model-types/reranking",
293 "/advanced/model-roles/reranking",
294 ],
295 },
296 {
297 to: "/getting-started/overview",
298 from: [
299 "/model-setup/overview",
300 "/model-setup/select-model",
301 "/model-setup/configuration",
302 "/quickstart",
303 "/how-to-use-continue",
304 ],
305 },
306 {
307 to: "/customize/model-providers/anthropic",
308 from: [
309 "/setup/select-provider",
310 "/setup/model-providers",
311 "/advanced/model-providers/anthropic",
312 ],
313 },
314 {
315 to: "/customize/context/codebase",
316 from: [
317 "/walkthroughs/codebase-embeddings",
318 "/features/codebase-embeddings",
319 "/advanced/deep-dives/codebase",
320 "/advanced/context/codebase",
321 ],
322 },
323 {
324 to: "/customize/deep-dives/autocomplete",
325 from: [
326 "/walkthroughs/tab-autocomplete",
327 "/features/tab-autocomplete",
328 "/advanced/deep-dives/autocomplete",
329 ],
330 },
331 {
332 to: "/customize/deep-dives/prompts",
333 from: [
334 "/walkthroughs/prompt-files",
335 "/features/prompt-files",
336 "/advanced/deep-dives/prompts",
337 ],
338 },
339 // TODO - actions redirects
340 {
341 to: "/customize/deep-dives/slash-commands",
342 from: [
343 "/actions/how-to-use-it",
344 "/actions/how-to-customize",
345 "/actions",
346 "/actions/model-setup",
347 "/actions/context-selection",
348 "/actions/how-it-works",
349 "/customize/slash-commands",
350 "/customization/slash-commands",
351 "/advanced/deep-dives/slash-commands",
352 ],
353 },
354
355 {
356 to: "/customize/deep-dives/vscode-actions",
357 from: [
358 "/walkthroughs/quick-actions",
359 "/advanced/deep-dives/vscode-actions",
360 ],
361 },
362 {
363 to: "/reference",
364 from: "/changelog",
365 },
366 {
367 to: "/reference",
368 from: [
369 "/customization/code-config",
370 "/reference/config",
371 "/yaml-reference",
372 ],
373 },
374 {
375 to: "/customize/custom-providers",
376 from: [
377 "/customization/context-providers",
378 "/advanced/context-integration/custom-providers",
379 "/advanced/context/custom-providers",
380 "/advanced/custom-providers",
381 ],
382 },
383 {
384 to: "/customize/deep-dives/development-data",
385 from: [
386 "/development-data",
387 "/customize/development-data",
388 "/advanced/deep-dives/development-data",
389 ],
390 },
391 {
392 to: "/customize/context/documentation",
393 from: [
394 "/features/talk-to-your-docs",
395 "/advanced/context-integration/documentation",
396 "/advanced/deep-dives/docs",
397 "/advanced/context/documentation",
398 ],
399 },
400 {
401 to: "/customize/model-providers/anthropic",
402 from: ["/reference/Model Providers/anthropicllm"],
403 },
404 {
405 to: "/customize/model-providers/azure",
406 from: [
407 "/reference/Model Providers/azure",
408 "/advanced/model-providers/azure",
409 ],
410 },
411 {
412 to: "/customize/model-providers/bedrock",
413 from: [
414 "/reference/Model Providers/bedrock",
415 "/advanced/model-providers/bedrock",
416 ],
417 },
418 {
419 to: "/customize/model-providers/deepseek",
420 from: [
421 "/reference/Model Providers/deepseek",
422 "/advanced/model-providers/deepseek",
423 ],
424 },
425 {
426 to: "/customize/model-providers/anthropic",
427 from: "/reference/Model Providers/freetrial",
428 },
429 {
430 to: "/customize/model-providers/gemini",
431 from: [
432 "/reference/Model Providers/geminiapi",
433 "/advanced/model-providers/gemini",
434 ],
435 },
436 {
437 to: "/customize/model-providers/mistral",
438 from: [
439 "/reference/Model Providers/mistral",
440 "/advanced/model-providers/mistral",
441 ],
442 },
443 {
444 to: "/customize/model-providers/ollama",
445 from: [
446 "/reference/Model Providers/ollama",
447 "/advanced/model-providers/ollama",
448 ],
449 },
450 {
451 to: "/customize/model-providers/openai",
452 from: [
453 "/reference/Model Providers/openai",
454 "/advanced/model-providers/openai",
455 ],
456 },
457 {
458 to: "/",
459 from: "/intro",
460 },
461 {
462 to: "/customize/model-providers/more/cloudflare",
463 from: [
464 "/reference/Model Providers/cloudflare",
465 "/advanced/model-providers/more/cloudflare",
466 ],
467 },
468 {
469 to: "/customize/model-providers/more/cohere",
470 from: [
471 "/reference/Model Providers/cohere",
472 "/advanced/model-providers/more/cohere",
473 ],
474 },
475 {
476 to: "/customize/model-providers/more/deepinfra",
477 from: [
478 "/reference/Model Providers/deepinfra",
479 "/advanced/model-providers/more/deepinfra",
480 ],
481 },
482 {
483 to: "/customize/model-providers/more/flowise",
484 from: [
485 "/reference/Model Providers/flowise",
486 "/advanced/model-providers/more/flowise",
487 ],
488 },
489 {
490 to: "/customize/model-providers/llamastack",
491 from: "/advanced/model-providers/more/llamastack",
492 },
493 {
494 to: "/customize/model-providers/more/huggingfaceinferenceapi",
495 from: [
496 "/reference/Model Providers/huggingfaceinferenceapi",
497 "/advanced/model-providers/more/huggingfaceinferenceapi",
498 ],
499 },
500 {
501 to: "/customize/model-providers/more/ipex_llm",
502 from: [
503 "/reference/Model Providers/ipex_llm",
504 "/advanced/model-providers/more/ipex_llm",
505 ],
506 },
507 {
508 to: "/customize/model-providers/more/kindo",
509 from: [
510 "/reference/Model Providers/kindo",
511 "/advanced/model-providers/more/kindo",
512 ],
513 },
514 {
515 to: "/customize/model-providers/more/llamacpp",
516 from: [
517 "/reference/Model Providers/llamacpp",
518 "/advanced/model-providers/more/llamacpp",
519 ],
520 },
521 {
522 to: "/customize/model-providers/more/llamafile",
523 from: [
524 "/reference/Model Providers/llamafile",
525 "/advanced/model-providers/more/llamafile",
526 ],
527 },
528 {
529 to: "/customize/model-providers/more/lmstudio",
530 from: [
531 "/reference/Model Providers/lmstudio",
532 "/advanced/model-providers/more/lmstudio",
533 ],
534 },
535 {
536 to: "/customize/model-providers/more/msty",
537 from: [
538 "/reference/Model Providers/msty",
539 "/advanced/model-providers/more/msty",
540 ],
541 },
542 {
543 to: "/customize/model-providers/more/openrouter",
544 from: [
545 "/reference/Model Providers/openrouter",
546 "/advanced/model-providers/more/openrouter",
547 ],
548 },
549 {
550 to: "/customize/model-providers/more/replicatellm",
551 from: [
552 "/reference/Model Providers/replicatellm",
553 "/advanced/model-providers/more/replicatellm",
554 ],
555 },
556 {
557 to: "/customize/model-providers/more/sagemaker",
558 from: [
559 "/reference/Model Providers/sagemaker",
560 "/advanced/model-providers/more/sagemaker",
561 ],
562 },
563 {
564 to: "/customize/model-providers/more/textgenwebui",
565 from: [
566 "/reference/Model Providers/textgenwebui",
567 "/advanced/model-providers/more/textgenwebui",
568 ],
569 },
570 {
571 to: "/customize/model-providers/more/together",
572 from: [
573 "/reference/Model Providers/together",
574 "/advanced/model-providers/more/together",
575 ],
576 },
577 {
578 to: "/customize/model-providers/more/novita",
579 from: [
580 "/reference/Model Providers/novita",
581 "/advanced/model-providers/more/novita",
582 ],
583 },
584 {
585 to: "/customize/model-providers/more/vllm",
586 from: [
587 "/reference/Model Providers/vllm",
588 "/advanced/model-providers/more/vllm",
589 ],
590 },
591 {
592 to: "/customize/model-providers/more/watsonx",
593 from: [
594 "/reference/Model Providers/watsonx",
595 "/advanced/model-providers/more/watsonx",
596 ],
597 },
598 {
599 to: "/customize/model-providers/more/nebius",
600 from: [
601 "/reference/Model Providers/nebius",
602 "/advanced/model-providers/more/nebius",
603 ],
604 },
605 // Sidebar items that should route directly to a subpage
606 {
607 to: "/features/chat/quick-start",
608 from: ["/chat", "/chat/how-to-use-it"],
609 },
610 {
611 to: "/features/agent/quick-start",
612 from: ["/agent", "/agent/how-to-use-it"],
613 },
614 {
615 to: "/features/edit/quick-start",
616 from: ["/edit", "/edit/how-to-use-it"],
617 },
618 {
619 to: "/features/autocomplete/quick-start",
620 from: ["/autocomplete", "/autocomplete/how-to-use-it"],
621 },
622 {
623 to: "/getting-started/install",
624 from: "/getting-started",
625 },
626 {
627 to: "/customize/deep-dives/prompts",
628 from: "/customize/deep-dives/prompt-files",
629 },
630 // Migrated from netlify.toml
631 {
632 to: "/features/chat/how-it-works",
633 from: "/chat/how-it-works",
634 },
635 {
636 to: "/features/autocomplete/how-it-works",
637 from: "/autocomplete/how-it-works",
638 },
639 {
640 to: "/features/edit/how-it-works",
641 from: "/edit/how-it-works",
642 },
643 {
644 to: "/features/agent/how-it-works",
645 from: "/agent/how-it-works",
646 },
647 {
648 to: "/customize/telemetry",
649 from: ["/telemetry", "/advanced/telemetry"],
650 },
651 {
652 to: "/customize/yaml-migration",
653 from: ["/yaml-migration", "/advanced/yaml-migration"],
654 },
655 {
656 to: "/customize/json-reference",
657 from: ["/json-reference", "/advanced/json-reference"],
658 },
659 ],
660 },
661 ],
662 ],
663};
664
665module.exports = config;