Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Oct 21, 2023
2 parents 02cd9cd + 3ebee74 commit b02dac8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 9 additions & 4 deletions website/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ export default defineConfig( {
title: 'KernelSU',
locales: locales.locales,
buildEnd: async (config: SiteConfig) => {
const templateDir = resolve(config.outDir, 'templates')
const files = await readdir(templateDir);
const templateList = resolve(templateDir, "index.json")
await writeFile(templateList, JSON.stringify(files))
const templateDir = resolve(config.outDir, 'templates');
const templateList = resolve(templateDir, "index.json");
let files = [];
try {
files = await readdir(templateDir);
} catch(e) {
// ignore
}
await writeFile(templateList, JSON.stringify(files));
}
})
2 changes: 0 additions & 2 deletions website/docs/public/templates/.gitignore

This file was deleted.

0 comments on commit b02dac8

Please sign in to comment.