From 98fd0f6a89e8e0b03d536325afbe80bc2c48fd8c Mon Sep 17 00:00:00 2001 From: pomelo Date: Tue, 26 Aug 2025 15:49:29 +0800 Subject: [PATCH] feat: update /docs link (#438) --- packages/cli/src/ui/commands/docsCommand.test.ts | 6 +++--- packages/cli/src/ui/commands/docsCommand.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/ui/commands/docsCommand.test.ts b/packages/cli/src/ui/commands/docsCommand.test.ts index 083ef5b2..fa66d2c7 100644 --- a/packages/cli/src/ui/commands/docsCommand.test.ts +++ b/packages/cli/src/ui/commands/docsCommand.test.ts @@ -35,7 +35,7 @@ describe('docsCommand', () => { throw new Error('docsCommand must have an action.'); } - const docsUrl = 'https://github.com/QwenLM/qwen-code'; + const docsUrl = 'https://qwenlm.github.io/qwen-code-docs/en'; await docsCommand.action(mockContext, ''); @@ -57,7 +57,7 @@ describe('docsCommand', () => { // Simulate a sandbox environment process.env.SANDBOX = 'gemini-sandbox'; - const docsUrl = 'https://github.com/QwenLM/qwen-code'; + const docsUrl = 'https://qwenlm.github.io/qwen-code-docs/en'; await docsCommand.action(mockContext, ''); @@ -80,7 +80,7 @@ describe('docsCommand', () => { // Simulate the specific 'sandbox-exec' environment process.env.SANDBOX = 'sandbox-exec'; - const docsUrl = 'https://github.com/QwenLM/qwen-code'; + const docsUrl = 'https://qwenlm.github.io/qwen-code-docs/en'; await docsCommand.action(mockContext, ''); diff --git a/packages/cli/src/ui/commands/docsCommand.ts b/packages/cli/src/ui/commands/docsCommand.ts index 72d988d5..1f409a35 100644 --- a/packages/cli/src/ui/commands/docsCommand.ts +++ b/packages/cli/src/ui/commands/docsCommand.ts @@ -18,7 +18,7 @@ export const docsCommand: SlashCommand = { description: 'open full Qwen Code documentation in your browser', kind: CommandKind.BUILT_IN, action: async (context: CommandContext): Promise => { - const docsUrl = 'https://github.com/QwenLM/qwen-code'; + const docsUrl = 'https://qwenlm.github.io/qwen-code-docs/en'; if (process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec') { context.ui.addItem(