Elffuss BraidHub

kikocis/continue public

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