@@ -143,10 +143,9 @@ module.exports = function (registry) {
143
143
}
144
144
}
145
145
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
148
147
// - 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' ) ;
150
149
let multipageFormats = versionFormats . filter ( format => format !== 'xml' ) ;
151
150
152
151
let versionFormatColumns = versionFormats . map ( format => `*${ humanizeFormat ( format ) } *` ) . join ( ' | ' ) ;
@@ -183,12 +182,23 @@ module.exports = function (registry) {
183
182
return '/reference.adoc'
184
183
}
185
184
}
185
+ if ( format === 'html' )
186
+ {
187
+ if ( pageType === 'multi' )
188
+ {
189
+ return '/index.html'
190
+ }
191
+ else {
192
+ return '/reference.html'
193
+ }
194
+ }
186
195
return '' ;
187
196
} ) ( )
188
- if ( [ 'adoc' , 'xml' ] . includes ( format ) ) {
197
+ if ( [ 'adoc' , 'xml' , 'html' ] . includes ( format ) ) {
189
198
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'
190
200
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
192
202
text += `| image:${ icon } [${ humanizeLibrary ( library ) } reference in ${ humanizeFormat ( format ) } format,width=16,height=16,link=${ demoUrlWithSuffix } ,window=_blank]`
193
203
} else {
194
204
text += `| ${ demoUrlWithSuffix } [🔗,window=_blank]`
0 commit comments