Elffuss BraidHub

kikocis/continue public

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