Skip to content

Commit 221127e

Browse files
committed
fix: apply code changes requested in the diff
Commit generated with [cn](https://docs.continue.dev/guides/cli)
1 parent 3c16e46 commit 221127e

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

docs/customize/deep-dives/configuration.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ Example
6060

6161
`config.ts` must export a `modifyConfig` function, like:
6262

63+
<Warning>
64+
The `slashCommands` array shown below is deprecated. For creating custom slash commands, use [prompt blocks or prompt files](./slash-commands) instead.
65+
</Warning>
66+
6367
```ts title="config.ts"
6468
export function modifyConfig(config: Config): Config {
6569
config.slashCommands?.push({

docs/customize/deep-dives/slash-commands.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ Slash commands are shortcuts that can be activated by typing '/' in a chat sessi
1111

1212
Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code.
1313

14+
<Note>
15+
**Recommended approach**: Use prompt blocks or prompt files to create slash
16+
commands instead of the deprecated `config.json` approach. The methods
17+
described below provide better flexibility and are the actively maintained
18+
ways to add custom commands.
19+
</Note>
20+
1421
## Prompts
1522

1623
### Assistant prompt blocks
@@ -21,7 +28,7 @@ The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/
2128

2229
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
2330

24-
Learn more about prompt files [here](./prompts.md)
31+
Learn more about prompt files [here](./prompts.mdx).
2532

2633
### MCP Server prompts
2734

docs/reference/json-reference.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
---
2-
title: "config.json Reference"
2+
title: "config.json Reference (Deprecated)"
3+
description: "Legacy configuration reference for config.json - use config.yaml instead"
4+
noindex: true
35
---
46

7+
<Warning>
8+
**This page documents deprecated functionality.** For creating slash commands and customizing Continue, please use:
9+
- [Prompt blocks and prompt files](/customize/deep-dives/slash-commands) for slash commands
10+
- [config.yaml](/reference) for configuration
11+
</Warning>
12+
513
<Info>
614
We recently introduced a new configuration format, `config.yaml`, to replace
715
`config.json`. See the `config.yaml` reference and migration guide

0 commit comments

Comments
 (0)