Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/core/src/tools/get-internal-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading