Elffuss BraidHub

kikocis/continue public

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