Skip to content

Commit 5ebaaaf

Browse files
committed
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 <david.b.kinder@intel.com>
1 parent e5c12a6 commit 5ebaaaf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/static/acrn-custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ div.rst-other-versions dl {
6161
color: #000000;
6262
}
6363

64+
div.non-compliant-code div.highlight {
65+
background: #f7d7d7;
66+
}
67+
6468
/* Make the version number more visible */
6569
.wy-side-nav-search>div.version {
6670
color: rgba(255,255,255,1);

0 commit comments

Comments
 (0)