MDX: Fix meta.{locale} file being excluded from defineDocs

This commit is contained in:
Fuma Nama
2025-05-08 16:07:58 +08:00
parent abce713591
commit 4de7fe7c60
3 changed files with 7 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-mdx': patch
---
Fix `meta.{locale}` file being excluded from `defineDocs`
+1 -4
View File
@@ -2,10 +2,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
export function UiOverview() {
return (
<Tabs
items={['Docs Layout', 'Docs Layout (Mobile)']}
className="bg-fd-background"
>
<Tabs items={['Docs Layout', 'Docs Layout (Mobile)']}>
<Tab
value="Docs Layout"
className="not-prose text-sm text-center text-fd-muted-foreground overflow-auto"
+1 -1
View File
@@ -131,7 +131,7 @@ export function defineDocs<
// @ts-expect-error -- internal type inferring
meta: defineCollections({
type: 'meta',
files: ['**/meta.{json,yaml}'],
files: ['**/*.{json,yaml}'],
dir,
schema: metaSchema,
...options?.meta,