Elffuss BraidHub

kikocis/continue public

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