@@ -55,6 +55,7 @@ import {
55
55
UseCasesLayout ,
56
56
} from "@/layouts"
57
57
import { fetchGFIs } from "@/lib/api/fetchGFIs"
58
+ import { fetchAndSaveGitHistory } from "@/lib/api/fetchGitHistory"
58
59
import rehypeHeadingIds from "@/lib/rehype/rehypeHeadingIds"
59
60
import rehypeImg from "@/lib/rehype/rehypeImg"
60
61
import remarkInferToc from "@/lib/rehype/remarkInferToc"
@@ -180,6 +181,8 @@ export const getStaticProps = (async (context) => {
180
181
181
182
const gfissues = await gfIssuesDataFetch ( )
182
183
184
+ const contributors = await fetchAndSaveGitHistory ( mdDir )
185
+
183
186
return {
184
187
props : {
185
188
...( await serverSideTranslations ( locale ! , requiredNamespaces ) ) ,
@@ -194,13 +197,14 @@ export const getStaticProps = (async (context) => {
194
197
tocItems,
195
198
crowdinContributors,
196
199
gfissues,
200
+ contributors,
197
201
} ,
198
202
}
199
203
} ) satisfies GetStaticProps < Props , Params >
200
204
201
205
const ContentPage : NextPageWithLayout <
202
206
InferGetStaticPropsType < typeof getStaticProps >
203
- > = ( { mdxSource, layout, gfissues } ) => {
207
+ > = ( { mdxSource, layout, gfissues, contributorHistory } ) => {
204
208
// TODO: Address component typing error here (flip `FC` types to prop object types)
205
209
// @ts -expect-error
206
210
const components : Record < string , React . ReactNode > = {
@@ -229,6 +233,7 @@ ContentPage.getLayout = (page) => {
229
233
tocItems,
230
234
crowdinContributors,
231
235
contentNotTranslated,
236
+ contributors,
232
237
} = page . props
233
238
234
239
const layoutProps = {
@@ -239,6 +244,7 @@ ContentPage.getLayout = (page) => {
239
244
tocItems,
240
245
crowdinContributors,
241
246
contentNotTranslated,
247
+ contributors,
242
248
}
243
249
const Layout = layoutMapping [ layout ]
244
250
0 commit comments