mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-16 01:42:39 +00:00
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>
This commit is contained in:
committed by
David Kinder
parent
e5c12a64d5
commit
5ebaaaf973
4
doc/static/acrn-custom.css
vendored
4
doc/static/acrn-custom.css
vendored
@@ -61,6 +61,10 @@ div.rst-other-versions dl {
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.non-compliant-code div.highlight {
|
||||||
|
background: #f7d7d7;
|
||||||
|
}
|
||||||
|
|
||||||
/* Make the version number more visible */
|
/* Make the version number more visible */
|
||||||
.wy-side-nav-search>div.version {
|
.wy-side-nav-search>div.version {
|
||||||
color: rgba(255,255,255,1);
|
color: rgba(255,255,255,1);
|
||||||
|
|||||||
Reference in New Issue
Block a user