File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { viteStaticCopy } from 'vite-plugin-static-copy'
77const config = require ( './src/config.json' )
88const English = require ( './src/locales/en.json' )
99
10+ const convertFormats = [ 'give-command' , 'loot-table' , 'item-modifier' ]
11+
1012export default defineConfig ( {
1113 server : {
1214 port : 3000 ,
@@ -44,6 +46,11 @@ export default defineConfig({
4446 title : `${ English [ m . id ] ?? '' } Generator${ m . category === true ? 's' : '' } - ${ getVersions ( m ) } ` ,
4547 template,
4648 } ) ) ,
49+ ...convertFormats . flatMap ( s => convertFormats . filter ( t => s !== t ) . map ( t => [ s , t ] ) ) . map ( ( [ s , t ] ) => html ( {
50+ fileName : `convert/${ s } -to-${ t } /index.html` ,
51+ title : `${ English [ `convert.format.${ s } ` ] } to ${ English [ `convert.format.${ t } ` ] } Converter - ${ getVersions ( { minVersion : '1.20.5' } ) } ` ,
52+ template,
53+ } ) ) ,
4754 ...config . legacyGuides . map ( g => html ( {
4855 fileName : `guides/${ g . id } /index.html` ,
4956 title : `${ g . title } - ${ getVersions ( ) } ` ,
You can’t perform that action at this time.
0 commit comments