Elffuss BraidHub

kikocis/continue public

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