Elffuss BraidHub

kikocis/continue public

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