docs: add proper warning styling

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez
2018-03-11 00:06:34 -05:00
parent 11f8cdf29a
commit c94b938b10
5 changed files with 12 additions and 4 deletions

View File

@@ -377,7 +377,10 @@
}
Array.prototype.forEach.call(blockquotes, function (el, i) {
if (el.innerHTML.toLowerCase().indexOf('new as of') !== -1) {
if (el.innerHTML.toLowerCase().indexOf('warning') !== -1) {
addClass(el, 'warning');
el.innerHTML = el.innerHTML.replace('Warning', '<strong>Warning</strong>')
} else if (el.innerHTML.toLowerCase().indexOf('new as of') !== -1) {
addClass(el, 'new-as-of');
} else if (el.innerHTML.toLowerCase().indexOf('not yet released') !== -1) {
addClass(el, 'not-yet-released');