Elffuss BraidHub

kikocis/continue public

158decf78aee · 14.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 gtag: {
62 trackingID: "G-M3JWW8N2XQ",
63 },
64 }),
65 ],
66 ],
67
68 scripts: [
69 {
70 src: "/scripts/custom-reo.js", // it references from static folder
71 },
72 ],
73
74 themeConfig:
75 /** @type {import("@docusaurus/preset-classic").ThemeConfig} */
76 ({
77 metadata: [
78 {
79 name: "keywords",
80 content:
81 "open source, ai, vscode, intellij, jetbrains, developer tools, chatgpt, copilot, llm",
82 },
83 ],
84 // Replace with your project's social card
85 image: "https://docs.continue.dev/img/continue-social-card.png",
86 navbar: {
87 title: "Continue",
88 logo: {
89 alt: "Continue Logo",
90 src: "img/logo.png",
91 href: "https://continue.dev",
92 target: "_blank",
93 },
94 items: [
95 {
96 type: "docSidebar",
97 sidebarId: "docsSidebar",
98 position: "left",
99 label: "User Guide",
100 href: "/",
101 },
102 {
103 type: "docSidebar",
104 sidebarId: "hubSidebar",
105 position: "left",
106 label: "Hub",
107 href: "/hub/introduction",
108 },
109 {
110 type: "docSidebar",
111 sidebarId: "customizingSidebar",
112 position: "left",
113 label: "Customize",
114 href: "/customize/overview",
115 },
116 {
117 type: "docSidebar",
118 sidebarId: "customizingSidebar",
119 position: "left",
120 label: "Reference",
121 href: "/reference",
122 },
123
124 {
125 to: "https://github.com/continuedev/continue",
126 label: "GitHub",
127 position: "right",
128 className: "github-navbar",
129 },
130 {
131 to: "https://discord.gg/vapESyrFmJ",
132 label: "Discord",
133 position: "right",
134 className: "discord-navbar",
135 },
136 {
137 type: "localeDropdown",
138 position: "right",
139 },
140 ],
141 },
142 footer: {
143 style: "dark",
144 links: [
145 {
146 title: "Extensions",
147 items: [
148 {
149 label: "VS Code",
150 to: "https://marketplace.visualstudio.com/items?itemName=Continue.continue",
151 },
152 {
153 label: "JetBrains",
154 to: "https://plugins.jetbrains.com/plugin/22707-continue-extension",
155 },
156 ],
157 },
158 {
159 title: "Community",
160 items: [
161 {
162 label: "Discord",
163 to: "https://discord.gg/vapESyrFmJ",
164 },
165 {
166 label: "GitHub",
167 to: "https://github.com/continuedev/continue",
168 },
169 ],
170 },
171 {
172 title: "Follow Us",
173 items: [
174 {
175 label: "Twitter",
176 to: "https://twitter.com/continuedev",
177 },
178 {
179 label: "LinkedIn",
180 to: "https://linkedin.com/company/continuedev",
181 },
182 ],
183 },
184 ],
185 copyright: `Copyright © ${new Date().getFullYear()} Continue Dev, Inc.`,
186 },
187 prism: {
188 theme: lightCodeTheme,
189 darkTheme: darkCodeTheme,
190 additionalLanguages: ["json"],
191 },
192 algolia: {
193 // The application ID provided by Algolia
194 appId: "0OMUMCQZVV",
195
196 // Public API key: it is safe to commit it
197 apiKey: "6795de0f612eebe17018f8061a9ef18e",
198
199 indexName: "continue",
200
201 // Optional: see doc section below
202 contextualSearch: true,
203 },
204 }),
205 plugins: [
206 [
207 "@docusaurus/plugin-client-redirects",
208 {
209 redirects: [
210 {
211 to: "/hub/introduction",
212 from: "/hub",
213 },
214 {
215 to: "/hub/governance/org-permissions",
216 from: "/hub/governance",
217 },
218 {
219 to: "/hub/secrets/secret-types",
220 from: "/hub/secrets",
221 },
222 {
223 to: "/hub/assistants/intro",
224 from: "/hub/assistants",
225 },
226 {
227 to: "/hub/blocks/intro",
228 from: "/hub/blocks",
229 },
230 {
231 to: "/customize/overview",
232 from: ["/customize", "/customization"],
233 },
234 {
235 to: "/customize/deep-dives/mcp",
236 from: "/customize/tools",
237 },
238 {
239 to: "/getting-started/install",
240 from: ["/install/vscode", "/install/jetbrains"],
241 },
242 {
243 to: "/customize/deep-dives/settings",
244 from: "/customize/settings",
245 },
246 {
247 to: "/customize/model-roles",
248 from: ["/customize/model-types", "/setup/overview"],
249 },
250 {
251 to: "/customize/model-roles/embeddings",
252 from: "/customize/model-types/embeddings",
253 },
254 {
255 to: "/customize/model-roles/autocomplete",
256 from: "/customize/model-types/autocomplete",
257 },
258 {
259 to: "/customize/model-roles/chat",
260 from: "/customize/model-types/chat",
261 },
262 {
263 to: "/customize/model-roles/reranking",
264 from: "/customize/model-types/reranking",
265 },
266 {
267 to: "/getting-started/overview",
268 from: [
269 "/model-setup/overview",
270 "/model-setup/select-model",
271 "/model-setup/configuration",
272 "/quickstart",
273 "/how-to-use-continue",
274 ],
275 },
276 {
277 to: "/customize/model-providers",
278 from: ["/setup/select-provider", "/setup/model-providers"],
279 },
280 {
281 to: "/customize/deep-dives/codebase",
282 from: [
283 "/walkthroughs/codebase-embeddings",
284 "/features/codebase-embeddings",
285 ],
286 },
287 {
288 to: "/customize/deep-dives/autocomplete",
289 from: [
290 "/walkthroughs/tab-autocomplete",
291 "/features/tab-autocomplete",
292 ],
293 },
294 {
295 to: "/customize/deep-dives/prompts",
296 from: ["/walkthroughs/prompt-files", "/features/prompt-files"],
297 },
298 // TODO - actions redirects
299 {
300 to: "/customize/deep-dives/slash-commands",
301 from: [
302 "/actions/how-to-use-it",
303 "/actions/how-to-customize",
304 "/actions",
305 "/actions/model-setup",
306 "/actions/context-selection",
307 "/actions/how-it-works",
308 "/customize/slash-commands",
309 "/customization/slash-commands",
310 ],
311 },
312
313 {
314 to: "/customize/deep-dives/vscode-actions",
315 from: ["/walkthroughs/quick-actions"],
316 },
317 {
318 to: "/customize/changelog",
319 from: "/changelog",
320 },
321 {
322 to: "/reference",
323 from: [
324 "/customization/code-config",
325 "/reference/config",
326 "/yaml-reference",
327 ],
328 },
329 {
330 to: "/customize/context-providers",
331 from: ["/customization/context-providers"],
332 },
333 {
334 to: "/customize/deep-dives/development-data",
335 from: ["/development-data", "/customize/development-data"],
336 },
337 {
338 to: "/customize/deep-dives/docs",
339 from: "/features/talk-to-your-docs",
340 },
341 {
342 to: "/customize/model-providers/anthropic",
343 from: "/reference/Model Providers/anthropicllm",
344 },
345 {
346 to: "/customize/model-providers/azure",
347 from: "/reference/Model Providers/azure",
348 },
349 {
350 to: "/customize/model-providers/bedrock",
351 from: "/reference/Model Providers/bedrock",
352 },
353 {
354 to: "/customize/model-providers/deepseek",
355 from: "/reference/Model Providers/deepseek",
356 },
357 {
358 to: "/customize/model-providers",
359 from: "/reference/Model Providers/freetrial",
360 },
361 {
362 to: "/customize/model-providers/gemini",
363 from: "/reference/Model Providers/geminiapi",
364 },
365 {
366 to: "/customize/model-providers/mistral",
367 from: "/reference/Model Providers/mistral",
368 },
369 {
370 to: "/customize/model-providers/ollama",
371 from: "/reference/Model Providers/ollama",
372 },
373 {
374 to: "/customize/model-providers/openai",
375 from: "/reference/Model Providers/openai",
376 },
377 {
378 to: "/customize/tutorials/custom-code-rag",
379 from: "/walkthroughs/custom-code-rag",
380 },
381 {
382 to: "/customize/tutorials/llama3.1",
383 from: "/walkthroughs/llama3.1",
384 },
385 {
386 to: "/customize/tutorials/running-continue-without-internet",
387 from: "/walkthroughs/running-continue-without-internet",
388 },
389 {
390 to: "/customize/tutorials/set-up-codestral",
391 from: "/walkthroughs/set-up-codestral",
392 },
393 {
394 to: "/",
395 from: "/intro",
396 },
397 {
398 to: "/customize/model-providers/more/cloudflare",
399 from: "/reference/Model Providers/cloudflare",
400 },
401 {
402 to: "/customize/model-providers/more/cohere",
403 from: "/reference/Model Providers/cohere",
404 },
405 {
406 to: "/customize/model-providers/more/deepinfra",
407 from: "/reference/Model Providers/deepinfra",
408 },
409 {
410 to: "/customize/model-providers/more/flowise",
411 from: "/reference/Model Providers/flowise",
412 },
413 {
414 to: "/customize/model-providers/more/huggingfaceinferenceapi",
415 from: "/reference/Model Providers/huggingfaceinferenceapi",
416 },
417 {
418 to: "/customize/model-providers/more/ipex_llm",
419 from: "/reference/Model Providers/ipex_llm",
420 },
421 {
422 to: "/customize/model-providers/more/kindo",
423 from: "/reference/Model Providers/kindo",
424 },
425 {
426 to: "/customize/model-providers/more/llamacpp",
427 from: "/reference/Model Providers/llamacpp",
428 },
429 {
430 to: "/customize/model-providers/more/llamafile",
431 from: "/reference/Model Providers/llamafile",
432 },
433 {
434 to: "/customize/model-providers/more/lmstudio",
435 from: "/reference/Model Providers/lmstudio",
436 },
437 {
438 to: "/customize/model-providers/more/msty",
439 from: "/reference/Model Providers/msty",
440 },
441 {
442 to: "/customize/model-providers/more/openrouter",
443 from: "/reference/Model Providers/openrouter",
444 },
445 {
446 to: "/customize/model-providers/more/replicatellm",
447 from: "/reference/Model Providers/replicatellm",
448 },
449 {
450 to: "/customize/model-providers/more/sagemaker",
451 from: "/reference/Model Providers/sagemaker",
452 },
453 {
454 to: "/customize/model-providers/more/textgenwebui",
455 from: "/reference/Model Providers/textgenwebui",
456 },
457 {
458 to: "/customize/model-providers/more/together",
459 from: "/reference/Model Providers/together",
460 },
461 {
462 to: "/customize/model-providers/more/novita",
463 from: "/reference/Model Providers/novita",
464 },
465 {
466 to: "/customize/model-providers/more/vllm",
467 from: "/reference/Model Providers/vllm",
468 },
469 {
470 to: "/customize/model-providers/more/watsonx",
471 from: "/reference/Model Providers/watsonx",
472 },
473 {
474 to: "/customize/model-providers/more/nebius",
475 from: "/reference/Model Providers/nebius",
476 },
477 // Sidebar items that should route directly to a subpage
478 {
479 to: "/chat/how-to-use-it",
480 from: "/chat",
481 },
482 {
483 to: "/agent/how-to-use-it",
484 from: "/agent",
485 },
486 {
487 to: "/edit/how-to-use-it",
488 from: "/edit",
489 },
490 {
491 to: "/autocomplete/how-to-use-it",
492 from: "/autocomplete",
493 },
494 {
495 to: "/getting-started/install",
496 from: "/getting-started",
497 },
498 {
499 to: "/customize/deep-dives/prompts",
500 from: "/customize/deep-dives/prompt-files",
501 },
502 ],
503 },
504 ],
505 ],
506};
507
508module.exports = config;