Skip to content

Commit 394fd46

Browse files
authored
chore(deps): bump nextjs and fumadocs (#160)
* chore(deps): bump nextjs and fumadocs * test: better mock * test: cleanup * test: cleanup agin * feat: update docs * feat: update docs again * feat: update import
1 parent f5f219c commit 394fd46

File tree

14 files changed

+690
-792
lines changed

14 files changed

+690
-792
lines changed

docs/app/api/search/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { createSearchAPI } from "fumadocs-core/search/server";
22
import { source } from "@/lib/source";
33

44
export const { GET } = createSearchAPI("advanced", {
5+
language: "english",
56
indexes: source.getPages().map((page) => ({
67
title: page.data.title,
78
description: page.data.description,
8-
structuredData: page.data.structuredData,
9-
id: page.url,
109
url: page.url,
10+
id: page.url,
11+
structuredData: page.data.structuredData,
1112
})),
1213
});

docs/app/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default async function DocPage(props: DocPageParams) {
6666
<CopyMarkdownButton markdownUrl={`${page.url}.mdx`} />
6767
<ViewOptions
6868
markdownUrl={`${page.url}.mdx`}
69-
githubUrl={`https://github.com/sadmann7/diceui/blob/main/docs/content/docs/${page.file.path}`}
69+
githubUrl={`https://github.com/sadmann7/diceui/blob/main/docs/content/docs/${page.path}`}
7070
/>
7171
</div>
7272
</div>

0 commit comments

Comments
 (0)