es-toolkit/docs/.vitepress/config.mts
Dayong Lee 23aa7db57d
style(format): add sorting imports plugin and fix eslint config (#625)
* Add prettier sort

* Fix prettier setting in eslint

* Apply prettier

* Fix depdencies

* Add .yarn folder in excludes of vitest

* Revert pick I don't know why this is changed
2024-10-01 14:00:45 +09:00

28 lines
760 B
TypeScript

import container from 'markdown-it-container';
import { defineConfig } from 'vitepress';
import { renderSandbox } from 'vitepress-plugin-sandpack';
import { en } from './en.mts';
import { ja } from './ja.mts';
import { ko } from './ko.mts';
import { shared } from './shared.mts';
import { zh_hans } from './zh_hans.mts';
export default defineConfig({
...shared,
locales: {
root: { label: 'English', ...en },
ko: { label: '한국어', ...ko },
zh_hans: { label: '简体中文', ...zh_hans },
ja: { label: '日本語', ...ja },
},
markdown: {
config(md) {
md.use(container, 'sandpack', {
render(tokens: any[], idx: number) {
return renderSandbox(tokens, idx, 'sandpack');
},
});
},
},
});