Elffuss BraidHub

kikocis/continue public

b0f6b05692ac · 17.7 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/deep-dives/settings",
258 from: "/advanced/deep-dives/settings",
259 },
260 {
261 to: "/customize/model-roles/intro",
262 from: [
263 "/customize/model-types",
264 "/setup/overview",
265 "/advanced/model-roles/intro",
266 ],
267 },
268 {
269 to: "/customize/model-roles/embeddings",
270 from: [
271 "/customize/model-types/embeddings",
272 "/advanced/model-roles/embeddings",
273 ],
274 },
275 {
276 to: "/customize/model-roles/autocomplete",
277 from: [
278 "/customize/model-types/autocomplete",
279 "/advanced/model-roles/autocomplete",
280 ],
281 },
282 {
283 to: "/customize/model-roles/chat",
284 from: ["/customize/model-types/chat", "/advanced/model-roles/chat"],
285 },
286 {
287 to: "/customize/model-roles/reranking",
288 from: [
289 "/customize/model-types/reranking",
290 "/advanced/model-roles/reranking",
291 ],
292 },
293 {
294 to: "/getting-started/overview",
295 from: [
296 "/model-setup/overview",
297 "/model-setup/select-model",
298 "/model-setup/configuration",
299 "/quickstart",
300 "/how-to-use-continue",
301 ],
302 },
303 {
304 to: "/customize/model-providers/anthropic",
305 from: [
306 "/setup/select-provider",
307 "/setup/model-providers",
308 "/advanced/model-providers/anthropic",
309 ],
310 },
311 {
312 to: "/customize/context/codebase",
313 from: [
314 "/walkthroughs/codebase-embeddings",
315 "/features/codebase-embeddings",
316 "/advanced/deep-dives/codebase",
317 "/advanced/context/codebase",
318 ],
319 },
320 {
321 to: "/customize/deep-dives/autocomplete",
322 from: [
323 "/walkthroughs/tab-autocomplete",
324 "/features/tab-autocomplete",
325 "/advanced/deep-dives/autocomplete",
326 ],
327 },
328 {
329 to: "/customize/deep-dives/prompts",
330 from: [
331 "/walkthroughs/prompt-files",
332 "/features/prompt-files",
333 "/advanced/deep-dives/prompts",
334 ],
335 },
336 // TODO - actions redirects
337 {
338 to: "/customize/deep-dives/slash-commands",
339 from: [
340 "/actions/how-to-use-it",
341 "/actions/how-to-customize",
342 "/actions",
343 "/actions/model-setup",
344 "/actions/context-selection",
345 "/actions/how-it-works",
346 "/customize/slash-commands",
347 "/customization/slash-commands",
348 "/advanced/deep-dives/slash-commands",
349 ],
350 },
351
352 {
353 to: "/customize/deep-dives/vscode-actions",
354 from: [
355 "/walkthroughs/quick-actions",
356 "/advanced/deep-dives/vscode-actions",
357 ],
358 },
359 {
360 to: "/reference",
361 from: "/changelog",
362 },
363 {
364 to: "/reference",
365 from: [
366 "/customization/code-config",
367 "/reference/config",
368 "/yaml-reference",
369 ],
370 },
371 {
372 to: "/customize/custom-providers",
373 from: [
374 "/customization/context-providers",
375 "/advanced/context-integration/custom-providers",
376 "/advanced/context/custom-providers",
377 "/advanced/custom-providers",
378 ],
379 },
380 {
381 to: "/customize/deep-dives/development-data",
382 from: [
383 "/development-data",
384 "/customize/development-data",
385 "/advanced/deep-dives/development-data",
386 ],
387 },
388 {
389 to: "/customize/context/documentation",
390 from: [
391 "/features/talk-to-your-docs",
392 "/advanced/context-integration/documentation",
393 "/advanced/deep-dives/docs",
394 "/advanced/context/documentation",
395 ],
396 },
397 {
398 to: "/customize/model-providers/anthropic",
399 from: ["/reference/Model Providers/anthropicllm"],
400 },
401 {
402 to: "/customize/model-providers/azure",
403 from: [
404 "/reference/Model Providers/azure",
405 "/advanced/model-providers/azure",
406 ],
407 },
408 {
409 to: "/customize/model-providers/bedrock",
410 from: [
411 "/reference/Model Providers/bedrock",
412 "/advanced/model-providers/bedrock",
413 ],
414 },
415 {
416 to: "/customize/model-providers/deepseek",
417 from: [
418 "/reference/Model Providers/deepseek",
419 "/advanced/model-providers/deepseek",
420 ],
421 },
422 {
423 to: "/customize/model-providers/anthropic",
424 from: "/reference/Model Providers/freetrial",
425 },
426 {
427 to: "/customize/model-providers/gemini",
428 from: [
429 "/reference/Model Providers/geminiapi",
430 "/advanced/model-providers/gemini",
431 ],
432 },
433 {
434 to: "/customize/model-providers/mistral",
435 from: [
436 "/reference/Model Providers/mistral",
437 "/advanced/model-providers/mistral",
438 ],
439 },
440 {
441 to: "/customize/model-providers/ollama",
442 from: [
443 "/reference/Model Providers/ollama",
444 "/advanced/model-providers/ollama",
445 ],
446 },
447 {
448 to: "/customize/model-providers/openai",
449 from: [
450 "/reference/Model Providers/openai",
451 "/advanced/model-providers/openai",
452 ],
453 },
454 {
455 to: "/",
456 from: "/intro",
457 },
458 {
459 to: "/customize/model-providers/more/cloudflare",
460 from: "/reference/Model Providers/cloudflare",
461 },
462 {
463 to: "/customize/model-providers/more/cohere",
464 from: "/reference/Model Providers/cohere",
465 },
466 {
467 to: "/customize/model-providers/more/deepinfra",
468 from: "/reference/Model Providers/deepinfra",
469 },
470 {
471 to: "/customize/model-providers/more/flowise",
472 from: "/reference/Model Providers/flowise",
473 },
474 {
475 to: "/customize/model-providers/llamastack",
476 from: "/advanced/model-providers/more/llamastack",
477 },
478 {
479 to: "/customize/model-providers/more/huggingfaceinferenceapi",
480 from: "/reference/Model Providers/huggingfaceinferenceapi",
481 },
482 {
483 to: "/customize/model-providers/more/ipex_llm",
484 from: "/reference/Model Providers/ipex_llm",
485 },
486 {
487 to: "/customize/model-providers/more/kindo",
488 from: "/reference/Model Providers/kindo",
489 },
490 {
491 to: "/customize/model-providers/more/llamacpp",
492 from: "/reference/Model Providers/llamacpp",
493 },
494 {
495 to: "/customize/model-providers/more/llamafile",
496 from: "/reference/Model Providers/llamafile",
497 },
498 {
499 to: "/customize/model-providers/more/lmstudio",
500 from: "/reference/Model Providers/lmstudio",
501 },
502 {
503 to: "/customize/model-providers/more/msty",
504 from: "/reference/Model Providers/msty",
505 },
506 {
507 to: "/customize/model-providers/more/openrouter",
508 from: "/reference/Model Providers/openrouter",
509 },
510 {
511 to: "/customize/model-providers/more/replicatellm",
512 from: "/reference/Model Providers/replicatellm",
513 },
514 {
515 to: "/customize/model-providers/more/sagemaker",
516 from: "/reference/Model Providers/sagemaker",
517 },
518 {
519 to: "/customize/model-providers/more/textgenwebui",
520 from: "/reference/Model Providers/textgenwebui",
521 },
522 {
523 to: "/customize/model-providers/more/together",
524 from: "/reference/Model Providers/together",
525 },
526 {
527 to: "/customize/model-providers/more/novita",
528 from: "/reference/Model Providers/novita",
529 },
530 {
531 to: "/customize/model-providers/more/vllm",
532 from: "/reference/Model Providers/vllm",
533 },
534 {
535 to: "/customize/model-providers/more/watsonx",
536 from: "/reference/Model Providers/watsonx",
537 },
538 {
539 to: "/customize/model-providers/more/nebius",
540 from: "/reference/Model Providers/nebius",
541 },
542 // Sidebar items that should route directly to a subpage
543 {
544 to: "/features/chat/quick-start",
545 from: ["/chat", "/chat/how-to-use-it"],
546 },
547 {
548 to: "/features/agent/quick-start",
549 from: ["/agent", "/agent/how-to-use-it"],
550 },
551 {
552 to: "/features/edit/quick-start",
553 from: ["/edit", "/edit/how-to-use-it"],
554 },
555 {
556 to: "/features/autocomplete/quick-start",
557 from: ["/autocomplete", "/autocomplete/how-to-use-it"],
558 },
559 {
560 to: "/getting-started/install",
561 from: "/getting-started",
562 },
563 {
564 to: "/customize/deep-dives/prompts",
565 from: "/customize/deep-dives/prompt-files",
566 },
567 // Migrated from netlify.toml
568 {
569 to: "/features/chat/how-it-works",
570 from: "/chat/how-it-works",
571 },
572 {
573 to: "/features/autocomplete/how-it-works",
574 from: "/autocomplete/how-it-works",
575 },
576 {
577 to: "/features/edit/how-it-works",
578 from: "/edit/how-it-works",
579 },
580 {
581 to: "/features/agent/how-it-works",
582 from: "/agent/how-it-works",
583 },
584 {
585 to: "/customize/telemetry",
586 from: ["/telemetry", "/advanced/telemetry"],
587 },
588 {
589 to: "/customize/yaml-migration",
590 from: ["/yaml-migration", "/advanced/yaml-migration"],
591 },
592 {
593 to: "/customize/json-reference",
594 from: ["/json-reference", "/advanced/json-reference"],
595 },
596 ],
597 },
598 ],
599 ],
600};
601
602module.exports = config;