forked from openapi-ts/openapi-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
29 lines (28 loc) · 763 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineConfig } from "vitepress";
import en from "./en";
import zh from "./zh";
import ja from "./ja";
import shared from "./shared";
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
import { ModuleResolutionKind } from "typescript";
// https://vitepress.dev/reference/site-config
export default defineConfig({
...shared,
locales: {
root: { label: "English", ...en },
zh: { label: "简体中文", ...zh },
ja: { label: "日本語", ...ja },
},
markdown: {
codeTransformers: [
transformerTwoslash({
twoslashOptions: {
compilerOptions: {
experimentalDecorators: true,
moduleResolution: ModuleResolutionKind.Bundler,
},
},
}),
],
},
});