Skip to content

Commit a068efe

Browse files
committed
test
1 parent 43081d2 commit a068efe

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: src/lib/md/data.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import { MDXRemoteProps } from "next-mdx-remote"
22

33
import {
4-
CommitHistory,
54
FileContributor,
65
Frontmatter,
76
Lang,
87
Layout,
98
ToCItem,
109
} from "@/lib/types"
1110

12-
import { getFileContributorInfo } from "@/lib/utils/contributors"
1311
import { getLocaleTimestamp } from "@/lib/utils/time"
1412

1513
import { compile } from "./compile"
1614
import { importMd } from "./import"
1715

18-
const commitHistoryCache: CommitHistory = {}
16+
// const commitHistoryCache: CommitHistory = {}
1917

2018
interface GetPageDataParams {
2119
locale: string
@@ -38,7 +36,7 @@ export async function getPageData({
3836
locale,
3937
slug,
4038
components,
41-
layout: layoutFromProps,
39+
// layout: layoutFromProps,
4240
scope,
4341
}: GetPageDataParams): Promise<PageData> {
4442
const slugArray = slug.split("/")
@@ -53,7 +51,7 @@ export async function getPageData({
5351
scope,
5452
})
5553

56-
const layout = layoutFromProps || frontmatter.template || "static"
54+
// const layout = layoutFromProps || frontmatter.template || "static"
5755

5856
// Process TOC items
5957
const tocItems =
@@ -62,13 +60,15 @@ export async function getPageData({
6260
: tocNodeItems
6361

6462
// Get contributor information
65-
const { contributors, lastUpdatedDate } = await getFileContributorInfo(
66-
slug,
67-
locale,
68-
frontmatter.lang as string,
69-
layout,
70-
commitHistoryCache
71-
)
63+
const contributors = []
64+
const lastUpdatedDate = new Date().toISOString()
65+
// const { contributors, lastUpdatedDate } = await getFileContributorInfo(
66+
// slug,
67+
// locale,
68+
// frontmatter.lang as string,
69+
// layout,
70+
// commitHistoryCache
71+
// )
7272

7373
// Format timestamp
7474
const lastEditLocaleTimestamp = getLocaleTimestamp(

0 commit comments

Comments
 (0)