Skip to content

Commit 9c5da9b

Browse files
Merge branch 'next' into infra-utilize-git-clean
2 parents 0e3845f + 1dfb8f2 commit 9c5da9b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/.vitepress/config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { UserConfig } from 'vitepress';
1+
import { defineConfig } from 'vitepress';
22
import type { DefaultTheme } from 'vitepress/theme';
33
import { apiPages } from './api-pages';
44
import {
@@ -109,8 +109,7 @@ function getSideBarWithExpandedEntry(entryToExpand: string): SidebarItem[] {
109109
return links;
110110
}
111111

112-
// TODO @Shinigami92 2023-12-28: reuse `defineConfig` from vitepress, when we can go esm-only
113-
const config: UserConfig<DefaultTheme.Config> = {
112+
const config = defineConfig({
114113
title: 'Faker',
115114
description,
116115

@@ -248,7 +247,7 @@ For a full list of all methods please refer to https://fakerjs.dev/api/\`, logSt
248247
__BANNER__: versionBannerInfix ?? false,
249248
},
250249
},
251-
};
250+
});
252251

253252
if (versionBannerInfix) {
254253
config.head?.push([

0 commit comments

Comments
 (0)