feat(core): add .mdx support to get-internal-docs tool (#25090)

This commit is contained in:
Sam Roberts 2026-04-16 13:58:34 -07:00 committed by GitHub
parent 9600da2c8f
commit 17557b1aeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');