mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
feat(core): add .mdx support to get-internal-docs tool (#25090)
This commit is contained in:
parent
9600da2c8f
commit
17557b1aeb
1 changed files with 6 additions and 2 deletions
|
|
@ -102,8 +102,12 @@ class GetInternalDocsInvocation extends BaseToolInvocation<
|
|||
const docsRoot = await getDocsRoot();
|
||||
|
||||
if (!this.params.path) {
|
||||
// List all .md files recursively
|
||||
const files = await glob('**/*.md', { cwd: docsRoot, posix: true });
|
||||
// List all .md and .mdx files recursively
|
||||
const files = await glob('**/*.{md,mdx}', {
|
||||
cwd: docsRoot,
|
||||
posix: true,
|
||||
});
|
||||
|
||||
files.sort();
|
||||
|
||||
const fileList = files.map((f) => `- ${f}`).join('\n');
|
||||
|
|
|
|||
Loading…
Reference in a new issue