mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-18 17:20:38 -07:00
feat(core): add .mdx support to get-internal-docs tool (#25090)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user