From 687ed5c75cf9e8321ddff5fdbb718238214524bf Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 16 Mar 2022 02:44:34 +0100 Subject: [PATCH] Create html for versions page --- vite.config.js | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/vite.config.js b/vite.config.js index c4ac7354..acea47ae 100644 --- a/vite.config.js +++ b/vite.config.js @@ -25,26 +25,16 @@ export default defineConfig({ title: '404', template: template, }), - html({ - fileName: 'sounds/index.html', - title: getTitle({ id: 'title.sounds', page: true }), + ...['sounds', 'changelog', 'versions'].map(id => html({ + fileName: `${id}/index.html`, + title: getTitle({ id: `title.${id}`, page: true }), template: template, - }), - html({ - fileName: 'changelog/index.html', - title: getTitle({ id: 'title.changelog', page: true }), + })), + ...['worldgen', 'assets'].map(id => html({ + fileName: `${id}/index.html`, + title: getTitle({ id, category: true }), template: template, - }), - html({ - fileName: 'worldgen/index.html', - title: getTitle({ id: 'worldgen', category: true }), - template: template, - }), - html({ - fileName: 'assets/index.html', - title: getTitle({ id: 'assets', category: true }), - template: template, - }), + })), ...config.generators.map(m => html({ fileName: `${m.url}/index.html`, title: getTitle(m),