@@ -46,43 +46,35 @@ for (const moduleInfo of modulesList) {
4646 const versionStr = toVersionString ( version )
4747 const versionLabel = versionStr ? ` ${ versionStr } ` : ''
4848
49- output += `<h2 align="center"> ${ name } ${ versionLabel } </h2> \n\n`
49+ output += `${ name } ${ versionLabel } \n\n`
5050
5151 if ( description ) {
52- output += `<p><strong>Description:</strong></p>\n`
53- output += `<p>${ description } </p>\n\n`
52+ output += `Description:\n\n${ description } \n\n`
5453 }
5554
5655 if ( features . length ) {
57- output += `<p><strong> Features:</strong></p>\n<ul> \n`
56+ output += `Features:\n \n`
5857 for ( const feature of features ) {
59- output += ` <li> ${ feature } </li> \n`
58+ output += `${ feature } \n`
6059 }
61- output += `</ul>\n \n`
60+ output += `\n`
6261 }
6362
6463 if ( public_uniqueID ) {
6564 const base = 'https://liliaframework.github.io/Modules/docs'
66-
67- output += `<p><strong>Libraries:</strong>\n`
68- output += ` <a href="${ base } /libraries/modules/${ public_uniqueID } .html">Access Here</a>\n`
69- output += `</p>\n\n`
70- output += `<p> </p>\n\n`
71- output += `<p><strong>Hooks:</strong>\n`
72- output += ` <a href="${ base } /hooks/modules/${ public_uniqueID } .html">Access Here</a>\n`
73- output += `</p>\n\n`
65+ output += `Libraries:\n\n[Access Here](${ base } /libraries/modules/${ public_uniqueID } .html)\n\n`
66+ output += `Hooks:\n\n[Access Here](${ base } /hooks/modules/${ public_uniqueID } .html)\n\n`
7467 }
7568
7669 if ( download ) {
77- output += `<p align="center">\n`
78- output += ` <a href="${ download } ">\n`
79- output += ` <strong>Download Here</strong>\n`
80- output += ` </a>\n`
81- output += `</p>\n\n`
70+ output += `Download:\n\n[Download Here](${ download } )\n\n`
8271 }
8372}
8473
85- output += details
74+ if ( details ) {
75+ if ( ! output . endsWith ( '\n' ) ) output += '\n'
76+ output += `${ details . startsWith ( '\n' ) ? '' : '\n' } ${ details } `
77+ }
8678
8779fs . mkdirSync ( path . dirname ( outputPath ) , { recursive : true } )
8880fs . writeFileSync ( outputPath , output )
0 commit comments