diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-02-29 23:56:58 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-03-06 17:27:03 +0100 |
commit | 6fb169cf04e84a0b91708630e832ac0c5c1ecd8d (patch) | |
tree | 28a0821d56970602ec5f8840e8fa9164b8492656 /devbook.xsl | |
parent | devbook-guide: Use consistent ordering when mentioning admonitions. (diff) | |
download | devmanual-6fb169cf04e84a0b91708630e832ac0c5c1ecd8d.tar.gz devmanual-6fb169cf04e84a0b91708630e832ac0c5c1ecd8d.tar.bz2 devmanual-6fb169cf04e84a0b91708630e832ac0c5c1ecd8d.zip |
devbook.xsl: Bring admonitions in line with the wiki.
Use alert-info, alert-warning, and alert-danger for note, important,
and warning, respectively. This is also the scheme used in the wiki:
https://wiki.gentoo.org/wiki/Gentoo_Wiki:Guidelines#Block-level_layout_elements
Yellow background for important and red for warning also agrees with
the colours formerly used with GuideXML:
https://web.archive.org/web/20150314192204/http://www.gentoo.org/doc/en/xml-guide.xml#doc_chap2_sect3
Closes: https://bugs.gentoo.org/711164
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r-- | devbook.xsl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/devbook.xsl b/devbook.xsl index ea15885..1605663 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -233,30 +233,30 @@ <dd><xsl:apply-templates/></dd> </xsl:template> - <xsl:template match="important"> + <xsl:template match="note"> <div class="alert alert-info" role="alert"> - <strong>Important:</strong> + <strong>Note:</strong> <xsl:apply-templates/> </div> </xsl:template> - <xsl:template match="note"> - <div class="alert alert-success" role="alert"> - <strong>Note:</strong> + <xsl:template match="important"> + <div class="alert alert-warning" role="alert"> + <strong>Important:</strong> <xsl:apply-templates/> </div> </xsl:template> - <xsl:template match="todo"> - <div class="alert alert-success" role="alert"> - <strong>Todo:</strong> + <xsl:template match="warning"> + <div class="alert alert-danger" role="alert"> + <strong>Warning:</strong> <xsl:apply-templates/> </div> </xsl:template> - <xsl:template match="warning"> - <div class="alert alert-warning" role="alert"> - <strong>Warning:</strong> + <xsl:template match="todo"> + <div class="alert alert-info" role="alert"> + <strong>Todo:</strong> <xsl:apply-templates/> </div> </xsl:template> |