diff --git a/docs/docs/CLA.md b/docs/CLA.md similarity index 100% rename from docs/docs/CLA.md rename to docs/CLA.md diff --git a/docs/docs/advanced/00-overview.mdx b/docs/docs/advanced/00-overview.mdx new file mode 100644 index 000000000..b5e366d8b --- /dev/null +++ b/docs/docs/advanced/00-overview.mdx @@ -0,0 +1,56 @@ +--- +title: Overview +description: Deep dive into Continue's advanced features, context providers, and configuration options +keywords: + [advanced, context, providers, model providers, configuration, deep dives] +--- + +# Advanced Topics + +Explore Continue's advanced capabilities for power users and complex development scenarios. + +## Context Providers + +Master how Continue understands your codebase with powerful context providers for code, documentation, and more. + +[Explore Context Providers →](./custom-providers) + +## Context Integration + +Specialized context features for codebase understanding and documentation integration. + +[Browse Context Features →](./context/codebase.mdx) + +## Deep Dives + +Detailed technical explanations of Continue's internal workings and advanced configuration options. + +[Read Deep Dives →](./deep-dives/configuration.md) + +## Model Providers + +Configure and optimize different AI model providers for your specific needs and infrastructure. + +[Configure Providers →](./model-providers/top-level/openai.mdx) + +## Model Roles + +Understand how different models can be assigned specific roles in your development workflow. + +[Learn Model Roles →](./model-roles/00-intro.mdx) + +## Reference + +Complete configuration reference and API documentation. + +[View Reference →](/reference) + +## Troubleshooting + +Solutions to common issues and debugging techniques. + +[Get Help →](/troubleshooting) + +--- + +These advanced topics help you get the most out of Continue in complex development environments. diff --git a/docs/docs/advanced/context/_category_.json b/docs/docs/advanced/context/_category_.json new file mode 100644 index 000000000..d58470e1d --- /dev/null +++ b/docs/docs/advanced/context/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Context", + "position": 2 +} diff --git a/docs/docs/customize/deep-dives/codebase.mdx b/docs/docs/advanced/context/codebase.mdx similarity index 93% rename from docs/docs/customize/deep-dives/codebase.mdx rename to docs/docs/advanced/context/codebase.mdx index 409ecd080..c1bd7469b 100644 --- a/docs/docs/customize/deep-dives/codebase.mdx +++ b/docs/docs/advanced/context/codebase.mdx @@ -96,4 +96,4 @@ If you need to force a refresh of the index, reload the VS Code window with -See [the config reference](../../reference) for all documentation site configuration options. +See [the config reference](/reference) for all documentation site configuration options. Indexing will re-sync upon saving the configuration file. diff --git a/docs/docs/customize/context-providers.mdx b/docs/docs/advanced/custom-providers.mdx similarity index 99% rename from docs/docs/customize/context-providers.mdx rename to docs/docs/advanced/custom-providers.mdx index c55bbfbbd..1061ea12a 100644 --- a/docs/docs/customize/context-providers.mdx +++ b/docs/docs/advanced/custom-providers.mdx @@ -1,5 +1,5 @@ --- -title: Context providers +title: Context Providers description: Type '@' to select content to the LLM as context keywords: [context, "@", provider, LLM] --- @@ -167,7 +167,7 @@ Reference the contents from any documentation site. Note that this will only enable the `@Docs` context provider. -To use it, you need to add a documentation site to your config file. See the [docs](../customize/deep-dives/docs.mdx) page for more information. +To use it, you need to add a documentation site to your config file. See the [docs](./context/documentation.mdx) page for more information. ### `@Open` @@ -253,7 +253,7 @@ Reference the most relevant snippets from your codebase. -Read more about indexing and retrieval [here](../customize/deep-dives/codebase.mdx). +Read more about indexing and retrieval [here](./context/codebase.mdx). ### `@Folder` diff --git a/docs/docs/customize/deep-dives/_apply.md b/docs/docs/advanced/deep-dives/_apply.md similarity index 100% rename from docs/docs/customize/deep-dives/_apply.md rename to docs/docs/advanced/deep-dives/_apply.md diff --git a/docs/docs/advanced/deep-dives/_category_.json b/docs/docs/advanced/deep-dives/_category_.json new file mode 100644 index 000000000..6122f6287 --- /dev/null +++ b/docs/docs/advanced/deep-dives/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Deep Dives", + "position": 3 +} diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/advanced/deep-dives/autocomplete.mdx similarity index 98% rename from docs/docs/customize/deep-dives/autocomplete.mdx rename to docs/docs/advanced/deep-dives/autocomplete.mdx index 3e608ad99..488667dbe 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/advanced/deep-dives/autocomplete.mdx @@ -98,7 +98,7 @@ The following settings can be configured for autocompletion in the IDE extension ### `config.json` Configuration -The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](../../json-reference.md#tabautocompleteoptions) for more details. +The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](/reference) for more details. ## FAQs diff --git a/docs/docs/customize/deep-dives/configuration.md b/docs/docs/advanced/deep-dives/configuration.md similarity index 93% rename from docs/docs/customize/deep-dives/configuration.md rename to docs/docs/advanced/deep-dives/configuration.md index 1a567ea4f..6c6c2cef6 100644 --- a/docs/docs/customize/deep-dives/configuration.md +++ b/docs/docs/advanced/deep-dives/configuration.md @@ -26,15 +26,15 @@ To open this `config.yaml`, you need to open the assistants dropdown in the top- When editing this file, you can see the available options suggested as you type, or check the reference below. When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist. -See the full reference for `config.yaml` [here](../../reference.md). +See the full reference for `config.yaml` [here](/reference). ## Deprecated configuration methods :::info -View the `config.json` migration guide [here](../../yaml-migration.md) +View the `config.json` migration guide [here](../yaml-migration.mdx) ::: -- [`config.json`](../../json-reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml` +- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml` - [`.continuerc.json`](#continuercjson) - Workspace-level configuration - [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: - `~/.continue/config.ts` (MacOS / Linux) diff --git a/docs/docs/customize/deep-dives/development-data.md b/docs/docs/advanced/deep-dives/development-data.md similarity index 95% rename from docs/docs/customize/deep-dives/development-data.md rename to docs/docs/advanced/deep-dives/development-data.md index dd1e0c546..d7eb3edb1 100644 --- a/docs/docs/customize/deep-dives/development-data.md +++ b/docs/docs/advanced/deep-dives/development-data.md @@ -16,6 +16,6 @@ You can also configure custom destinations for your data, including remote HTTP For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data). -See more details about adding `data` blocks to your configuration files in the [YAML specification](../../reference.md#data) +See more details about adding `data` blocks to your configuration files in the [YAML specification](/reference#data) When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data). diff --git a/docs/docs/customize/deep-dives/mcp.mdx b/docs/docs/advanced/deep-dives/mcp.mdx similarity index 100% rename from docs/docs/customize/deep-dives/mcp.mdx rename to docs/docs/advanced/deep-dives/mcp.mdx diff --git a/docs/docs/customize/deep-dives/prompts.md b/docs/docs/advanced/deep-dives/prompts.md similarity index 100% rename from docs/docs/customize/deep-dives/prompts.md rename to docs/docs/advanced/deep-dives/prompts.md diff --git a/docs/docs/customize/deep-dives/rules.mdx b/docs/docs/advanced/deep-dives/rules.mdx similarity index 94% rename from docs/docs/customize/deep-dives/rules.mdx rename to docs/docs/advanced/deep-dives/rules.mdx index 610878f0c..da0d74a7b 100644 --- a/docs/docs/customize/deep-dives/rules.mdx +++ b/docs/docs/advanced/deep-dives/rules.mdx @@ -8,7 +8,7 @@ import Tabs from "@theme/Tabs"; # Rules -Rules provide instructions to the model for [Chat](../../chat/how-to-use-it.md), [Edit](../../edit/how-to-use-it.md), and [Agent](../../agent/how-to-use-it.md) requests. +Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests. :::info Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx). ::: @@ -172,11 +172,11 @@ Whenever you are writing React code, make sure to ### Chat System Message -Continue includes a simple default system message for [Chat](../../chat/how-to-use-it.md) and [Agent](../../agent/how-to-use-it.md) requests, to help the model provide reliable codeblock formats in its output. +Continue includes a simple default system message for [Chat](../../features/chat/quick-start) and [Agent](../../features/agent/quick-start) requests, to help the model provide reliable codeblock formats in its output. This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4). -Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](../../reference.md#models). +Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models). ### `.continuerules` diff --git a/docs/docs/customize/deep-dives/settings.md b/docs/docs/advanced/deep-dives/settings.md similarity index 100% rename from docs/docs/customize/deep-dives/settings.md rename to docs/docs/advanced/deep-dives/settings.md diff --git a/docs/docs/customize/deep-dives/slash-commands.mdx b/docs/docs/advanced/deep-dives/slash-commands.mdx similarity index 83% rename from docs/docs/customize/deep-dives/slash-commands.mdx rename to docs/docs/advanced/deep-dives/slash-commands.mdx index 059cf8213..cd64f05b9 100644 --- a/docs/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/docs/advanced/deep-dives/slash-commands.mdx @@ -12,15 +12,15 @@ import Tabs from "@theme/Tabs"; ## Slash commands Slash commands are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown. -{/* ![slash-commands](/img/slash-commands.png) */} +![slash-commands](/img/slash-commands.png) -Slash commands can be combined with additional instructions, including [context providers](../context-providers.mdx) or [highlighted code](../../edit/context-selection#highlighted-code). +Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code. ## Prompts ### Assistant prompt blocks -The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../chat/how-it-works.md). +The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works.mdx). ### Prompt files diff --git a/docs/docs/customize/deep-dives/vscode-actions.md b/docs/docs/advanced/deep-dives/vscode-actions.md similarity index 96% rename from docs/docs/customize/deep-dives/vscode-actions.md rename to docs/docs/advanced/deep-dives/vscode-actions.md index d9f1b7b66..680ae2419 100644 --- a/docs/docs/customize/deep-dives/vscode-actions.md +++ b/docs/docs/advanced/deep-dives/vscode-actions.md @@ -26,7 +26,7 @@ Right click actions let you highlight a desired region of code, right click, and The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit. -Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../edit/how-it-works.md). +Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx). ![context-menu](/img/context-menu.png) diff --git a/docs/docs/json-reference.md b/docs/docs/advanced/json-reference.md similarity index 97% rename from docs/docs/json-reference.md rename to docs/docs/advanced/json-reference.md index cced1e36e..e65aeb387 100644 --- a/docs/docs/json-reference.md +++ b/docs/docs/advanced/json-reference.md @@ -5,7 +5,7 @@ keywords: [config, config_schema.json, json] --- :::info -We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](./reference.md). +We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](/reference). ::: Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). @@ -14,7 +14,7 @@ Below are details for each property that can be set in `config.json`. The config ### `models` -Your **chat** models are defined here, which are used for [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md) and [VS Code actions](./customize/deep-dives/vscode-actions.md). +Your **chat** models are defined here, which are used for [Chat](/features/chat/how-it-works), [Edit](/features/edit/how-it-works) and [VS Code actions](/advanced/deep-dives/vscode-actions). Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json. @@ -471,7 +471,7 @@ Several experimental config parameters are available, as described below: - `docstring`: Prompt for adding docstrings. - `fix`: Prompt for fixing code. - `optimize`: Prompt for optimizing code. -- `modelContextProtocolServers`: See [Model Context Protocol](/customize/context-providers#model-context-protocol) +- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools) Example @@ -506,7 +506,7 @@ Example ### Fully deprecated settings -Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/deep-dives/settings.md). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. +Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](/advanced/deep-dives/settings). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. - `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`). - `promptPath`: This value will override during migration. @@ -527,4 +527,4 @@ Some deprecated `config.json` settings are no longer stored in config and have b - `displayRawMarkdown` - `showChatScrollbar` - See [User Settings Page](./customize/deep-dives/settings.md) for more information about each option. + See [User Settings Page](/advanced/deep-dives/settings) for more information about each option. diff --git a/docs/docs/advanced/model-providers/_category_.json b/docs/docs/advanced/model-providers/_category_.json new file mode 100644 index 000000000..c710357e6 --- /dev/null +++ b/docs/docs/advanced/model-providers/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Model Providers", + "position": 4 +} diff --git a/docs/docs/customize/model-providers/assets/watsonx2.gif b/docs/docs/advanced/model-providers/assets/watsonx2.gif similarity index 100% rename from docs/docs/customize/model-providers/assets/watsonx2.gif rename to docs/docs/advanced/model-providers/assets/watsonx2.gif diff --git a/docs/docs/customize/model-providers/more/llamastack.mdx b/docs/docs/advanced/model-providers/llamastack.mdx similarity index 98% rename from docs/docs/customize/model-providers/more/llamastack.mdx rename to docs/docs/advanced/model-providers/llamastack.mdx index 4f21e9911..53a542ed3 100644 --- a/docs/docs/customize/model-providers/more/llamastack.mdx +++ b/docs/docs/advanced/model-providers/llamastack.mdx @@ -110,4 +110,4 @@ By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model. ## Reranking model -Llama Stack currently did not support Reranking API yet. \ No newline at end of file +Llama Stack currently did not support Reranking API yet. diff --git a/docs/docs/customize/model-providers/more/SambaNova.mdx b/docs/docs/advanced/model-providers/more/SambaNova.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/SambaNova.mdx rename to docs/docs/advanced/model-providers/more/SambaNova.mdx diff --git a/docs/docs/advanced/model-providers/more/_category_.json b/docs/docs/advanced/model-providers/more/_category_.json new file mode 100644 index 000000000..ec176d012 --- /dev/null +++ b/docs/docs/advanced/model-providers/more/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "More Providers", + "position": 2 +} diff --git a/docs/docs/customize/model-providers/more/asksage.mdx b/docs/docs/advanced/model-providers/more/asksage.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/asksage.mdx rename to docs/docs/advanced/model-providers/more/asksage.mdx diff --git a/docs/docs/customize/model-providers/more/cerebras.mdx b/docs/docs/advanced/model-providers/more/cerebras.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/cerebras.mdx rename to docs/docs/advanced/model-providers/more/cerebras.mdx diff --git a/docs/docs/customize/model-providers/more/cloudflare.mdx b/docs/docs/advanced/model-providers/more/cloudflare.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/cloudflare.mdx rename to docs/docs/advanced/model-providers/more/cloudflare.mdx diff --git a/docs/docs/customize/model-providers/more/cohere.mdx b/docs/docs/advanced/model-providers/more/cohere.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/cohere.mdx rename to docs/docs/advanced/model-providers/more/cohere.mdx diff --git a/docs/docs/customize/model-providers/more/deepinfra.mdx b/docs/docs/advanced/model-providers/more/deepinfra.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/deepinfra.mdx rename to docs/docs/advanced/model-providers/more/deepinfra.mdx diff --git a/docs/docs/customize/model-providers/more/flowise.mdx b/docs/docs/advanced/model-providers/more/flowise.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/flowise.mdx rename to docs/docs/advanced/model-providers/more/flowise.mdx diff --git a/docs/docs/customize/model-providers/more/function-network.mdx b/docs/docs/advanced/model-providers/more/function-network.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/function-network.mdx rename to docs/docs/advanced/model-providers/more/function-network.mdx diff --git a/docs/docs/customize/model-providers/more/groq.mdx b/docs/docs/advanced/model-providers/more/groq.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/groq.mdx rename to docs/docs/advanced/model-providers/more/groq.mdx diff --git a/docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx b/docs/docs/advanced/model-providers/more/huggingfaceinferenceapi.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx rename to docs/docs/advanced/model-providers/more/huggingfaceinferenceapi.mdx diff --git a/docs/docs/customize/model-providers/more/ipex_llm.mdx b/docs/docs/advanced/model-providers/more/ipex_llm.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/ipex_llm.mdx rename to docs/docs/advanced/model-providers/more/ipex_llm.mdx diff --git a/docs/docs/customize/model-providers/more/kindo.mdx b/docs/docs/advanced/model-providers/more/kindo.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/kindo.mdx rename to docs/docs/advanced/model-providers/more/kindo.mdx diff --git a/docs/docs/customize/model-providers/more/llamacpp.mdx b/docs/docs/advanced/model-providers/more/llamacpp.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/llamacpp.mdx rename to docs/docs/advanced/model-providers/more/llamacpp.mdx diff --git a/docs/docs/customize/model-providers/more/llamafile.mdx b/docs/docs/advanced/model-providers/more/llamafile.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/llamafile.mdx rename to docs/docs/advanced/model-providers/more/llamafile.mdx diff --git a/docs/docs/customize/model-providers/more/lmstudio.mdx b/docs/docs/advanced/model-providers/more/lmstudio.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/lmstudio.mdx rename to docs/docs/advanced/model-providers/more/lmstudio.mdx diff --git a/docs/docs/customize/model-providers/more/moonshot.mdx b/docs/docs/advanced/model-providers/more/moonshot.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/moonshot.mdx rename to docs/docs/advanced/model-providers/more/moonshot.mdx diff --git a/docs/docs/customize/model-providers/more/morph.mdx b/docs/docs/advanced/model-providers/more/morph.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/morph.mdx rename to docs/docs/advanced/model-providers/more/morph.mdx diff --git a/docs/docs/customize/model-providers/more/msty.mdx b/docs/docs/advanced/model-providers/more/msty.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/msty.mdx rename to docs/docs/advanced/model-providers/more/msty.mdx diff --git a/docs/docs/customize/model-providers/more/ncompass.mdx b/docs/docs/advanced/model-providers/more/ncompass.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/ncompass.mdx rename to docs/docs/advanced/model-providers/more/ncompass.mdx diff --git a/docs/docs/customize/model-providers/more/nebius.mdx b/docs/docs/advanced/model-providers/more/nebius.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/nebius.mdx rename to docs/docs/advanced/model-providers/more/nebius.mdx diff --git a/docs/docs/customize/model-providers/more/novita.mdx b/docs/docs/advanced/model-providers/more/novita.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/novita.mdx rename to docs/docs/advanced/model-providers/more/novita.mdx diff --git a/docs/docs/customize/model-providers/more/nvidia.mdx b/docs/docs/advanced/model-providers/more/nvidia.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/nvidia.mdx rename to docs/docs/advanced/model-providers/more/nvidia.mdx diff --git a/docs/docs/customize/model-providers/more/openrouter.mdx b/docs/docs/advanced/model-providers/more/openrouter.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/openrouter.mdx rename to docs/docs/advanced/model-providers/more/openrouter.mdx diff --git a/docs/docs/customize/model-providers/more/openvino_model_server.mdx b/docs/docs/advanced/model-providers/more/openvino_model_server.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/openvino_model_server.mdx rename to docs/docs/advanced/model-providers/more/openvino_model_server.mdx diff --git a/docs/docs/customize/model-providers/more/ovhcloud.mdx b/docs/docs/advanced/model-providers/more/ovhcloud.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/ovhcloud.mdx rename to docs/docs/advanced/model-providers/more/ovhcloud.mdx diff --git a/docs/docs/customize/model-providers/more/relace.mdx b/docs/docs/advanced/model-providers/more/relace.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/relace.mdx rename to docs/docs/advanced/model-providers/more/relace.mdx diff --git a/docs/docs/customize/model-providers/more/replicatellm.mdx b/docs/docs/advanced/model-providers/more/replicatellm.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/replicatellm.mdx rename to docs/docs/advanced/model-providers/more/replicatellm.mdx diff --git a/docs/docs/customize/model-providers/more/sagemaker.mdx b/docs/docs/advanced/model-providers/more/sagemaker.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/sagemaker.mdx rename to docs/docs/advanced/model-providers/more/sagemaker.mdx diff --git a/docs/docs/customize/model-providers/more/scaleway.mdx b/docs/docs/advanced/model-providers/more/scaleway.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/scaleway.mdx rename to docs/docs/advanced/model-providers/more/scaleway.mdx diff --git a/docs/docs/customize/model-providers/more/siliconflow.mdx b/docs/docs/advanced/model-providers/more/siliconflow.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/siliconflow.mdx rename to docs/docs/advanced/model-providers/more/siliconflow.mdx diff --git a/docs/docs/customize/model-providers/more/textgenwebui.mdx b/docs/docs/advanced/model-providers/more/textgenwebui.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/textgenwebui.mdx rename to docs/docs/advanced/model-providers/more/textgenwebui.mdx diff --git a/docs/docs/customize/model-providers/more/together.mdx b/docs/docs/advanced/model-providers/more/together.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/together.mdx rename to docs/docs/advanced/model-providers/more/together.mdx diff --git a/docs/docs/customize/model-providers/more/venice.md b/docs/docs/advanced/model-providers/more/venice.md similarity index 100% rename from docs/docs/customize/model-providers/more/venice.md rename to docs/docs/advanced/model-providers/more/venice.md diff --git a/docs/docs/customize/model-providers/more/vllm.mdx b/docs/docs/advanced/model-providers/more/vllm.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/vllm.mdx rename to docs/docs/advanced/model-providers/more/vllm.mdx diff --git a/docs/docs/customize/model-providers/more/watsonx.mdx b/docs/docs/advanced/model-providers/more/watsonx.mdx similarity index 100% rename from docs/docs/customize/model-providers/more/watsonx.mdx rename to docs/docs/advanced/model-providers/more/watsonx.mdx diff --git a/docs/docs/advanced/model-providers/top-level/_category_.json b/docs/docs/advanced/model-providers/top-level/_category_.json new file mode 100644 index 000000000..3bf486db9 --- /dev/null +++ b/docs/docs/advanced/model-providers/top-level/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Popular Providers", + "position": 1 +} diff --git a/docs/docs/customize/model-providers/top-level/anthropic.mdx b/docs/docs/advanced/model-providers/top-level/anthropic.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/anthropic.mdx rename to docs/docs/advanced/model-providers/top-level/anthropic.mdx diff --git a/docs/docs/customize/model-providers/top-level/azure.mdx b/docs/docs/advanced/model-providers/top-level/azure.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/azure.mdx rename to docs/docs/advanced/model-providers/top-level/azure.mdx diff --git a/docs/docs/customize/model-providers/top-level/bedrock.mdx b/docs/docs/advanced/model-providers/top-level/bedrock.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/bedrock.mdx rename to docs/docs/advanced/model-providers/top-level/bedrock.mdx diff --git a/docs/docs/customize/model-providers/top-level/deepseek.mdx b/docs/docs/advanced/model-providers/top-level/deepseek.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/deepseek.mdx rename to docs/docs/advanced/model-providers/top-level/deepseek.mdx diff --git a/docs/docs/customize/model-providers/top-level/gemini.mdx b/docs/docs/advanced/model-providers/top-level/gemini.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/gemini.mdx rename to docs/docs/advanced/model-providers/top-level/gemini.mdx diff --git a/docs/docs/customize/model-providers/top-level/inception.mdx b/docs/docs/advanced/model-providers/top-level/inception.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/inception.mdx rename to docs/docs/advanced/model-providers/top-level/inception.mdx diff --git a/docs/docs/customize/model-providers/top-level/mistral.mdx b/docs/docs/advanced/model-providers/top-level/mistral.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/mistral.mdx rename to docs/docs/advanced/model-providers/top-level/mistral.mdx diff --git a/docs/docs/customize/model-providers/top-level/ollama.mdx b/docs/docs/advanced/model-providers/top-level/ollama.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/ollama.mdx rename to docs/docs/advanced/model-providers/top-level/ollama.mdx diff --git a/docs/docs/customize/model-providers/top-level/openai.mdx b/docs/docs/advanced/model-providers/top-level/openai.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/openai.mdx rename to docs/docs/advanced/model-providers/top-level/openai.mdx diff --git a/docs/docs/customize/model-providers/top-level/vertexai.mdx b/docs/docs/advanced/model-providers/top-level/vertexai.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/vertexai.mdx rename to docs/docs/advanced/model-providers/top-level/vertexai.mdx diff --git a/docs/docs/customize/model-providers/top-level/xAI.mdx b/docs/docs/advanced/model-providers/top-level/xAI.mdx similarity index 100% rename from docs/docs/customize/model-providers/top-level/xAI.mdx rename to docs/docs/advanced/model-providers/top-level/xAI.mdx diff --git a/docs/docs/customize/model-roles/intro.mdx b/docs/docs/advanced/model-roles/00-intro.mdx similarity index 94% rename from docs/docs/customize/model-roles/intro.mdx rename to docs/docs/advanced/model-roles/00-intro.mdx index 5a2cb4b05..ecb8ec040 100644 --- a/docs/docs/customize/model-roles/intro.mdx +++ b/docs/docs/advanced/model-roles/00-intro.mdx @@ -18,7 +18,7 @@ Models in Continue can be configured to be used for various roles in the extensi - [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers) - [`rerank`](./reranking.mdx): Used to rerank results from vector search -These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](../../reference.md#models) for more details. +These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details. ## Selecting model roles diff --git a/docs/docs/advanced/model-roles/_category_.json b/docs/docs/advanced/model-roles/_category_.json new file mode 100644 index 000000000..3922aaa54 --- /dev/null +++ b/docs/docs/advanced/model-roles/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Model Roles", + "position": 5 +} diff --git a/docs/docs/customize/model-roles/apply.mdx b/docs/docs/advanced/model-roles/apply.mdx similarity index 100% rename from docs/docs/customize/model-roles/apply.mdx rename to docs/docs/advanced/model-roles/apply.mdx diff --git a/docs/docs/customize/model-roles/autocomplete.md b/docs/docs/advanced/model-roles/autocomplete.md similarity index 90% rename from docs/docs/customize/model-roles/autocomplete.md rename to docs/docs/advanced/model-roles/autocomplete.md index 9f39f154d..621417805 100644 --- a/docs/docs/customize/model-roles/autocomplete.md +++ b/docs/docs/advanced/model-roles/autocomplete.md @@ -7,7 +7,7 @@ sidebar_position: 2 An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will often perform poorly even with extensive prompting. -In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`. +In Continue, autocomplete models are used to display inline [Autocomplete](../../features/autocomplete/quick-start) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`. ## Recommended Autocomplete models diff --git a/docs/docs/customize/model-roles/chat.mdx b/docs/docs/advanced/model-roles/chat.mdx similarity index 97% rename from docs/docs/customize/model-roles/chat.mdx rename to docs/docs/advanced/model-roles/chat.mdx index 7761114d2..33eeb7c95 100644 --- a/docs/docs/customize/model-roles/chat.mdx +++ b/docs/docs/advanced/model-roles/chat.mdx @@ -10,7 +10,7 @@ import Tabs from "@theme/Tabs"; A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters. -In Continue, these models are used for normal [Chat](../../chat/how-to-use-it.md) and [VS Code actions](../deep-dives/vscode-actions.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively. +In Continue, these models are used for normal [Chat](../../features/chat/quick-start) and [VS Code actions](../deep-dives/vscode-actions.md). The selected chat model will also be used for [Edit](../../features/edit/quick-start) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively. ## Recommended Chat models diff --git a/docs/docs/customize/model-roles/edit.mdx b/docs/docs/advanced/model-roles/edit.mdx similarity index 100% rename from docs/docs/customize/model-roles/edit.mdx rename to docs/docs/advanced/model-roles/edit.mdx diff --git a/docs/docs/customize/model-roles/embeddings.mdx b/docs/docs/advanced/model-roles/embeddings.mdx similarity index 98% rename from docs/docs/customize/model-roles/embeddings.mdx rename to docs/docs/advanced/model-roles/embeddings.mdx index ce5357792..571a8883c 100644 --- a/docs/docs/customize/model-roles/embeddings.mdx +++ b/docs/docs/advanced/model-roles/embeddings.mdx @@ -10,7 +10,7 @@ import Tabs from "@theme/Tabs"; An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.mdx) to perform similarity search over your codebase. +In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase.mdx) to perform similarity search over your codebase. You can add `embed` to a model's `roles` to specify that it can be used to embed. diff --git a/docs/docs/customize/model-roles/reranking.mdx b/docs/docs/advanced/model-roles/reranking.mdx similarity index 97% rename from docs/docs/customize/model-roles/reranking.mdx rename to docs/docs/advanced/model-roles/reranking.mdx index c16dab7a0..1eed2b3f3 100644 --- a/docs/docs/customize/model-roles/reranking.mdx +++ b/docs/docs/advanced/model-roles/reranking.mdx @@ -10,7 +10,7 @@ import Tabs from "@theme/Tabs"; A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../deep-dives/codebase.mdx) in order to select the most relevant code snippets after vector search. +In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase.mdx) in order to select the most relevant code snippets after vector search. ## Recommended reranking models diff --git a/docs/docs/telemetry.md b/docs/docs/advanced/telemetry.mdx similarity index 95% rename from docs/docs/telemetry.md rename to docs/docs/advanced/telemetry.mdx index c58226165..aca00a5e4 100644 --- a/docs/docs/telemetry.md +++ b/docs/docs/advanced/telemetry.mdx @@ -26,6 +26,6 @@ The following usage information is collected and reported: ## How to Opt Out -You can disable anonymous telemetry by visiting the [User Settings Page](./customize/deep-dives/settings.md) and toggling "Allow Anonymous Telemetry" off. +You can disable anonymous telemetry by visiting the [User Settings Page](./deep-dives/settings.md) and toggling "Allow Anonymous Telemetry" off. Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut ctrl + , on Windows/Linux or cmd + , on macOS). diff --git a/docs/docs/yaml-migration.md b/docs/docs/advanced/yaml-migration.mdx similarity index 95% rename from docs/docs/yaml-migration.md rename to docs/docs/advanced/yaml-migration.mdx index c07f99c18..69e27c409 100644 --- a/docs/docs/yaml-migration.md +++ b/docs/docs/advanced/yaml-migration.mdx @@ -11,7 +11,7 @@ Continue's YAML configuration format provides more readable, maintainable, consi See also - [Intro to YAML](https://yaml.org/) -- [JSON Continue Config Reference](/json-reference) +- [JSON Continue Config Reference](/reference) - [YAML Continue Config Reference](/reference) ## Create YAML file @@ -38,9 +38,9 @@ Add all model configurations in `config.json`, including models in `models`, `ta - `inlineEdit` -> e.g. `roles: [chat, edit]` - `applyCodeBlock` -> e.g. `roles: [chat, apply]` -Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](./reference.md#models) +Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#models) -Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](./reference.md#models) +Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/reference#models) @@ -328,9 +328,9 @@ mcpServers: ## Deprecated configuration options -Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./customize/deep-dives/settings.md) (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. +Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./deep-dives/settings.md) (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. -See the [JSON Config Reference](./json-reference#fully-deprecated-settings) for more information on fully deprecated options. +See the [JSON Config Reference](/reference) for more information on fully deprecated options. The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent: @@ -355,4 +355,4 @@ The following top-level fields from `config.json` have been deprecated. Most UI- ## New Configuration options -The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](./reference) for more information. +The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/reference) for more information. diff --git a/docs/docs/agent/context-selection.md b/docs/docs/agent/context-selection.md deleted file mode 100644 index f840a946c..000000000 --- a/docs/docs/agent/context-selection.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Context selection -description: How context can be selected for Chat -keywords: [context] -sidebar_position: 3 ---- - -You can use the same [methods to manually add context as Chat](../chat/context-selection.md). - -In addition, tool call responses are automatically included as context items. - -This enables Agent mode to see the result of the previous action and decide what to do next. diff --git a/docs/docs/agent/how-to-customize.md b/docs/docs/agent/how-to-customize.md deleted file mode 100644 index a89f0f6b3..000000000 --- a/docs/docs/agent/how-to-customize.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: How to customize -description: How to customize Chat -keywords: [customize, chat] -sidebar_position: 5 ---- - -## Add Rules Blocks - -Adding Rules can be done in your assistant locally or in the Hub. - -[Explore Rules on the Hub](https://hub.continue.dev/explore/rules) and see the [Rules deep dive](../customize/deep-dives/rules.mdx) for more details and tips on creating rules. - -## Add MCP tools - -You can add MCP servers to your assistant to give Agent access to more tools. [Explore MCP Servers on the Hub](https://hub.continue.dev/explore/mcp) and see the [MCP guide](../customize/deep-dives/mcp.mdx) for more details. - -## Tool policies - -You can adjust Agent's usage behavior for each tool in your assistant to one of these options: - -- **Ask First (default)** - request permission from the user; show the `Cancel` and `Continue` buttons -- **Automatic** - do not request permission, automatically call the tool and feed the response back to the model -- **Excluded** - do not send this tool to the model - -:::warning -Be careful setting any tools to `automatic` if their behavior is not read-only. -::: - -First, open `Tool Policies` by clicking the tools icon in the input toolbar - -![Input Toolbar](/img/lump-toolbar.png) - -Then, you can view and change tool policies. To change a policy, click on the policy text ("Excluded", etc.) to toggle it. You can also turn groups of tools (e.g. all Built-in tools or all tools from a specific MCP server) off using the section toggles. - -![Tool Policies](/img/tool-policies.png) - -Tool policies are stored locally per user. diff --git a/docs/docs/agent/model-setup.mdx b/docs/docs/agent/model-setup.mdx deleted file mode 100644 index 088d368da..000000000 --- a/docs/docs/agent/model-setup.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Model setup -description: Models for Continue Agent -keywords: [model, agent] -sidebar_position: 2 ---- - -Agent can be used with models that support tool use through Continue. - -For the best Agent experience we recommend Claude Sonnet 4 from Anthropic. Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-4-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys). - -Currently the following models are recommended: - -- [Anthropic](../customize/model-providers/top-level/anthropic.mdx) - we recommend [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet) -- [OpenAI](../customize/model-providers/top-level/openai.mdx) - we recommend [GPT-4o](https://hub.continue.dev/openai/gpt-4o) -- [Gemini](../customize/model-providers/top-level/gemini.mdx) - we recommend [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) - -The best chat models generally support tool use. See [recommended chat models](../customize/model-roles/chat.mdx#recommended-chat-models) for more. diff --git a/docs/docs/autocomplete/context-selection.md b/docs/docs/autocomplete/context-selection.md deleted file mode 100644 index f237a3625..000000000 --- a/docs/docs/autocomplete/context-selection.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: Context selection -description: Autocomplete context selection -keywords: [context, autocomplete, lsp, recent] -sidebar_position: 3 ---- - -Autocomplete will automatically determine context based on the current cursor position. We use the following techniques to determine what to include in the prompt: - -### File prefix/suffix - -We will always include the code from your file prior to and after the cursor position. - -### Definitions from the Language Server Protocol - -Similar to how you can use cmd/ctrl + `click` in your editor, we use the same tool (the LSP) to power "go to definition". For example, if you are typing out a function call, we will include the function definition. Or, if you are writing code inside of a method, we will include the type definitions for any parameters or the return type. - -### Imported files - -Because there are often many imports, we can't include all of them. Instead, we look for symbols around your cursor that have matching imports and use that as context. - -### Recent files - -We automatically consider recently opened or edited files and include snippets that are relevant to the current completion. diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md deleted file mode 100644 index 5f7327a0d..000000000 --- a/docs/docs/autocomplete/how-to-customize.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: How to customize -description: How to customize Autocomplete -keywords: [customize] -sidebar_position: 5 ---- - -Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](../customize/deep-dives/settings.md) to manage these settings. - -For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/autocomplete/model-setup.mdx b/docs/docs/autocomplete/model-setup.mdx deleted file mode 100644 index aa05e3c31..000000000 --- a/docs/docs/autocomplete/model-setup.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: Model setup -description: Autocomplete \-model setup -keywords: [model, autocomplete] -sidebar_position: 2 ---- - -import TabItem from "@theme/TabItem"; -import Tabs from "@theme/Tabs"; - -For the best autocomplete experience we recommend Codestral from Mistral. - -Add Codestral to your assistant from the hub [here](https://hub.continue.dev/mistral/codestral). Visit the [Mistral Platform](https://console.mistral.ai/codestral) to get a Codestral API key. - -For a fully local autocomplete experience, we recommend [Qwen 2.5 Coder 1.5B on Ollama](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b). - -For more details about setup and recommended models, visit the [autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/blocks/context-providers.md b/docs/docs/blocks/context-providers.md deleted file mode 100644 index 918ff3961..000000000 --- a/docs/docs/blocks/context-providers.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Context Blocks -sidebar_label: Context -description: Determine what internal information your AI assistant can access -keywords: [context, blocks, repositories, integration, knowledge base] -sidebar_position: 2 ---- - -These blocks determine what internal information your AI assistant can access: - -- **Connect to source repositories** and issues, CI/CD systems, wikis, and knowledge bases -- **Determine the scope** of what the AI can "see" when providing assistance -- **Customize** to match your specific development environment -- **Include proprietary code patterns** unique to your organization -- **Integrate data sources** to connect to any internal system with valuable context - -![Context Blocks Overview](/img/context-blocks-overview.png) - -## Learn More - -Learn more about context providers [here](../reference.md#context), and check out [this guide](../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. diff --git a/docs/docs/blocks/data.md b/docs/docs/blocks/data.md deleted file mode 100644 index 6e38e35e8..000000000 --- a/docs/docs/blocks/data.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Data Blocks -sidebar_label: Data -description: Help organizations capture and analyze AI assistant usage data -keywords: [data, blocks, analytics, metrics, storage, compliance] -sidebar_position: 7 ---- - -These help organizations capture and analyze AI assistant usage data: - -- **Analytics Integration**: Export metrics to observability platforms like Splunk or New Relic -- **Cloud Storage**: Store development data in S3/Azure Blob for model fine-tuning and auditing -- **Impact Measurement**: Track acceptance rates and productivity outcomes for ROI calculation -- **Compliance Reporting**: Generate audit trails for security and governance requirements - -![Data Blocks Overview](/img/data-blocks-overview.png) - -## Learn More - -You can read more about development data [here](../customize/deep-dives/development-data.md). Data destinations are configured in the [`data`](../reference.md#data) section of `config.yaml`. diff --git a/docs/docs/blocks/docs.md b/docs/docs/blocks/docs.md deleted file mode 100644 index 304a8c474..000000000 --- a/docs/docs/blocks/docs.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: Docs Blocks -sidebar_label: Docs -description: Bring your documentation directly into the IDE -keywords: [docs, blocks, documentation, guidance, flow] -sidebar_position: 3 ---- - -This is how Continue brings your documentation directly into the IDE: - -- **Provide just-in-time guidance** without context switching -- **Reduce support burden** by making information discoverable -- **Keep developers in flow** by eliminating searches through multiple systems - -![Docs Blocks Overview](/img/docs-blocks-overview.png) - -## Learn More - -Learn more in the [@Docs deep dive](../customize/deep-dives/docs.mdx), and view [`docs`](../reference.md#docs) in the YAML Reference for more details. diff --git a/docs/docs/blocks/models.md b/docs/docs/blocks/models.md deleted file mode 100644 index bcf78be02..000000000 --- a/docs/docs/blocks/models.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: Model Blocks -sidebar_label: Model -description: Foundation of the entire assistant experience offering specialized capabilities -keywords: [model, blocks, chat, edit, apply, autocomplete, embedding, reranker] -sidebar_position: 1 ---- - -These blocks form the foundation of the entire assistant experience, offering different specialized capabilities: - -- **[Chat](../customize/model-roles/chat.mdx)**: Power conversational interactions about code and provide detailed guidance -- **[Edit](../customize/model-roles/edit.mdx)**: Handle complex code transformations and refactoring tasks -- **[Apply](../customize/model-roles/apply.mdx)**: Execute targeted code modifications with high accuracy -- **[Autocomplete](../customize/model-roles/autocomplete.md)**: Provide real-time suggestions as developers type -- **[Embedding](../customize/model-roles/embeddings.mdx)**: Transform code into vector representations for semantic search -- **[Reranker](../customize/model-roles/reranking.mdx)**: Improve search relevance by ordering results based on semantic meaning - -![Model Blocks Overview](/img/model-blocks-overview.png) - -## Learn More - -Continue supports [many model providers](../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. - -Read more about roles [here](../customize/model-roles/intro.mdx) and view [`models`](../reference.md#models) in the YAML Reference. diff --git a/docs/docs/chat/context-selection.md b/docs/docs/chat/context-selection.md deleted file mode 100644 index ee427cf0a..000000000 --- a/docs/docs/chat/context-selection.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: Context selection -description: How context can be selected for Chat -keywords: [context] -sidebar_position: 3 ---- - -## Input - -Typing a question or instructions into the input box is the only required context. All of the other methods to select and include additional context listed below are optional. - -## Highlighted code - -The highlighted code you’ve selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt alongside the input you provide. This is the only section of code that will be provided to the model unless you highlight additional sections or use one of the other selection methods below. - -## Active file - -You can include the currently open file as context by pressing opt + enter (Mac) or alt + enter (Windows) when you send your request at Chat window(Prompt can't be empty). - -## Specific file - -You can include a specific file in your current workspace as context by typing [`@Files`](../customize/context-providers.mdx#file) and selecting the file. - -## Specific folder - -You can include a folder in your current workspace as context by typing [`@Folder`](../customize/context-providers.mdx#folder) and selecting the directory. It [works like `@Codebase`](../customize/deep-dives/codebase.mdx) but only includes the files in the selected folder. - -## Codebase search - -You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.mdx#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.mdx). - -## Documentation site - -You can include a documentation site as context by typing [`@Docs`](../customize/context-providers.mdx#docs) and selecting the documentation site. You can learn about how @Docs works [here](../customize/deep-dives/docs.mdx). - -## Terminal contents - -You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../customize/context-providers.mdx#terminal). - -## Git diff - -You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../customize/context-providers.mdx#git-diff). - -## Other context - -You can see a full list of built-in context providers [here](../customize/context-providers.mdx) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.mdx). diff --git a/docs/docs/chat/how-it-works.md b/docs/docs/chat/how-it-works.md deleted file mode 100644 index 92b6e75f9..000000000 --- a/docs/docs/chat/how-it-works.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: How it works -description: How Chat works -keywords: [how, chat, works] -sidebar_position: 4 ---- - -Using any selected code sections, all context that you have selected with @, and your input instructions, we prompt the model to provide a response in the sidebar. If you are asking a follow-up, then all earlier session context is also included. No other additional context is provided to the model. - -The model response is then streamed directly back to the sidebar. Each code section included in the response will be placed into its own code block, which gives you buttons to either “Apply to current file”, “Insert at cursor”, or “Copy” for each section. When you press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) at the end of a session, all context is cleared and a new session is started, so that you can begin a new task. - -If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.mdx#llm-prompt-logs). - -You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.mdx) and `@Docs` [here](../customize/deep-dives/docs.mdx). diff --git a/docs/docs/chat/how-to-customize.md b/docs/docs/chat/how-to-customize.md deleted file mode 100644 index f0bf11019..000000000 --- a/docs/docs/chat/how-to-customize.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: How to customize -description: How to customize Chat -keywords: [customize, chat] -sidebar_position: 5 ---- - -There are a number of different ways to customize Chat: - -- You can add a [`rules` block](../hub/blocks/block-types.md#rules) to your assistant to give the model persistent instructions through the system prompt. See the [rules deep dive](../customize/deep-dives/rules.mdx) for more information. -- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx) -- You can configure [`@Docs`](../customize/deep-dives/docs.mdx) -- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.mdx) -- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx) diff --git a/docs/docs/chat/how-to-use-it.md b/docs/docs/chat/how-to-use-it.md deleted file mode 100644 index 112649aeb..000000000 --- a/docs/docs/chat/how-to-use-it.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: Chat -description: How to use Chat -sidebar_label: How to use it -keywords: [how, use, chat] -sidebar_position: 1 ---- - -![chat](/img/chat.gif) - -## How to use it - -Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you what you want, then you can send follow up messages to clarify and adjust its approach until the task is completed. - -Chat is best used to understand and iterate on code or as a replacement for search engine queries. - -## Type a request and press enter - -You send it a question, and it replies with an answer. You tell it to solve a problem, and it provides you a solution. You ask for some code, and it generates it. - -## Highlight a code section to include as context - -You select a code section with your mouse, press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) to send it to the LLM, and then ask for it to be explained to you or request it to be refactored in some way. - -## Reference context with the @ symbol - -If there is information from the codebase, documentation, IDE, or other tools that you want to include as context, you can type @ to select and include it as context. You can learn more about how to use this in [Chat context selection](context-selection.md). - -## Apply generated code to your file - -When the LLM replies with edits to a file, you can click the “Apply” button. This will update the existing code in the editor to reflect the suggested changes. - -## Start a fresh session for a new task - -Once you complete a task and want to start a new one, press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) to begin a new session, ensuring only relevant context for the next task is provided to the LLM. - -## Switch between different models - -If you have configured multiple models, you can switch between models using the dropdown or by pressing cmd/ctrl + ’ diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx deleted file mode 100644 index 8608f5e1d..000000000 --- a/docs/docs/chat/model-setup.mdx +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: Model setup -description: How to set up a Chat model -keywords: [model] -sidebar_position: 2 ---- - -import TabItem from "@theme/TabItem"; -import Tabs from "@theme/Tabs"; - -For the best chat experience we recommend Claude 3.7 Sonnet from Anthropic. - -Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-3-7-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys). - -Other recommended chat models include: - -- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o) -- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2) -- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash) -- [Llama 3.1 8b from Meta on Ollama](https://hub.continue.dev/ollama/llama3.1-8b) for a fully local experience - {/* HUB_TODO nonexistent blocks */} - {/* - Deepseek Coder 2 from deepseek on [Ollama](https://hub.continue.dev/explore/models) or [LM Studio](https://hub.continue.dev/explore/models) */} - -For more details about setup and recommended models, see [here](../customize/model-roles/chat.mdx). diff --git a/docs/docs/customize/overview.md b/docs/docs/customization/00-overview.mdx similarity index 80% rename from docs/docs/customize/overview.md rename to docs/docs/customization/00-overview.mdx index 3cd6f2615..423901141 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customization/00-overview.mdx @@ -6,11 +6,11 @@ keywords: [customize, configure, config] Continue can be deeply customized. For example you might: -- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../customize/model-providers/). -- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](./model-roles/) . -- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](./context-providers.mdx). -- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](./deep-dives/slash-commands.mdx). -- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../agent/how-to-use-it.md). Add custom tools using [MCP Servers](./deep-dives/mcp.mdx) +- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../advanced/model-providers/top-level/openai.mdx). +- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](../advanced/model-roles/00-intro.mdx). +- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](../advanced/custom-providers.mdx). +- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](../advanced/deep-dives/slash-commands.mdx). +- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../features/agent/quick-start.mdx). Add custom tools using [MCP Servers](../advanced/deep-dives/mcp.mdx) Whatever you choose, you'll probably start by editing your Assistant. @@ -21,4 +21,4 @@ You can easily access your assistant configuration from the Continue Chat sideba ![configure an assistant](/img/configure-continue.png) - See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hub assistant -- See the [Config Deep Dive](./deep-dives/configuration.md) for more details on configuring local assistants. +- See the [Config Deep Dive](../advanced/deep-dives/configuration.md) for more details on configuring local assistants. diff --git a/docs/docs/blocks/mcp.md b/docs/docs/customization/mcp-tools.mdx similarity index 79% rename from docs/docs/blocks/mcp.md rename to docs/docs/customization/mcp-tools.mdx index 604d80203..f9af25609 100644 --- a/docs/docs/blocks/mcp.md +++ b/docs/docs/customization/mcp-tools.mdx @@ -1,6 +1,6 @@ --- title: MCP Blocks -sidebar_label: MCP +sidebar_label: MCP Tools description: Model Context Protocol servers provide specialized functionality keywords: [mcp, blocks, model context protocol, integrations, tools] sidebar_position: 4 @@ -18,7 +18,7 @@ Model Context Protocol servers provide specialized functionality: ## Learn More -Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../reference.md#mcpservers) in the YAML Reference for more details. +Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. description: Model Context Protocol servers provide specialized functionality keywords: [mcp, blocks, model context protocol, integrations, tools] sidebar_position: 4 @@ -37,4 +37,4 @@ Model Context Protocol servers provide specialized functionality: ## Learn More -Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../reference.md#mcpservers) in the YAML Reference for more details. +Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. diff --git a/docs/docs/customization/models.mdx b/docs/docs/customization/models.mdx new file mode 100644 index 000000000..d612aea47 --- /dev/null +++ b/docs/docs/customization/models.mdx @@ -0,0 +1,24 @@ +--- +title: Model Blocks +sidebar_label: Model +description: Foundation of the entire assistant experience offering specialized capabilities +keywords: [model, blocks, chat, edit, apply, autocomplete, embedding, reranker] +sidebar_position: 1 +--- + +These blocks form the foundation of the entire assistant experience, offering different specialized capabilities: + +- **[Chat](../advanced/model-roles/chat.mdx)**: Power conversational interactions about code and provide detailed guidance +- **[Edit](../advanced/model-roles/edit.mdx)**: Handle complex code transformations and refactoring tasks +- **[Apply](../advanced/model-roles/apply.mdx)**: Execute targeted code modifications with high accuracy +- **[Autocomplete](../advanced/model-roles/autocomplete.md)**: Provide real-time suggestions as developers type +- **[Embedding](../advanced/model-roles/embeddings.mdx)**: Transform code into vector representations for semantic search +- **[Reranker](../advanced/model-roles/reranking.mdx)**: Improve search relevance by ordering results based on semantic meaning + +![Model Blocks Overview](/img/model-blocks-overview.png) + +## Learn More + +Continue supports [many model providers](../advanced/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. + +Read more about roles [here](../advanced/model-roles/00-intro.mdx) and view [`models`](/reference#models) in the YAML Reference. diff --git a/docs/docs/blocks/prompts.md b/docs/docs/customization/prompts.mdx similarity index 77% rename from docs/docs/blocks/prompts.md rename to docs/docs/customization/prompts.mdx index 07cc9fb53..38c359f78 100644 --- a/docs/docs/blocks/prompts.md +++ b/docs/docs/customization/prompts.mdx @@ -1,6 +1,6 @@ --- title: Prompt Blocks -sidebar_label: Prompt +sidebar_label: Prompts description: Specialized instructions that shape how models respond keywords: [prompts, blocks, instructions, guidance, code review] sidebar_position: 6 @@ -18,4 +18,4 @@ These are the specialized instructions that shape how models respond: ## Learn More -Prompt blocks have the same syntax as [prompt files](../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](../reference.md#prompts). +Prompt blocks have the same syntax as [prompt files](../advanced/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts). diff --git a/docs/docs/blocks/rules.md b/docs/docs/customization/rules.mdx similarity index 79% rename from docs/docs/blocks/rules.md rename to docs/docs/customization/rules.mdx index 4d106a24c..28ffb2fcc 100644 --- a/docs/docs/blocks/rules.md +++ b/docs/docs/customization/rules.mdx @@ -18,8 +18,8 @@ By implementing rules, you transform the AI from a generic coding assistant into ### How Rules Work -Your assistant detects rule blocks and applies the specified rules while in [Agent](../agent/how-to-use-it), [Chat](../chat/how-to-use-it), and [Edit](../edit/how-to-use-it) modes. +Your assistant detects rule blocks and applies the specified rules while in [Agent](../features/agent/quick-start), [Chat](../features/chat/quick-start), and [Edit](../features/edit/quick-start) modes. ## Learn More -Learn more in the [rules deep dive](../customize/deep-dives/rules.mdx), and view [`rules`](../reference.md#rules) in the YAML Reference for more details. +Learn more in the [rules deep dive](../advanced/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details. diff --git a/docs/docs/customize/changelog.md b/docs/docs/customize/changelog.md deleted file mode 100644 index 64ddc0621..000000000 --- a/docs/docs/customize/changelog.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Continue Changelog -description: Redirecting to our Changelog -hide_table_of_contents: true ---- - -# Redirecting to Changelog - -If you are not redirected automatically, follow this [link to the changelog](https://changelog.continue.dev). - - - - diff --git a/docs/docs/edit/context-selection.md b/docs/docs/edit/context-selection.md deleted file mode 100644 index ceb2ea766..000000000 --- a/docs/docs/edit/context-selection.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Context selection -sidebar_position: 3 -description: How to select context for Edit -keywords: [edit, cmd i, works] ---- - -## Input - -The input you provide is included in the prompt. - -## Code to Edit - -The **entire contents** of each file (the current file for Jetbrains inline Edit, the `Code to Edit` item for VS Code Edit mode) are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges. - -## Context Providers - -In VS Code Edit mode, you can use `@` to add context using [Context Providers](../customize/context-providers.mdx), similar to [Chat](../chat/context-selection.md). Some context providers may be disabled in Edit mode. diff --git a/docs/docs/edit/how-to-customize.mdx b/docs/docs/edit/how-to-customize.mdx deleted file mode 100644 index 46dd5e3da..000000000 --- a/docs/docs/edit/how-to-customize.mdx +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: How to customize -sidebar_position: 5 -description: How to customize Edit -keywords: [edit, cmd i, works] ---- - -## Setting active Edit/Apply model - -You can configure particular models from your Assistant to be used for Edit and Apply requests (see [How it Works](./how-it-works.md)). Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then, you can use the dropdowns to select models to use for Edit and Apply. - -![Settings Active Models Section](/img/model-roles-edit.png) - -See [Edit role](../customize/model-roles/edit.mdx) and [Apply role](../customize/model-roles/apply.mdx) for more details. diff --git a/docs/docs/edit/model-setup.md b/docs/docs/edit/model-setup.md deleted file mode 100644 index a76865dcd..000000000 --- a/docs/docs/edit/model-setup.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Model setup -sidebar_position: 2 -description: How to set up an Edit model -keywords: [edit, cmd l, model] ---- - -By default, Edit uses the [same model as Chat](../chat/model-setup.mdx), and we recommend [Claude 3.7 Sonnet](https://hub.continue.dev/anthropic/claude-3-7-sonnet) from Anthropic. Visit [the Hub](https://hub.continue.dev/explore/models?roles=edit) to explore other Edit models. - -For the best Edit experience, we also recommend setting up an Apply model, specially trained to apply diffs to files. We recommend [Morph v0 Fast Apply](https://hub.continue.dev/morphllm/morph-v0) or [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply). Explore other apply models on the [the Hub](https://hub.continue.dev/explore/models?roles=apply). diff --git a/docs/docs/features/00-overview.mdx b/docs/docs/features/00-overview.mdx new file mode 100644 index 000000000..74a8fff5a --- /dev/null +++ b/docs/docs/features/00-overview.mdx @@ -0,0 +1,37 @@ +--- +title: Overview +description: Discover Continue's powerful AI-assisted development features +keywords: [features, chat, autocomplete, edit, agent, AI development] +--- + +# Core Features + +Continue provides four powerful AI-assisted development features that work seamlessly within your IDE. + +## Chat + +Ask questions and get help from AI without leaving your editor. Perfect for understanding code, getting explanations, and brainstorming solutions. + +[Get started with Chat →](./chat/quick-start) + +## Autocomplete + +Receive intelligent code suggestions as you type. Continue's autocomplete understands your project context and coding patterns. + +[Get started with Autocomplete →](./autocomplete/quick-start) + +## Edit + +Modify code directly in your files with AI assistance. Make changes without switching contexts or copying code between windows. + +[Get started with Edit →](./edit/quick-start) + +## Agent + +Let AI handle complex coding tasks that require multiple steps, file navigation, and tool usage. + +[Get started with Agent →](./agent/quick-start) + +--- + +Each feature is designed to enhance your development workflow while maintaining full control over your code. diff --git a/docs/docs/features/agent/_category_.json b/docs/docs/features/agent/_category_.json new file mode 100644 index 000000000..d93432ff1 --- /dev/null +++ b/docs/docs/features/agent/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Agent", + "position": 4 +} diff --git a/docs/docs/agent/how-it-works.md b/docs/docs/features/agent/how-it-works.mdx similarity index 79% rename from docs/docs/agent/how-it-works.md rename to docs/docs/features/agent/how-it-works.mdx index 9253b45d3..31e0b1cc2 100644 --- a/docs/docs/agent/how-it-works.md +++ b/docs/docs/features/agent/how-it-works.mdx @@ -1,8 +1,7 @@ --- -title: How it works -description: How Agent works -keywords: [how, agent, works] -sidebar_position: 4 +title: How Agent Works +description: Understanding Continue's agent functionality and autonomous AI coding +keywords: [agent, AI, autonomous coding, tools, how it works] --- Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses. @@ -21,7 +20,7 @@ The following handshake describes how Agent uses tools: 6. The model responds, potentially with another tool call and step 2 begins again :::info -In [Chat mode](../chat/how-to-use-it.md), tools are **not** included in the request to the model. +In [Chat mode](../chat/quick-start), tools are **not** included in the request to the model. ::: ## Built-in tools @@ -36,4 +35,6 @@ Continue includes several built-in tools which provide the model access to IDE f - **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root - **Search web** (`search_web`): Perform a web search to get top results - **View diff** (`view_diff`): View the current working git diff +- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../../advanced/custom-providers#repository-map) +- **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project - **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation diff --git a/docs/docs/agent/how-to-use-it.md b/docs/docs/features/agent/quick-start.mdx similarity index 68% rename from docs/docs/agent/how-to-use-it.md rename to docs/docs/features/agent/quick-start.mdx index 250a99d3e..43ea5a95e 100644 --- a/docs/docs/agent/how-to-use-it.md +++ b/docs/docs/features/agent/quick-start.mdx @@ -1,9 +1,7 @@ --- -title: Agent -description: How to use Agent -sidebar_label: How to use it -keywords: [how, use, agent] -sidebar_position: 1 +title: Quick Start +description: Get started with Continue's agent feature for autonomous coding tasks +keywords: [agent, quick start, autonomous, AI coding, tools] --- ![agent mode](/img/agent.gif) @@ -19,12 +17,12 @@ You can switch to `Agent` in the mode selector below the chat input box. ![How to select agent mode](/img/mode-select-agent.png) :::info -If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Setup](./model-setup.mdx) for more information. +If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Blocks](../../customization/models.mdx) for more information. ::: ### Chat with Agent -Agent lives within the same interface as [Chat](../chat/how-it-works.md), so the same [input](../chat/how-to-use-it.md#type-a-request-and-press-enter) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/how-to-use-it.md#reference-context-with-the--symbol) or adding [highlighted code from the editor](../chat/how-to-use-it.md#highlight-a-code-section-to-include-as-context). +Agent lives within the same interface as [Chat](../chat/how-it-works), so the same [input](../chat/quick-start#1-start-a-conversation) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/quick-start#3-use--for-additional-context) or adding [highlighted code from the editor](../chat/quick-start#2-include-code-context). #### Use natural language @@ -40,7 +38,7 @@ By default, Agent will ask permission when it wants to use a tool. Click `Contin ![agent requesting permission](/img/agent-permission.png) -You can use tool policies to exclude or make usage automatic for specific tools. See [How to Customize](./how-to-customize.md) for more background. +You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](../../customization/mcp-tools.mdx) for more background. ## View Tool Responses diff --git a/docs/docs/features/autocomplete/_category_.json b/docs/docs/features/autocomplete/_category_.json new file mode 100644 index 000000000..a0834d1e5 --- /dev/null +++ b/docs/docs/features/autocomplete/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Autocomplete", + "position": 2 +} diff --git a/docs/docs/autocomplete/how-it-works.md b/docs/docs/features/autocomplete/how-it-works.mdx similarity index 76% rename from docs/docs/autocomplete/how-it-works.md rename to docs/docs/features/autocomplete/how-it-works.mdx index c97b71c03..8e313e7eb 100644 --- a/docs/docs/autocomplete/how-it-works.md +++ b/docs/docs/features/autocomplete/how-it-works.mdx @@ -1,8 +1,7 @@ --- -title: How it works -description: How Autocomplete works -keywords: [how, autocomplete, context] -sidebar_position: 4 +title: How Autocomplete Works +description: Understanding Continue's autocomplete functionality and AI-powered code completion +keywords: [autocomplete, AI, code completion, how it works] --- Autocomplete is a [compound AI system](https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/) that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts. @@ -16,7 +15,7 @@ In order to display suggestions quickly, without sending too many requests, we d ## Context -As explained on the [context selection](./context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt. +Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt. ## Filtering @@ -28,4 +27,4 @@ Language models aren't perfect, but can be made much closer by adjusting their o We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition. -You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). +You can learn more about how it works in the [Autocomplete deep dive](../../advanced/deep-dives/autocomplete.mdx). diff --git a/docs/docs/autocomplete/how-to-use-it.md b/docs/docs/features/autocomplete/quick-start.mdx similarity index 85% rename from docs/docs/autocomplete/how-to-use-it.md rename to docs/docs/features/autocomplete/quick-start.mdx index 950a41993..f375386e3 100644 --- a/docs/docs/autocomplete/how-to-use-it.md +++ b/docs/docs/features/autocomplete/quick-start.mdx @@ -1,9 +1,7 @@ --- -title: Autocomplete -description: Autocomplete \- how to use it -sidebar_label: How to use it -keywords: [autocomplete] -sidebar_position: 1 +title: Quick Start +description: Get started with Continue's autocomplete feature +keywords: [autocomplete, quick start, getting started, code completion] --- ![autocomplete](/img/autocomplete.gif) diff --git a/docs/docs/features/chat/_category_.json b/docs/docs/features/chat/_category_.json new file mode 100644 index 000000000..49add87dd --- /dev/null +++ b/docs/docs/features/chat/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Chat", + "position": 1 +} diff --git a/docs/docs/features/chat/how-it-works.mdx b/docs/docs/features/chat/how-it-works.mdx new file mode 100644 index 000000000..6b7b04520 --- /dev/null +++ b/docs/docs/features/chat/how-it-works.mdx @@ -0,0 +1,64 @@ +--- +title: How Chat Works +description: Understanding Continue's chat functionality and AI interaction +keywords: [chat, AI, conversation, context, how it works] +--- + +# How Chat Works + +Continue's Chat feature provides a conversational interface with AI models directly in your IDE sidebar. + +## Core Functionality + +When you start a chat conversation, Continue: + +1. **Gathers Context**: Uses any selected code sections and @-mentioned context +2. **Constructs Prompt**: Combines your input with relevant context +3. **Sends to Model**: Prompts the configured AI model for a response +4. **Streams Response**: Returns the AI response in real-time to the sidebar + +## Context Management + +### Automatic Context + +- Selected code in your editor +- Current file context when relevant +- Previous conversation history in the session + +### Manual Context + +- `@Codebase` - Search and include relevant code from your project +- `@Docs` - Include documentation context +- `@Files` - Reference specific files +- Custom context providers + +## Response Handling + +Each code section in the AI response includes action buttons: + +- **Apply to current file** - Replace selected code +- **Insert at cursor** - Add code at cursor position +- **Copy** - Copy code to clipboard + +## Session Management + +- Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session +- Clears all previous context for a fresh start +- Helpful for switching between different tasks + +## Advanced Features + +### Prompt Inspection + +View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting) for debugging and optimization. + +### Context Providers + +Learn more about how context providers work: + +- [Codebase Context](../../advanced/context/codebase) +- [Documentation Context](../../advanced/context/documentation) + +--- + +_Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used._ diff --git a/docs/docs/features/chat/quick-start.mdx b/docs/docs/features/chat/quick-start.mdx new file mode 100644 index 000000000..0ea6efe16 --- /dev/null +++ b/docs/docs/features/chat/quick-start.mdx @@ -0,0 +1,100 @@ +--- +title: Quick Start +description: Get started with Continue's chat feature in minutes +keywords: [chat, quick start, getting started, tutorial] +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +# Chat Quick Start + +![chat](/img/chat.gif) + +Chat makes it easy to ask for help from an AI without leaving your IDE. Get explanations, generate code, and iterate on solutions conversationally. + +## Basic Usage + +### 1. Start a Conversation + +Type your question or request in the chat input and press Enter. + +**Examples:** + +- "Explain this function" +- "How do I handle errors in this code?" +- "Generate a test for this component" + +### 2. Include Code Context + +Select code in your editor, then use the keyboard shortcut to include it in your chat: + + + + Press `Cmd/Ctrl + L` to send selected code to chat + + + Press `Cmd/Ctrl + J` to send selected code to chat + + + +### 3. Use @ for Additional Context + +Type `@` to include specific context: + +- `@Codebase` - Search your project for relevant code +- `@Docs` - Include documentation +- `@Files` - Reference specific files +- `@Terminal` - Include terminal output + +## Working with Responses + +When the AI provides code in its response, you'll see action buttons: + +- **Apply to current file** - Replace your selected code +- **Insert at cursor** - Add code at your cursor position +- **Copy** - Copy code to clipboard + +## Pro Tips + +### Start Fresh + +Press `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) in an empty chat to start a new session. + +### Be Specific + +Include details about: + +- What you're trying to accomplish +- Any constraints or requirements +- Your preferred coding style or patterns + +### Iterate + +If the first response isn't perfect: + +- Ask follow-up questions +- Request modifications +- Provide additional context + +## Common Use Cases + +### Code Explanation + +Select confusing code and ask "What does this code do?" + +### Bug Fixing + +Include error messages and ask "How do I fix this error?" + +### Code Generation + +Describe what you want: "Create a React component that displays a user profile" + +### Refactoring + +Select code and ask "How can I make this more efficient?" + +--- + +_Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!_ diff --git a/docs/docs/features/edit/_category_.json b/docs/docs/features/edit/_category_.json new file mode 100644 index 000000000..664548c00 --- /dev/null +++ b/docs/docs/features/edit/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Edit", + "position": 3 +} diff --git a/docs/docs/edit/how-it-works.md b/docs/docs/features/edit/how-it-works.mdx similarity index 69% rename from docs/docs/edit/how-it-works.md rename to docs/docs/features/edit/how-it-works.mdx index e9ff3bbb1..4c4748a6d 100644 --- a/docs/docs/edit/how-it-works.md +++ b/docs/docs/features/edit/how-it-works.mdx @@ -1,8 +1,7 @@ --- -title: How Edit works -sidebar_position: 4 -description: How it works -keywords: [edit, cmd l, works] +title: How Edit Works +description: Understanding Continue's edit functionality and in-place code modification +keywords: [edit, AI, code modification, how it works, diff] --- Using the highlighted code, the contents of the current file containing your highlight, and your input instructions, we prompt the model to edit the code according to your instructions. No other additional context is provided to the model. @@ -11,4 +10,4 @@ The model response is then streamed directly back to the highlighted range in yo If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes. -If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](../troubleshooting.mdx#check-the-logs). +If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](/troubleshooting#check-the-logs). diff --git a/docs/docs/edit/how-to-use-it.md b/docs/docs/features/edit/quick-start.mdx similarity index 86% rename from docs/docs/edit/how-to-use-it.md rename to docs/docs/features/edit/quick-start.mdx index 84b4acb2c..93807c7b9 100644 --- a/docs/docs/edit/how-to-use-it.md +++ b/docs/docs/features/edit/quick-start.mdx @@ -1,9 +1,7 @@ --- -title: Edit -sidebar_position: 1 -sidebar_label: How to use it -description: How to use Edit -keywords: [edit, cmd l, use] +title: Quick Start +description: Get started with Continue's edit feature for in-place code modifications +keywords: [edit, quick start, code modification, in-place editing] --- ![edit](/img/edit.gif) @@ -24,7 +22,7 @@ Highlight the block of code you would like to modify and press cmd/ctrl - [Chat](../chat/how-to-use-it.md#how-to-use-it) makes it easy to ask for help from an LLM without needing to leave the IDE + [Chat](../features/chat/quick-start) makes it easy to ask for help from an LLM without needing to leave the IDE ![chat](/img/chat.gif) - Learn more about [Chat](../chat/how-to-use-it.md#how-to-use-it) + Learn more about [Chat](../features/chat/quick-start) - [Autocomplete](../autocomplete/how-to-use-it.md#how-to-use-it) provides inline code suggestions as you type + [Autocomplete](../features/autocomplete/quick-start) provides inline code suggestions as you type ![autocomplete](/img/autocomplete.gif) - Learn more about [Autocomplete](../autocomplete/how-to-use-it.md#how-to-use-it) + Learn more about [Autocomplete](../features/autocomplete/quick-start) -[Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file +[Edit](../features/edit/quick-start) is a convenient way to modify code without leaving your current file ![edit](/img/edit.gif) {" "} + - Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it) + Learn more about [Edit](../features/edit/quick-start) - [Agent](../agent/how-to-use-it.md#how-to-use-it) equips the Chat model with the tools needed to handle a wide range of coding tasks + [Agent](../features/agent/quick-start) equips the Chat model with the tools needed to handle a wide range of coding tasks ![agent](/img/agent.gif) - Learn more about [Agent](../agent/how-to-use-it.md#how-to-use-it) + Learn more about [Agent](../features/agent/quick-start) diff --git a/docs/docs/getting-started/_category_.json b/docs/docs/getting-started/_category_.json new file mode 100644 index 000000000..3562d433d --- /dev/null +++ b/docs/docs/getting-started/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Getting Started", + "position": 1 +} diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index b62dbacd8..65dda1045 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -4,7 +4,15 @@ description: The open-source AI code assistant for developers keywords: [install, installation, getting started, vs code, jetbrains] --- -## VS Code +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +Get Continue installed in your favorite IDE in just a few steps. + + + + +## Install in VS Code 1. Click `Install` on the [Continue extension page in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue) 2. This will open the Continue extension page in VS Code, where you will need to click `Install` again @@ -14,10 +22,13 @@ keywords: [install, installation, getting started, vs code, jetbrains] ![move-to-right-sidebar](/img/move-to-right-sidebar.gif) :::info[Troubleshooting] -If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs) +If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs) ::: -## JetBrains + + + +## Install in JetBrains 1. Open your JetBrains IDE and open **Settings** using Ctrl + Alt + S 2. Select **Plugins** on the sidebar and search for "Continue" in the marketplace @@ -27,9 +38,12 @@ If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx ![jetbrains-getting-started.png](/img/jetbrains-getting-started.png) :::info[Troubleshooting] -If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ) +If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ) ::: + + + ## Signing in Click "Get started" to sign in to the hub and start using assistants. diff --git a/docs/docs/guides/00-overview.mdx b/docs/docs/guides/00-overview.mdx new file mode 100644 index 000000000..6392446b8 --- /dev/null +++ b/docs/docs/guides/00-overview.mdx @@ -0,0 +1,23 @@ +--- +title: Overview +description: Comprehensive guides and tutorials for using Continue effectively +--- + +# Continue Guides + +## Model & Setup Guides + +- [Using Ollama with Continue](./ollama-guide) - Local AI development with Ollama +- [Setting up Codestral](./set-up-codestral) - Configure Mistral's Codestral model +- [How to Self-Host a Model](./how-to-self-host-a-model) - Self-hosting AI models +- [Running Continue Without Internet](./running-continue-without-internet) - Offline development setup +- [Llama 3.1 Setup](./llama3.1) - Getting started with Llama 3.1 + +## Advanced Tutorials + +- [Build Your Own Context Provider](./build-your-own-context-provider) - Create custom context providers +- [Custom Code RAG](./custom-code-rag) - Implement custom retrieval-augmented generation + +## Contributing + +Have a guide idea or found an issue? We welcome contributions! Check our [GitHub repository](https://github.com/continuedev/continue) to get involved. diff --git a/docs/docs/guides/_category_.json b/docs/docs/guides/_category_.json new file mode 100644 index 000000000..02f522206 --- /dev/null +++ b/docs/docs/guides/_category_.json @@ -0,0 +1,9 @@ +{ + "label": "Guides", + "position": 6, + "link": { + "type": "generated-index", + "title": "Guides", + "description": "Learn how to use Continue with comprehensive guides and tutorials" + } +} diff --git a/docs/docs/customize/tutorials/assets/image.png b/docs/docs/guides/assets/image.png similarity index 100% rename from docs/docs/customize/tutorials/assets/image.png rename to docs/docs/guides/assets/image.png diff --git a/docs/docs/customize/tutorials/build-your-own-context-provider.mdx b/docs/docs/guides/build-your-own-context-provider.mdx similarity index 98% rename from docs/docs/customize/tutorials/build-your-own-context-provider.mdx rename to docs/docs/guides/build-your-own-context-provider.mdx index d8bdc39be..ba32eae0f 100644 --- a/docs/docs/customize/tutorials/build-your-own-context-provider.mdx +++ b/docs/docs/guides/build-your-own-context-provider.mdx @@ -1,5 +1,5 @@ --- -title: Build your own context provider +title: Build Your Own Context Provider --- import TabItem from "@theme/TabItem"; @@ -60,7 +60,7 @@ The `"options"` property can be used to send additional parameters to your endpo ``` :::info -The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../context-providers.mdx#model-context-protocol), and [Prompts](../deep-dives/prompts.md) where possible. +The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../customization/mcp-tools.mdx), and [Prompts](../advanced/deep-dives/prompts.md) where possible. ::: ## Using CustomContextProvider diff --git a/docs/docs/customize/tutorials/custom-code-rag.mdx b/docs/docs/guides/custom-code-rag.mdx similarity index 93% rename from docs/docs/customize/tutorials/custom-code-rag.mdx rename to docs/docs/guides/custom-code-rag.mdx index 145c38f10..c5e53c045 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.mdx +++ b/docs/docs/guides/custom-code-rag.mdx @@ -1,9 +1,14 @@ +--- +title: Custom Code RAG +description: Build your own vector database and custom retrieval-augmented generation system +--- + import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; # Custom code RAG -While Continue comes with [@Codebase](../deep-dives/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. +While Continue comes with [@Codebase](../advanced/context/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. ## Step 1: Choose an embeddings model diff --git a/docs/docs/customize/tutorials/how-to-self-host-a-model.mdx b/docs/docs/guides/how-to-self-host-a-model.mdx similarity index 99% rename from docs/docs/customize/tutorials/how-to-self-host-a-model.mdx rename to docs/docs/guides/how-to-self-host-a-model.mdx index ab3c9b1b5..c84a5646d 100644 --- a/docs/docs/customize/tutorials/how-to-self-host-a-model.mdx +++ b/docs/docs/guides/how-to-self-host-a-model.mdx @@ -1,5 +1,5 @@ --- -title: How to self-host a model +title: How to Self-Host a Model --- import TabItem from "@theme/TabItem"; diff --git a/docs/docs/guides/integration/_category_.json b/docs/docs/guides/integration/_category_.json new file mode 100644 index 000000000..dee10af30 --- /dev/null +++ b/docs/docs/guides/integration/_category_.json @@ -0,0 +1,9 @@ +{ + "label": "Integration Guides", + "position": 4, + "link": { + "type": "generated-index", + "title": "Integration Guides", + "description": "Integrate Continue with your tools and workflows" + } +} diff --git a/docs/docs/guides/languages/_category_.json b/docs/docs/guides/languages/_category_.json new file mode 100644 index 000000000..4933abb20 --- /dev/null +++ b/docs/docs/guides/languages/_category_.json @@ -0,0 +1,9 @@ +{ + "label": "Language Guides", + "position": 3, + "link": { + "type": "generated-index", + "title": "Language-Specific Guides", + "description": "Learn how to use Continue with different programming languages" + } +} diff --git a/docs/docs/customize/tutorials/llama3.1.mdx b/docs/docs/guides/llama3.1.mdx similarity index 98% rename from docs/docs/customize/tutorials/llama3.1.mdx rename to docs/docs/guides/llama3.1.mdx index 6be204e99..f070e2022 100644 --- a/docs/docs/customize/tutorials/llama3.1.mdx +++ b/docs/docs/guides/llama3.1.mdx @@ -9,7 +9,7 @@ import Tabs from "@theme/Tabs"; Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal. -If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](../overview.md). +If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](../customization/00-overview.mdx). Below we share some of the easiest ways to get up and running, depending on your use-case. diff --git a/docs/docs/guides/ollama-guide.mdx b/docs/docs/guides/ollama-guide.mdx new file mode 100644 index 000000000..b28d73fa1 --- /dev/null +++ b/docs/docs/guides/ollama-guide.mdx @@ -0,0 +1,147 @@ +--- +title: Using Ollama with Continue - A Developer's Guide +description: Complete guide to setting up and using Ollama with Continue for local AI development +--- + +# Using Ollama with Continue: A Developer's Guide + +This comprehensive guide will walk you through setting up Ollama with Continue for powerful local AI development. Ollama allows you to run large language models locally on your machine, providing privacy, control, and offline capabilities for AI-assisted coding. + +## Prerequisites + +Before getting started, ensure your system meets these requirements: + +- Operating System: macOS, Linux, or Windows +- RAM: Minimum 8GB (16GB+ recommended) +- Storage: At least 10GB free space +- Continue extension installed + +## Installation Steps + +### Step 1: Install Ollama + +Choose the installation method for your operating system: + +```bash +# macOS +brew install ollama + +# Linux +curl -fsSL https://ollama.ai/install.sh | sh + +# Windows +# Download from ollama.ai +``` + +### Step 2: Download Models + +After installing Ollama, download the models you want to use. Here are some popular options: + +```bash +# Popular models for development +ollama pull llama2 +ollama pull codellama +ollama pull mistral +``` + +## Configuration + +Configure Continue to work with your local Ollama instance: + +### Continue Configuration + +```json +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2", + "apiBase": "http://localhost:11434" + } + ] +} +``` + +### Advanced Settings + +For optimal performance, consider these advanced configuration options: + +- Memory optimization +- GPU acceleration +- Custom model parameters +- Performance tuning + +## Best Practices + +### Model Selection + +Choose models based on your specific needs: + +1. **Code Generation**: Use CodeLlama or Mistral +2. **Chat**: Llama2 or Mistral +3. **Specialized Tasks**: Domain-specific models + +### Performance Optimization + +To get the best performance from Ollama: + +- Monitor system resources +- Adjust context window size +- Use appropriate model sizes +- Enable GPU acceleration when available + +## Troubleshooting + +### Common Issues + +Here are solutions to common problems you might encounter: + +#### Connection Problems + +- Check Ollama service status +- Verify port availability +- Review firewall settings + +#### Performance Issues + +- Insufficient RAM +- Model too large for system +- GPU compatibility + +### Solutions + +Try these solutions in order: + +1. Restart Ollama service +2. Clear model cache +3. Update to latest version +4. Check system requirements + +## Example Workflows + +### Code Generation + +```python +# Example: Generate a FastAPI endpoint +def create_user_endpoint(): + # Continue will help generate the implementation + pass +``` + +### Code Review + +Use Continue with Ollama to: + +- Analyze code quality +- Suggest improvements +- Identify potential bugs +- Generate documentation + +## Conclusion + +Ollama with Continue provides a powerful local development environment for AI-assisted coding. You now have complete control over your AI models, ensuring privacy and enabling offline development workflows. + +--- + +_This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly._ diff --git a/docs/docs/customize/tutorials/running-continue-without-internet.md b/docs/docs/guides/running-continue-without-internet.mdx similarity index 68% rename from docs/docs/customize/tutorials/running-continue-without-internet.md rename to docs/docs/guides/running-continue-without-internet.mdx index 2ba683909..0591373ed 100644 --- a/docs/docs/customize/tutorials/running-continue-without-internet.md +++ b/docs/docs/guides/running-continue-without-internet.mdx @@ -7,6 +7,6 @@ keywords: [no internet, air-gapped, local model] Continue can be run even on an air-gapped computer if you use a local model. Only a few adjustments are required for this to work. 1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). -2. Open the [User Settings Page](../deep-dives/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../../telemetry.md). -3. Also in `config.json`, set the default model to a local model. You can available options [here](../model-providers/). +2. Open the [User Settings Page](../advanced/deep-dives/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../advanced/telemetry.mdx). +3. Also in `config.json`, set the default model to a local model. You can available options [here](../advanced/model-providers/top-level/openai.mdx). 4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect. diff --git a/docs/docs/customize/tutorials/set-up-codestral.mdx b/docs/docs/guides/set-up-codestral.mdx similarity index 92% rename from docs/docs/customize/tutorials/set-up-codestral.mdx rename to docs/docs/guides/set-up-codestral.mdx index e613acb5c..b0e6fbaa8 100644 --- a/docs/docs/customize/tutorials/set-up-codestral.mdx +++ b/docs/docs/guides/set-up-codestral.mdx @@ -1,5 +1,5 @@ --- -title: How to set up Codestral +title: How to Set Up Codestral description: How to set up Codestral keywords: [codestral, mistral, model setup] --- @@ -7,11 +7,11 @@ keywords: [codestral, mistral, model setup] import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; -![mistral x continue](../../../static/img/mistral-x-continue.png) +![mistral x continue](/img/mistral-x-continue.png) **Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:** -1. Install the Continue VS Code or JetBrains extension following the instructions [here](../../getting-started/install.md) +1. Install the Continue VS Code or JetBrains extension following the instructions [here](../getting-started/install.md) 2. Click on the gear icon in the bottom right corner of the Continue window to open `~/.continue/config.json` (MacOS) / `%userprofile%\.continue\config.json` (Windows) diff --git a/docs/docs/hub/introduction.md b/docs/docs/hub/00-introduction.mdx similarity index 70% rename from docs/docs/hub/introduction.md rename to docs/docs/hub/00-introduction.mdx index 88cca05f0..2b62257f0 100644 --- a/docs/docs/hub/introduction.md +++ b/docs/docs/hub/00-introduction.mdx @@ -1,15 +1,14 @@ --- title: Introduction -description: Introduction -keywords: [continue, hub, introduction] -sidebar_label: Introduction +description: Introduction to Continue Hub for creating and managing AI assistants +keywords: [continue, hub, introduction, assistants, blocks] --- # Introduction ![Continue Hub](/img/hub/models-page.png) -[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/intro.md). +[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/00-intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/00-intro.md). Assistants can contain several types of blocks, including [models](./blocks/block-types.md#models), [rules](./blocks/block-types.md#rules), [context providers](./blocks/block-types.md#context), [prompts](./blocks/block-types.md#prompts), [docs](./blocks/block-types.md#docs), [data destinations](./blocks/block-types.md#data), and [MCP servers](./blocks/block-types.md#mcp-servers). diff --git a/docs/docs/hub/assistants/intro.md b/docs/docs/hub/assistants/00-intro.md similarity index 82% rename from docs/docs/hub/assistants/intro.md rename to docs/docs/hub/assistants/00-intro.md index 716e8f0d8..2625ca328 100644 --- a/docs/docs/hub/assistants/intro.md +++ b/docs/docs/hub/assistants/00-intro.md @@ -7,7 +7,7 @@ keywords: [assistants, overview, customization] # Introduction to Assistants -Custom AI code assistants are configurations of building [blocks](../blocks/intro.md) that enable a coding experience tailored to your specific use cases. +Custom AI code assistants are configurations of building blocks that enable a coding experience tailored to your specific use cases. `config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant. diff --git a/docs/docs/hub/assistants/_category_.json b/docs/docs/hub/assistants/_category_.json new file mode 100644 index 000000000..f59f49ec2 --- /dev/null +++ b/docs/docs/hub/assistants/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Assistants", + "position": 2 +} diff --git a/docs/docs/hub/assistants/create-an-assistant.md b/docs/docs/hub/assistants/create-an-assistant.md index 62fdf666c..189904324 100644 --- a/docs/docs/hub/assistants/create-an-assistant.md +++ b/docs/docs/hub/assistants/create-an-assistant.md @@ -1,6 +1,6 @@ --- -title: Create an assistant -sidebar_label: Create an assistant +title: Create an Assistant +sidebar_label: Create an Assistant description: How to create a custom AI code assistant keywords: [assistants, creation, guide] --- @@ -32,6 +32,6 @@ Choose a name, slug, description, and icon for your assistant. The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar. -Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details. +Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details. ![New assistant YAML](/img/hub/assistant-create-yaml.png) diff --git a/docs/docs/hub/assistants/use-an-assistant.md b/docs/docs/hub/assistants/use-an-assistant.md index b6f806e9e..9f0d31845 100644 --- a/docs/docs/hub/assistants/use-an-assistant.md +++ b/docs/docs/hub/assistants/use-an-assistant.md @@ -1,6 +1,6 @@ --- -title: Use an assistant -sidebar_label: Use an assistant +title: Use an Assistant +sidebar_label: Use an Assistant description: Guide to using assistants in your Continue workflow. keywords: [assistants, usage, use, guide] --- diff --git a/docs/docs/hub/blocks/intro.md b/docs/docs/hub/blocks/00-intro.md similarity index 75% rename from docs/docs/hub/blocks/intro.md rename to docs/docs/hub/blocks/00-intro.md index 69d0f9224..204d8dd3e 100644 --- a/docs/docs/hub/blocks/intro.md +++ b/docs/docs/hub/blocks/00-intro.md @@ -9,4 +9,4 @@ keywords: [blocks, introduction, basics] Blocks are the components you use to build a custom AI code assistant. These include [models](./block-types.md#models), [rules](./block-types.md#rules), [context providers](./block-types.md#context), [prompts](./block-types.md#prompts), [docs](./block-types.md#docs), [data destinations](./block-types.md#data), and [MCP servers](./block-types.md#mcp-servers). -Blocks follow the [`config.yaml`](../../reference.md) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant. +Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant. diff --git a/docs/docs/hub/blocks/_category_.json b/docs/docs/hub/blocks/_category_.json new file mode 100644 index 000000000..aa270a4c4 --- /dev/null +++ b/docs/docs/hub/blocks/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Blocks", + "position": 3 +} diff --git a/docs/docs/hub/blocks/block-types.md b/docs/docs/hub/blocks/block-types.md index 127bef59e..49181d975 100644 --- a/docs/docs/hub/blocks/block-types.md +++ b/docs/docs/hub/blocks/block-types.md @@ -11,40 +11,40 @@ sidebar_label: Types Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the open-source IDE extension like Chat, Autocomplete, Edit, Embed, Rerank, etc. You can explore available models on [the hub](https://hub.continue.dev/explore/models). -Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles). View [`models`](../../reference.md#models) in the YAML Reference for more details. +Continue supports [many model providers](../../advanced/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../advanced/model-roles/00-intro.mdx). View [`models`](/reference#models) in the YAML Reference for more details. ## Context Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and GitHub issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub. -Learn more about context providers [here](../../reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../reference.md#context). +Learn more about context providers [here](/reference#context), and check out [this guide](../../guides/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](/reference#context). ## Docs Docs are blocks that point to documentation sites, which will be indexed locally and then can be referenced as context using @Docs in Chat. [Explore docs](https://hub.continue.dev/explore/docs) on the hub. -Learn more in the [@Docs deep dive](../../customize/deep-dives/docs.mdx), and view [`docs`](../../reference.md#docs) in the YAML Reference for more details. +Learn more in the [@Docs deep dive](../../advanced/context/documentation.mdx), and view [`docs`](/reference#docs) in the YAML Reference for more details. ## MCP Servers Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub. -Learn more in the [MCP deep dive](../../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../../reference.md#mcpservers) in the YAML Reference for more details. +Learn more in the [MCP deep dive](../../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. ## Rules Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub. -Learn more in the [rules deep dive](../../customize/deep-dives/rules.mdx), and view [`rules`](../../reference.md#rules) in the YAML Reference for more details. +Learn more in the [rules deep dive](../../advanced/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details. ## Prompts Prompts blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub. -Prompt blocks have the same syntax as [prompt files](../../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](../../reference.md#prompts). +Prompt blocks have the same syntax as [prompt files](../../advanced/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts). ## Data -Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](../../customize/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data). +Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](../../advanced/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data). -Data destinations are configured in the [`data`](../../reference.md#data) section of `config.yaml`. +Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`. diff --git a/docs/docs/hub/blocks/create-a-block.md b/docs/docs/hub/blocks/create-a-block.md index fcf12acfd..e1a76d581 100644 --- a/docs/docs/hub/blocks/create-a-block.md +++ b/docs/docs/hub/blocks/create-a-block.md @@ -1,6 +1,6 @@ --- -title: Create a block -sidebar_label: Create a block +title: Create a Block +sidebar_label: Create a Block description: Guide to creating blocks keywords: [blocks, creation, create, use] --- @@ -23,7 +23,7 @@ To create a block from scratch, you will need to click “New block” in the to ![New block button](/img/hub/block-new-button.png) -After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](../../reference.md). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details. +After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](/reference). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details. ![New block page](/img/hub/block-new-page.png) diff --git a/docs/docs/hub/blocks/use-a-block.md b/docs/docs/hub/blocks/use-a-block.md index 0f13704a1..fe66a350e 100644 --- a/docs/docs/hub/blocks/use-a-block.md +++ b/docs/docs/hub/blocks/use-a-block.md @@ -1,5 +1,5 @@ --- -title: Use a block +title: Use a Block description: Guide to using blocks keywords: [blocks, usage, use] --- diff --git a/docs/docs/hub/governance/_category_.json b/docs/docs/hub/governance/_category_.json new file mode 100644 index 000000000..1b5253115 --- /dev/null +++ b/docs/docs/hub/governance/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Governance", + "position": 4 +} diff --git a/docs/docs/hub/secrets/_category_.json b/docs/docs/hub/secrets/_category_.json new file mode 100644 index 000000000..3b1e68a3f --- /dev/null +++ b/docs/docs/hub/secrets/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Secrets", + "position": 5 +} diff --git a/docs/docs/hub/sharing.md b/docs/docs/hub/sharing.md new file mode 100644 index 000000000..7d443abe4 --- /dev/null +++ b/docs/docs/hub/sharing.md @@ -0,0 +1,38 @@ +--- +title: Sharing +description: Discover, share, and collaborate with the Continue community +keywords: [hub, sharing, community, assistants, collaboration] +sidebar_label: Sharing +--- + +# Sharing + +Connect with the Continue community to discover, share, and collaborate on AI development tools. + +## Community + +Join thousands of developers using Continue. Share experiences, get help, and contribute to the ecosystem. + +[Join our Discord Community →](https://discord.gg/continue) + +## Publishing + +Share your custom assistants, blocks, and configurations with the Continue community. + +[Visit the Hub →](https://hub.continue.dev) + +## Browse Assistants + +Explore assistants created by the community for specific use cases and workflows. + +[Browse Assistants →](https://hub.continue.dev) + +## Using Assistants + +Learn how to discover, install, and use community-created assistants in your projects. + +[Learn About Assistants →](./assistants/00-intro.md) + +--- + +The Continue Hub makes it easy to leverage community knowledge and share your innovations with fellow developers. diff --git a/docs/docs/hub/source-control.md b/docs/docs/hub/source-control.md index 9230c487b..596129f38 100644 --- a/docs/docs/hub/source-control.md +++ b/docs/docs/hub/source-control.md @@ -40,7 +40,7 @@ This is the only configuration necessary, but you can view the full list of opti ### 4. Commit and push -Add the [YAML for your assistants and blocks](../reference.md) to the appropriate directories: +Add the [YAML for your assistants and blocks](/reference) to the appropriate directories: - `assistants/public` for public assistants - `assistants/private` for private (visible only within your organization) assistants diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md index e8bd4269e..7c9ebb7d8 100644 --- a/docs/docs/introduction.md +++ b/docs/docs/introduction.md @@ -15,11 +15,11 @@ keywords: ] --- -![Continue Logo](../static/img/intro.png) +![Continue Logo](/img/intro.png) **Continue enables developers to create, share, and use custom AI code assistants with our open-source [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) extensions and [hub of models, rules, prompts, docs, and other building blocks](https://hub.continue.dev)** -- [Chat](chat/how-to-use-it) to understand and iterate on code in the sidebar -- [Autocomplete](autocomplete/how-to-use-it) to receive inline code suggestions as you type -- [Edit](edit/how-to-use-it) to modify code without leaving your current file -- [Agent](agent/how-to-use-it) to make more substantial changes to your codebase +- [Chat](features/chat/quick-start) to understand and iterate on code in the sidebar +- [Autocomplete](features/autocomplete/quick-start) to receive inline code suggestions as you type +- [Edit](features/edit/quick-start) to modify code without leaving your current file +- [Agent](features/agent/quick-start) to make more substantial changes to your codebase diff --git a/docs/docs/reference.md b/docs/docs/reference.mdx similarity index 95% rename from docs/docs/reference.md rename to docs/docs/reference.mdx index 9ff1077f9..72c84d792 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.mdx @@ -1,5 +1,5 @@ --- -title: Config YAML Reference +title: "config.yaml Reference" description: Reference for the Continue configuration YAML file keywords: [config, yaml, configuration, customize, customization] --- @@ -19,7 +19,7 @@ from [the Hub](https://hub.continue.dev/explore/assistants) or locally - in your workspace in a `/.continue/assistants` folder, with the same naming convention :::info -Config YAML replaces [`config.json`](./json-reference.md), which is deprecated. View the **[Migration Guide](./yaml-migration.md)**. +Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/advanced/yaml-migration)**. ::: An assistant is made up of: @@ -191,9 +191,9 @@ chat, editing, and summarizing. provider and model. Supported capabilities include `tool_use` and `image_input`. - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. - `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are - `chat`, [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [ - `apply`](./customize/model-roles/apply.mdx#prompt-templating) and [ - `autocomplete`](./customize/model-roles/autocomplete.md#prompt-templating). The `chat` property must be a + `chat`, [`edit`](/advanced/model-roles/edit#prompt-templating), [ + `apply`](/advanced/model-roles/apply#prompt-templating) and [ + `autocomplete`](/advanced/model-roles/autocomplete#prompt-templating). The `chat` property must be a valid template name, such as `llama3` or `anthropic`. - `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. @@ -263,7 +263,7 @@ models: The `context` section defines context providers, which supply additional information or context to the language models. Each context provider can be configured with specific parameters. -More information about usage/params for each context provider can be found [here](/customize/context-providers.mdx) +More information about usage/params for each context provider can be found [here](/advanced/custom-providers) **Properties:** @@ -295,8 +295,8 @@ context: ### `rules` List of rules that the LLM should follow. These are concatenated into the system message for -all [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Agent](./agent/how-to-use-it.md) requests. -See the [rules deep dive](./customize/deep-dives/rules.mdx) for details. +all [Chat](../features/chat/quick-start), [Edit](../features/edit/quick-start), and [Agent](../features/agent/quick-start) requests. +See the [rules deep dive](../customization/rules) for details. Explicit rules can either be simple text or an object with the following properties: @@ -400,7 +400,7 @@ mcpServers: ### `data` -Destinations to which [development data](./customize/deep-dives/development-data.md) will be sent. +Destinations to which [development data](/advanced/deep-dives/development-data) will be sent. **Properties:** diff --git a/docs/docs/troubleshooting.mdx b/docs/docs/troubleshooting.mdx index cc8f90592..994e56e10 100644 --- a/docs/docs/troubleshooting.mdx +++ b/docs/docs/troubleshooting.mdx @@ -25,9 +25,8 @@ To solve many problems, the first step is reading the logs to find the relevant In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose". ::: -1. cmd + shift + P for MacOS or ctrl + - shift - + P for Windows +1. cmd + shift + P for MacOS or ctrl + + shift + P for Windows 2. Search for and then select "Developer: Toggle Developer Tools" 3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/) 4. Select the `Console` tab @@ -42,7 +41,7 @@ To view prompt logs/analytics, you can enable the Continue Console. 3. Reload the window 4. Open the Continue Console by using the command palette (cmd/ctrl + shift + P) and searching for "Continue: Focus on Continue Console View" -![Continue Console](../static/img/continue-console.png) +![Continue Console](/img/continue-console.png) ### JetBrains @@ -56,7 +55,7 @@ Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below. -![Pre-Release](../static/img/prerelease.png) +![Pre-Release](/img/prerelease.png) ### JetBrains @@ -166,7 +165,7 @@ For more details about this requirement, see the [LanceDB issue #2195](https://g Continue stores it's data in the `~/.continue` directory (%USERPROFILE%\.continue` on Windows). -If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall. +If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall. ## Still having trouble? diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 7a3c3a8d9..2ce94b2c6 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -58,9 +58,12 @@ const config = { theme: { customCss: require.resolve("./src/css/custom.css"), }, - gtag: { - trackingID: "G-M3JWW8N2XQ", - }, + ...(process.env.NODE_ENV === "production" && { + gtag: { + trackingID: "G-M3JWW8N2XQ", + anonymizeIP: true, + }, + }), }), ], ], @@ -96,29 +99,18 @@ const config = { type: "docSidebar", sidebarId: "docsSidebar", position: "left", - label: "User Guide", + label: "Documentation", href: "/", }, { - type: "docSidebar", - sidebarId: "hubSidebar", + to: "/guides/overview", + label: "Guides", position: "left", - label: "Hub", - href: "/hub/introduction", }, { - type: "docSidebar", - sidebarId: "customizingSidebar", + to: "https://hub.continue.dev", + label: "Explore", position: "left", - label: "Customize", - href: "/customize/overview", - }, - { - type: "docSidebar", - sidebarId: "customizingSidebar", - position: "left", - label: "Reference", - href: "/reference", }, { @@ -211,22 +203,27 @@ const config = { enableInDevelopment: false, }, ], - [ - "docusaurus-plugin-llms-txt", - { - // Optional configuration - outputPath: "static/llms.txt", - includePatterns: ["docs/**"], - excludePatterns: ["**/node_modules/**"], - }, - ], + // Custom plugin for better structured llms.txt + require.resolve("./plugins/custom-llms-txt.js"), + // Keeping the original plugin commented out for now + // [ + // "docusaurus-plugin-llms-txt", + // { + // title: "Continue Documentation", + // description: "Documentation for Continue - the open-source AI code assistant for developers", + // // Optional configuration + // outputPath: "static/llms.txt", + // includePatterns: ["docs/**"], + // excludePatterns: ["**/node_modules/**"], + // }, + // ], [ "@docusaurus/plugin-client-redirects", { redirects: [ { to: "/hub/introduction", - from: "/hub", + from: ["/hub"], }, { to: "/hub/governance/org-permissions", @@ -245,11 +242,11 @@ const config = { from: "/hub/blocks", }, { - to: "/customize/overview", + to: "/customization/overview", from: ["/customize", "/customization"], }, { - to: "/customize/deep-dives/mcp", + to: "/customization/mcp-tools", from: "/customize/tools", }, { @@ -257,27 +254,27 @@ const config = { from: ["/install/vscode", "/install/jetbrains"], }, { - to: "/customize/deep-dives/settings", + to: "/advanced/deep-dives/settings", from: "/customize/settings", }, { - to: "/customize/model-roles", + to: "/advanced/model-roles/intro", from: ["/customize/model-types", "/setup/overview"], }, { - to: "/customize/model-roles/embeddings", + to: "/advanced/model-roles/embeddings", from: "/customize/model-types/embeddings", }, { - to: "/customize/model-roles/autocomplete", + to: "/advanced/model-roles/autocomplete", from: "/customize/model-types/autocomplete", }, { - to: "/customize/model-roles/chat", + to: "/advanced/model-roles/chat", from: "/customize/model-types/chat", }, { - to: "/customize/model-roles/reranking", + to: "/advanced/model-roles/reranking", from: "/customize/model-types/reranking", }, { @@ -291,30 +288,31 @@ const config = { ], }, { - to: "/customize/model-providers", + to: "/advanced/model-providers/anthropic", from: ["/setup/select-provider", "/setup/model-providers"], }, { - to: "/customize/deep-dives/codebase", + to: "/advanced/context/codebase", from: [ "/walkthroughs/codebase-embeddings", "/features/codebase-embeddings", + "/advanced/deep-dives/codebase", ], }, { - to: "/customize/deep-dives/autocomplete", + to: "/advanced/deep-dives/autocomplete", from: [ "/walkthroughs/tab-autocomplete", "/features/tab-autocomplete", ], }, { - to: "/customize/deep-dives/prompts", + to: "/advanced/deep-dives/prompts", from: ["/walkthroughs/prompt-files", "/features/prompt-files"], }, // TODO - actions redirects { - to: "/customize/deep-dives/slash-commands", + to: "/advanced/deep-dives/slash-commands", from: [ "/actions/how-to-use-it", "/actions/how-to-customize", @@ -328,11 +326,11 @@ const config = { }, { - to: "/customize/deep-dives/vscode-actions", + to: "/advanced/deep-dives/vscode-actions", from: ["/walkthroughs/quick-actions"], }, { - to: "/customize/changelog", + to: "/reference", from: "/changelog", }, { @@ -344,178 +342,203 @@ const config = { ], }, { - to: "/customize/context-providers", - from: ["/customization/context-providers"], + to: "/advanced/custom-providers", + from: [ + "/customization/context-providers", + "/advanced/context-integration/custom-providers", + "/advanced/context/custom-providers", + ], }, { - to: "/customize/deep-dives/development-data", + to: "/advanced/deep-dives/development-data", from: ["/development-data", "/customize/development-data"], }, { - to: "/customize/deep-dives/docs", - from: "/features/talk-to-your-docs", + to: "/advanced/context/documentation", + from: [ + "/features/talk-to-your-docs", + "/advanced/context-integration/documentation", + "/advanced/deep-dives/docs", + ], }, { - to: "/customize/model-providers/anthropic", + to: "/advanced/model-providers/anthropic", from: "/reference/Model Providers/anthropicllm", }, { - to: "/customize/model-providers/azure", + to: "/advanced/model-providers/azure", from: "/reference/Model Providers/azure", }, { - to: "/customize/model-providers/bedrock", + to: "/advanced/model-providers/bedrock", from: "/reference/Model Providers/bedrock", }, { - to: "/customize/model-providers/deepseek", + to: "/advanced/model-providers/deepseek", from: "/reference/Model Providers/deepseek", }, { - to: "/customize/model-providers", + to: "/advanced/model-providers/anthropic", from: "/reference/Model Providers/freetrial", }, { - to: "/customize/model-providers/gemini", + to: "/advanced/model-providers/gemini", from: "/reference/Model Providers/geminiapi", }, { - to: "/customize/model-providers/mistral", + to: "/advanced/model-providers/mistral", from: "/reference/Model Providers/mistral", }, { - to: "/customize/model-providers/ollama", + to: "/advanced/model-providers/ollama", from: "/reference/Model Providers/ollama", }, { - to: "/customize/model-providers/openai", + to: "/advanced/model-providers/openai", from: "/reference/Model Providers/openai", }, - { - 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", + to: "/advanced/model-providers/more/cloudflare", from: "/reference/Model Providers/cloudflare", }, { - to: "/customize/model-providers/more/cohere", + to: "/advanced/model-providers/more/cohere", from: "/reference/Model Providers/cohere", }, { - to: "/customize/model-providers/more/deepinfra", + to: "/advanced/model-providers/more/deepinfra", from: "/reference/Model Providers/deepinfra", }, { - to: "/customize/model-providers/more/flowise", + to: "/advanced/model-providers/more/flowise", from: "/reference/Model Providers/flowise", }, { - to: "/customize/model-providers/more/huggingfaceinferenceapi", + to: "/advanced/model-providers/llamastack", + from: "/advanced/model-providers/more/llamastack", + }, + { + to: "/advanced/model-providers/more/huggingfaceinferenceapi", from: "/reference/Model Providers/huggingfaceinferenceapi", }, { - to: "/customize/model-providers/more/ipex_llm", + to: "/advanced/model-providers/more/ipex_llm", from: "/reference/Model Providers/ipex_llm", }, { - to: "/customize/model-providers/more/kindo", + to: "/advanced/model-providers/more/kindo", from: "/reference/Model Providers/kindo", }, { - to: "/customize/model-providers/more/llamacpp", + to: "/advanced/model-providers/more/llamacpp", from: "/reference/Model Providers/llamacpp", }, { - to: "/customize/model-providers/more/llamafile", + to: "/advanced/model-providers/more/llamafile", from: "/reference/Model Providers/llamafile", }, { - to: "/customize/model-providers/more/lmstudio", + to: "/advanced/model-providers/more/lmstudio", from: "/reference/Model Providers/lmstudio", }, { - to: "/customize/model-providers/more/msty", + to: "/advanced/model-providers/more/msty", from: "/reference/Model Providers/msty", }, { - to: "/customize/model-providers/more/openrouter", + to: "/advanced/model-providers/more/openrouter", from: "/reference/Model Providers/openrouter", }, { - to: "/customize/model-providers/more/replicatellm", + to: "/advanced/model-providers/more/replicatellm", from: "/reference/Model Providers/replicatellm", }, { - to: "/customize/model-providers/more/sagemaker", + to: "/advanced/model-providers/more/sagemaker", from: "/reference/Model Providers/sagemaker", }, { - to: "/customize/model-providers/more/textgenwebui", + to: "/advanced/model-providers/more/textgenwebui", from: "/reference/Model Providers/textgenwebui", }, { - to: "/customize/model-providers/more/together", + to: "/advanced/model-providers/more/together", from: "/reference/Model Providers/together", }, { - to: "/customize/model-providers/more/novita", + to: "/advanced/model-providers/more/novita", from: "/reference/Model Providers/novita", }, { - to: "/customize/model-providers/more/vllm", + to: "/advanced/model-providers/more/vllm", from: "/reference/Model Providers/vllm", }, { - to: "/customize/model-providers/more/watsonx", + to: "/advanced/model-providers/more/watsonx", from: "/reference/Model Providers/watsonx", }, { - to: "/customize/model-providers/more/nebius", + to: "/advanced/model-providers/more/nebius", from: "/reference/Model Providers/nebius", }, // Sidebar items that should route directly to a subpage { - to: "/chat/how-to-use-it", - from: "/chat", + to: "/features/chat/quick-start", + from: ["/chat", "/chat/how-to-use-it"], }, { - to: "/agent/how-to-use-it", - from: "/agent", + to: "/features/agent/quick-start", + from: ["/agent", "/agent/how-to-use-it"], }, { - to: "/edit/how-to-use-it", - from: "/edit", + to: "/features/edit/quick-start", + from: ["/edit", "/edit/how-to-use-it"], }, { - to: "/autocomplete/how-to-use-it", - from: "/autocomplete", + to: "/features/autocomplete/quick-start", + from: ["/autocomplete", "/autocomplete/how-to-use-it"], }, { to: "/getting-started/install", from: "/getting-started", }, { - to: "/customize/deep-dives/prompts", + to: "/advanced/deep-dives/prompts", from: "/customize/deep-dives/prompt-files", }, + // Migrated from netlify.toml + { + to: "/features/chat/how-it-works", + from: "/chat/how-it-works", + }, + { + to: "/features/autocomplete/how-it-works", + from: "/autocomplete/how-it-works", + }, + { + to: "/features/edit/how-it-works", + from: "/edit/how-it-works", + }, + { + to: "/features/agent/how-it-works", + from: "/agent/how-it-works", + }, + { + to: "/advanced/telemetry", + from: "/telemetry", + }, + { + to: "/advanced/yaml-migration", + from: "/yaml-migration", + }, + { + to: "/advanced/json-reference", + from: "/json-reference", + }, ], }, ], diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/tutorials/set-up-codestral.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/tutorials/set-up-codestral.md index 583b128a0..9868e2ab2 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/tutorials/set-up-codestral.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/tutorials/set-up-codestral.md @@ -4,7 +4,7 @@ description: 如何设置 Codestral keywords: [codestral, mistral, 模型设置] --- -![mistral x continue](../../../../../../static/img/mistral-x-continue.png) +![mistral x continue](/img/mistral-x-continue.png) **这是一个分步指南,关于如何在 Continue 设置 Codestral ,使用 Mistral AI API :** diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/troubleshooting.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/troubleshooting.md index 4b5dda9ab..8563e32f1 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/troubleshooting.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/troubleshooting.md @@ -48,7 +48,7 @@ Continue VS Code 扩展现在是 beta , JetBrains 扩展现在是 Alpha 。如 我们不断地修复和改进 Continue ,但是最新的修改停留在 "预览" 版大概一周,让我们可以测试它们的稳定性。如果你遇到问题,你可以尝试预览版,通过去 VS Code 的 Continue 扩展页面,并选择 "切换到预览版" ,像下面显示的这样。 -![Pre-Release](../../../../static/img/prerelease.png) +![Pre-Release](/img/prerelease.png) ### JetBrains diff --git a/docs/netlify.toml b/docs/netlify.toml deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/plugins/custom-llms-txt.js b/docs/plugins/custom-llms-txt.js new file mode 100644 index 000000000..30762c9c1 --- /dev/null +++ b/docs/plugins/custom-llms-txt.js @@ -0,0 +1,130 @@ +const fs = require("fs"); +const path = require("path"); + +function getAllHtmlFiles(dir, fileList = []) { + const files = fs.readdirSync(dir); + + files.forEach((file) => { + const filePath = path.join(dir, file); + const stat = fs.statSync(filePath); + + if (stat.isDirectory()) { + getAllHtmlFiles(filePath, fileList); + } else if (file === "index.html") { + fileList.push(filePath); + } + }); + + return fileList; +} + +module.exports = function customLLMsTxtPlugin(context, options) { + return { + name: "custom-llms-txt", + async postBuild({ siteConfig, outDir }) { + // Group docs by their sidebar category + const sections = { + "Getting Started": [], + Features: [], + Guides: [], + Customization: [], + Advanced: [], + Hub: [], + }; + + // Get all HTML files + const htmlFiles = getAllHtmlFiles(outDir); + + for (const htmlPath of htmlFiles) { + try { + const htmlContent = fs.readFileSync(htmlPath, "utf8"); + + // Extract title from HTML (handle both formats) + const titleMatch = htmlContent.match(/]*>([^<]+)<\/title>/); + const title = titleMatch + ? titleMatch[1].replace(" | Continue", "").trim() + : "Untitled"; + + // Skip if title is just "Continue" (likely homepage) + if (title === "Continue") continue; + + // Extract description from meta tag + const descMatch = htmlContent.match( + / { + if (docs.length > 0) { + content += `## ${sectionName}\n\n`; + + // Sort docs within each section + docs.sort((a, b) => { + // Sort by path depth first (shorter paths first) + const depthA = (a.path.match(/\//g) || []).length; + const depthB = (b.path.match(/\//g) || []).length; + if (depthA !== depthB) return depthA - depthB; + + // Then alphabetically + return a.path.localeCompare(b.path); + }); + + docs.forEach((doc) => { + content += `- [${doc.title}](${doc.url})`; + if (doc.description) { + content += `: ${doc.description}`; + } + content += "\n"; + }); + content += "\n"; + } + }); + + // Write to file + const outputPath = path.join(outDir, "llms.txt"); + fs.writeFileSync(outputPath, content, "utf8"); + + console.log( + `Generated structured llms.txt with ${Object.values(sections).flat().length} pages`, + ); + }, + }; +}; diff --git a/docs/sidebars.js b/docs/sidebars.js index 398514029..f225961f4 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -6,7 +6,7 @@ const sidebars = { "introduction", { type: "category", - label: "Getting started", + label: "Getting Started", collapsed: false, items: [ { @@ -17,175 +17,56 @@ const sidebars = { }, { type: "category", - label: "Chat", + label: "Features", items: [ { type: "autogenerated", - dirName: "chat", + dirName: "features", }, ], }, { type: "category", - label: "Autocomplete", + label: "Customization", items: [ { type: "autogenerated", - dirName: "autocomplete", + dirName: "customization", }, ], }, { type: "category", - label: "Edit", - items: [ - { - type: "autogenerated", - dirName: "edit", - }, - ], - }, - { - type: "category", - label: "Agent", - items: [ - { - type: "autogenerated", - dirName: "agent", - }, - ], - }, - { - type: "category", - label: "Blocks", - items: [ - { - type: "autogenerated", - dirName: "blocks", - }, - ], - }, - "telemetry", - "troubleshooting", - { - type: "link", label: "Hub", - href: "/hub/introduction", - }, - ], - customizingSidebar: [ - "customize/overview", - { - type: "category", - label: "Model providers", - link: { - slug: "/customize/model-providers", - type: "generated-index", - }, items: [ { type: "autogenerated", - dirName: "customize/model-providers/top-level", - }, - { - type: "category", - label: "More", - link: { - slug: "/customize/model-providers/more", - type: "generated-index", - }, - items: [ - { - type: "autogenerated", - dirName: "customize/model-providers/more", - }, - ], + dirName: "hub", }, ], }, { type: "category", - label: "Model roles", - link: { - slug: "/customize/model-roles", - type: "generated-index", - }, + label: "Advanced", items: [ { type: "autogenerated", - dirName: "customize/model-roles", + dirName: "advanced", }, ], }, { type: "category", - label: "Deep dives", + label: "Guides", items: [ { type: "autogenerated", - dirName: "customize/deep-dives", + dirName: "guides", }, ], }, - { - type: "category", - label: "Tutorials", - items: [ - { - type: "autogenerated", - dirName: "customize/tutorials", - }, - ], - }, - { - type: "link", - label: "Reference", - href: "/reference", - }, - ], - hubSidebar: [ - "hub/introduction", - { - type: "category", - label: "Assistants", - items: [ - "hub/assistants/intro", - "hub/assistants/use-an-assistant", - "hub/assistants/create-an-assistant", - "hub/assistants/edit-an-assistant", - ], - }, - { - type: "category", - label: "Blocks", - items: [ - "hub/blocks/intro", - "hub/blocks/block-types", - "hub/blocks/use-a-block", - "hub/blocks/create-a-block", - "hub/blocks/bundles", - ], - }, - { - type: "category", - label: "Secrets", - items: ["hub/secrets/secret-types", "hub/secrets/secret-resolution"], - }, - { - type: "category", - label: "Governance", - items: [ - "hub/governance/org-permissions", - "hub/governance/creating-an-org", - "hub/governance/pricing", - ], - }, - "hub/source-control", - { - type: "link", - label: "Customize", - href: "/customize/overview", - }, + "troubleshooting", + "reference", ], };