asciidoctor-rhrev 1.0.2 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -233,6 +233,23 @@ function generateInitialReleaseHtml(doc) {
|
|
|
233
233
|
})
|
|
234
234
|
html.push('</colgroup>')
|
|
235
235
|
html.push('<tbody>')
|
|
236
|
+
|
|
237
|
+
// Custom first row
|
|
238
|
+
const firstRow = doc.getAttribute('rhrev-customization-first-row')
|
|
239
|
+
const firstRowLeft = doc.getAttribute('rhrev-customization-first-row-left')
|
|
240
|
+
const firstRowRight = doc.getAttribute('rhrev-customization-first-row-right')
|
|
241
|
+
|
|
242
|
+
if (firstRow) {
|
|
243
|
+
html.push('<tr class="rhrev-custom-first-row">')
|
|
244
|
+
html.push(`<td colspan="2">${firstRow}</td>`)
|
|
245
|
+
html.push('</tr>')
|
|
246
|
+
} else if (firstRowLeft || firstRowRight) {
|
|
247
|
+
html.push('<tr class="rhrev-custom-first-row">')
|
|
248
|
+
html.push(`<td>${firstRowLeft || ' '}</td>`)
|
|
249
|
+
html.push(`<td>${firstRowRight || ' '}</td>`)
|
|
250
|
+
html.push('</tr>')
|
|
251
|
+
}
|
|
252
|
+
|
|
236
253
|
html.push('<tr class="rhrev-header">')
|
|
237
254
|
html.push(`<th class="tableblock halign-left valign-top">${sectionLabel}</th>`)
|
|
238
255
|
html.push(`<th class="tableblock halign-left valign-top"><strong>${majorChangesText} ${versionLabel} ${revnumber}</strong></th>`)
|
package/package.json
CHANGED