Elffuss BraidHub

kikocis/continue public

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