From 5ebaaaf9734abb9f847f486324e844dcf9847d95 Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Wed, 26 Dec 2018 10:59:59 -0800 Subject: [PATCH] doc: add CSS for non-compliant code examples Coding guidelines have examples for compliant and non-compliant code, but they look the same when rendered as HTML. Add a CSS style for non-compliant-code examples with a red-tinted background. Usage is: ``` .. rst-class:: non-compliant-code .. code-block:: c a=b=c=0; ``` or, for example: ``` .. rst-class:: non-compliant-code Here's an example of non-compliant code:: a=b=c=0; ``` Signed-off-by: David B. Kinder --- doc/static/acrn-custom.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/static/acrn-custom.css b/doc/static/acrn-custom.css index 19096b9ba..f1c100bb1 100644 --- a/doc/static/acrn-custom.css +++ b/doc/static/acrn-custom.css @@ -61,6 +61,10 @@ div.rst-other-versions dl { color: #000000; } +div.non-compliant-code div.highlight { + background: #f7d7d7; +} + /* Make the version number more visible */ .wy-side-nav-search>div.version { color: rgba(255,255,255,1);