@@ -143,10 +143,9 @@ module.exports = function (registry) {
143143 }
144144 }
145145
146- // Remove HTML and Rendered Asciidoc from the list of formats
147- // - The HTML generator is unmaintained
146+ // Remove Rendered Asciidoc from the list of formats
148147 // - The raw Asciidoc is already rendered by the mrdocs.com server as HTML
149- versionFormats = versionFormats . filter ( format => format !== 'html' && format !== ' adoc-asciidoc') ;
148+ versionFormats = versionFormats . filter ( format => format !== 'adoc-asciidoc' ) ;
150149 let multipageFormats = versionFormats . filter ( format => format !== 'xml' ) ;
151150
152151 let versionFormatColumns = versionFormats . map ( format => `*${ humanizeFormat ( format ) } *` ) . join ( ' | ' ) ;
@@ -183,12 +182,23 @@ module.exports = function (registry) {
183182 return '/reference.adoc'
184183 }
185184 }
185+ if ( format === 'html' )
186+ {
187+ if ( pageType === 'multi' )
188+ {
189+ return '/index.html'
190+ }
191+ else {
192+ return '/reference.html'
193+ }
194+ }
186195 return '' ;
187196 } ) ( )
188- if ( [ 'adoc' , 'xml' ] . includes ( format ) ) {
197+ if ( [ 'adoc' , 'xml' , 'html' ] . includes ( format ) ) {
189198 const adoc_icon = 'https://avatars.githubusercontent.com/u/3137042?s=200&v=4'
199+ const html_icon = 'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/refs/heads/6.x/svgs/brands/html5.svg'
190200 const code_file_icon = 'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/solid/file-code.svg'
191- const icon = format === 'adoc' ? adoc_icon : code_file_icon
201+ const icon = format === 'adoc' ? adoc_icon : format === 'html' ? html_icon : code_file_icon
192202 text += `| image:${ icon } [${ humanizeLibrary ( library ) } reference in ${ humanizeFormat ( format ) } format,width=16,height=16,link=${ demoUrlWithSuffix } ,window=_blank]`
193203 } else {
194204 text += `| ${ demoUrlWithSuffix } [🔗,window=_blank]`
0 commit comments