mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: update /docs link (#438)
This commit is contained in:
@@ -35,7 +35,7 @@ describe('docsCommand', () => {
|
|||||||
throw new Error('docsCommand must have an action.');
|
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, '');
|
await docsCommand.action(mockContext, '');
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ describe('docsCommand', () => {
|
|||||||
|
|
||||||
// Simulate a sandbox environment
|
// Simulate a sandbox environment
|
||||||
process.env.SANDBOX = 'gemini-sandbox';
|
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, '');
|
await docsCommand.action(mockContext, '');
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ describe('docsCommand', () => {
|
|||||||
|
|
||||||
// Simulate the specific 'sandbox-exec' environment
|
// Simulate the specific 'sandbox-exec' environment
|
||||||
process.env.SANDBOX = 'sandbox-exec';
|
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, '');
|
await docsCommand.action(mockContext, '');
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const docsCommand: SlashCommand = {
|
|||||||
description: 'open full Qwen Code documentation in your browser',
|
description: 'open full Qwen Code documentation in your browser',
|
||||||
kind: CommandKind.BUILT_IN,
|
kind: CommandKind.BUILT_IN,
|
||||||
action: async (context: CommandContext): Promise<void> => {
|
action: async (context: CommandContext): Promise<void> => {
|
||||||
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') {
|
if (process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec') {
|
||||||
context.ui.addItem(
|
context.ui.addItem(
|
||||||
|
|||||||
Reference in New Issue
Block a user