continue-custom/docs/docusaurus.config.js
2024-10-29 20:29:41 -07:00

414 lines
12 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const { themes } = require("prism-react-renderer");
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Continue",
tagline:
"the open-source library for accelerating software development with language models",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://continue.dev",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "continuedev", // Usually your GitHub org/user name.
projectName: "continue", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
themes: [],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/continuedev/continue/tree/main/docs",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-M3JWW8N2XQ",
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{
name: "keywords",
content:
"open source, ai, vscode, intellij, jetbrains, developer tools, chatgpt, copilot, llm",
},
],
// Replace with your project's social card
image: "https://docs.continue.dev/img/continue-social-card.png",
navbar: {
title: "Continue",
logo: {
alt: "Continue Logo",
src: "img/logo.png",
href: "https://continue.dev",
target: "_blank",
},
items: [
{
type: "docSidebar",
sidebarId: "docsSidebar",
position: "left",
label: "Docs",
href: "/",
},
{
type: "docSidebar",
sidebarId: "customizingSidebar",
position: "left",
label: "Customize",
href: "/customize/overview",
},
{
type: "docSidebar",
sidebarId: "customizingSidebar",
position: "left",
label: "Reference",
href: "/reference",
},
{
to: "https://github.com/continuedev/continue",
label: "GitHub",
position: "right",
className: "github-navbar",
},
{
to: "https://discord.gg/vapESyrFmJ",
label: "Discord",
position: "right",
className: "discord-navbar",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Extensions",
items: [
{
label: "VS Code",
to: "https://marketplace.visualstudio.com/items?itemName=Continue.continue",
},
{
label: "JetBrains",
to: "https://plugins.jetbrains.com/plugin/22707-continue-extension",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
to: "https://discord.gg/vapESyrFmJ",
},
{
label: "GitHub",
to: "https://github.com/continuedev/continue",
},
],
},
{
title: "Follow Us",
items: [
{
label: "Twitter",
to: "https://twitter.com/continuedev",
},
{
label: "LinkedIn",
to: "https://linkedin.com/company/continuedev",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Continue Dev, Inc.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["json"],
},
algolia: {
// The application ID provided by Algolia
appId: "0OMUMCQZVV",
// Public API key: it is safe to commit it
apiKey: "6795de0f612eebe17018f8061a9ef18e",
indexName: "continue",
// Optional: see doc section below
contextualSearch: true,
},
}),
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "/customize/overview",
from: "/customization",
},
{
to: "/getting-started/install",
from: ["/install/vscode", "/install/jetbrains"],
},
// {
// to: "/getting-started/install",
// from: "/getting-started",
// },
{
to: "/customize/model-types",
from: "/setup/overview",
},
{
to: "/getting-started/overview",
from: [
"/model-setup/overview",
"/model-setup/select-model",
"/model-setup/configuration",
"/quickstart",
"/how-to-use-continue",
],
},
{
to: "/customize/model-providers",
from: ["/setup/select-provider", "/setup/model-providers"],
},
{
to: "/customize/deep-dives/codebase",
from: [
"/walkthroughs/codebase-embeddings",
"/features/codebase-embeddings",
],
},
{
to: "/customize/deep-dives/autocomplete",
from: [
"/walkthroughs/tab-autocomplete",
"/features/tab-autocomplete",
],
},
{
to: "/customize/deep-dives/prompt-files",
from: ["/walkthroughs/prompt-files", "/features/prompt-files"],
},
{
to: "/actions/how-to-use-it#quick-actions",
from: "/walkthroughs/quick-actions",
},
{
to: "/customize/changelog",
from: "/changelog",
},
{
to: "/reference",
from: ["/customization/code-config", "/reference/config"],
},
{
to: "/customize/context-providers",
from: "/customization/context-providers",
},
{
to: "/customize/development-data",
from: "/development-data",
},
{
to: "/customize/deep-dives/docs",
from: "/features/talk-to-your-docs",
},
{
to: "/customize/model-providers/anthropic",
from: "/reference/Model Providers/anthropicllm",
},
{
to: "/customize/model-providers/azure",
from: "/reference/Model Providers/azure",
},
{
to: "/customize/model-providers/bedrock",
from: "/reference/Model Providers/bedrock",
},
{
to: "/customize/model-providers/deepseek",
from: "/reference/Model Providers/deepseek",
},
{
to: "/customize/model-providers/free-trial",
from: "/reference/Model Providers/freetrial",
},
{
to: "/customize/model-providers/gemini",
from: "/reference/Model Providers/geminiapi",
},
{
to: "/customize/model-providers/mistral",
from: "/reference/Model Providers/mistral",
},
{
to: "/customize/model-providers/ollama",
from: "/reference/Model Providers/ollama",
},
{
to: "/customize/model-providers/openai",
from: "/reference/Model Providers/openai",
},
{
to: "/customize/slash-commands",
from: "/customization/slash-commands",
},
{
to: "/customize/tutorials/custom-code-rag",
from: "/walkthroughs/custom-code-rag",
},
{
to: "/customize/tutorials/llama3.1",
from: "/walkthroughs/llama3.1",
},
{
to: "/customize/tutorials/running-continue-without-internet",
from: "/walkthroughs/running-continue-without-internet",
},
{
to: "/customize/tutorials/set-up-codestral",
from: "/walkthroughs/set-up-codestral",
},
{
to: "/",
from: "/intro",
},
{
to: "/customize/model-providers/more/cloudflare",
from: "/reference/Model Providers/cloudflare",
},
{
to: "/customize/model-providers/more/cohere",
from: "/reference/Model Providers/cohere",
},
{
to: "/customize/model-providers/more/deepinfra",
from: "/reference/Model Providers/deepinfra",
},
{
to: "/customize/model-providers/more/flowise",
from: "/reference/Model Providers/flowise",
},
{
to: "/customize/model-providers/more/huggingfaceinferenceapi",
from: "/reference/Model Providers/huggingfaceinferenceapi",
},
{
to: "/customize/model-providers/more/ipex_llm",
from: "/reference/Model Providers/ipex_llm",
},
{
to: "/customize/model-providers/more/kindo",
from: "/reference/Model Providers/kindo",
},
{
to: "/customize/model-providers/more/llamacpp",
from: "/reference/Model Providers/llamacpp",
},
{
to: "/customize/model-providers/more/llamafile",
from: "/reference/Model Providers/llamafile",
},
{
to: "/customize/model-providers/more/lmstudio",
from: "/reference/Model Providers/lmstudio",
},
{
to: "/customize/model-providers/more/msty",
from: "/reference/Model Providers/msty",
},
{
to: "/customize/model-providers/more/openrouter",
from: "/reference/Model Providers/openrouter",
},
{
to: "/customize/model-providers/more/replicatellm",
from: "/reference/Model Providers/replicatellm",
},
{
to: "/customize/model-providers/more/sagemaker",
from: "/reference/Model Providers/sagemaker",
},
{
to: "/customize/model-providers/more/textgenwebui",
from: "/reference/Model Providers/textgenwebui",
},
{
to: "/customize/model-providers/more/together",
from: "/reference/Model Providers/togetherllm",
},
{
to: "/customize/model-providers/more/vllm",
from: "/reference/Model Providers/vllm",
},
{
to: "/customize/model-providers/more/watsonx",
from: "/reference/Model Providers/watsonx",
},
// Sidebar items that should route directly to a subpage
{
to: "/chat/how-to-use-it",
from: "/chat",
},
{
to: "/edit/how-to-use-it",
from: "/edit",
},
{
to: "/actions/how-to-use-it",
from: "/actions",
},
{
to: "/autocomplete/how-to-use-it",
from: "/autocomplete",
},
{
to: "/getting-started/install",
from: "/getting-started",
},
],
},
],
],
};
module.exports = config;