From a4fb9e403194f98d03d78b54dfb99413a57ca892 Mon Sep 17 00:00:00 2001 From: weishu Date: Sat, 21 Oct 2023 10:33:39 +0800 Subject: [PATCH] website: ensure templates dir exists --- website/docs/.vitepress/config.ts | 1 + website/docs/public/templates/.gitkeep | 0 2 files changed, 1 insertion(+) create mode 100644 website/docs/public/templates/.gitkeep diff --git a/website/docs/.vitepress/config.ts b/website/docs/.vitepress/config.ts index 057125edbd46..ca4f6e3b4105 100644 --- a/website/docs/.vitepress/config.ts +++ b/website/docs/.vitepress/config.ts @@ -12,6 +12,7 @@ export default defineConfig( { let files = []; try { files = await readdir(templateDir); + files = files.filter(file => !file.startsWith('.')); } catch(e) { // ignore } diff --git a/website/docs/public/templates/.gitkeep b/website/docs/public/templates/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1