feat: update /docs link (#438)
This commit is contained in:
parent
5cc65697bd
commit
98fd0f6a89
2 changed files with 4 additions and 4 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue