diff --git a/src/[lang].md b/src/[lang].md new file mode 100644 index 0000000..04b8838 --- /dev/null +++ b/src/[lang].md @@ -0,0 +1,8 @@ + diff --git a/src/[lang].paths.mts b/src/[lang].paths.mts new file mode 100644 index 0000000..1d007e9 --- /dev/null +++ b/src/[lang].paths.mts @@ -0,0 +1,9 @@ +import config from '../.vitepress/config.mts'; + +const SUPPORTED_LANGS = Object.keys(config.locales ?? {}); + +export default { + async paths() { + return SUPPORTED_LANGS.map((lang) => ({ params: { lang } })); + }, +};