mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
26 lines
690 B
TypeScript
26 lines
690 B
TypeScript
import { defineConfig } from 'vitepress';
|
|
import container from 'markdown-it-container';
|
|
import { renderSandbox } from 'vitepress-plugin-sandpack';
|
|
import { en } from './en.mts';
|
|
import { ko } from './ko.mts';
|
|
import { zh_hans } from './zh_hans.mts';
|
|
import { shared } from './shared.mts';
|
|
|
|
export default defineConfig({
|
|
...shared,
|
|
locales: {
|
|
root: { label: 'English', ...en },
|
|
ko: { label: '한국어', ...ko },
|
|
zh_hans: { label: '简体中文', ...zh_hans },
|
|
},
|
|
markdown: {
|
|
config(md) {
|
|
md.use(container, 'sandpack', {
|
|
render(tokens: any[], idx: number) {
|
|
return renderSandbox(tokens, idx, 'sandpack');
|
|
},
|
|
});
|
|
},
|
|
},
|
|
});
|