diff options
| author | Markus Zoeller <mzoeller@de.ibm.com> | 2015-06-15 10:18:37 +0200 |
|---|---|---|
| committer | Markus Zoeller <mzoeller@de.ibm.com> | 2015-06-15 10:18:37 +0200 |
| commit | 36f7451c332e35920216be0bfb9db8b25fb8a71e (patch) | |
| tree | a3f96e065f1326e34ce27fc5d1132dfd630e1dd8 | |
| parent | f5815b928c237c986bc5d7773e84aa587bd51f05 (diff) | |
| download | nova-36f7451c332e35920216be0bfb9db8b25fb8a71e.tar.gz | |
hypervisor support matrix: add status "unknown"
When a new feature gets added to the hypervisor support matrix it
was not possible to state that the hypervisor did not make a support
statement yet. You had to choose between "complete", "partial" and
"missing" wich could be missleading.
This change set adds the status "unknown" which could make the
statements more precise.
Change-Id: If94fc772796742de88af5893839945834b9d3eb6
| -rw-r--r-- | doc/ext/support_matrix.py | 12 | ||||
| -rw-r--r-- | doc/source/_static/support-matrix.css | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index 34d330e1e5..c3ab7a796f 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -81,8 +81,10 @@ class SupportMatrixImplementation(object): STATUS_COMPLETE = "complete" STATUS_PARTIAL = "partial" STATUS_MISSING = "missing" + STATUS_UKNOWN = "unknown" - STATUS_ALL = [STATUS_COMPLETE, STATUS_PARTIAL, STATUS_MISSING] + STATUS_ALL = [STATUS_COMPLETE, STATUS_PARTIAL, STATUS_MISSING, + STATUS_UKNOWN] def __init__(self, status=STATUS_MISSING, notes=None): # One of the status constants detailing the implementation @@ -346,12 +348,14 @@ class SupportMatrixDirective(rst.Directive): impltxt.append(implref) status = "" - if impl.status == "complete": + if impl.status == SupportMatrixImplementation.STATUS_COMPLETE: status = u"\u2714" - elif impl.status == "missing": + elif impl.status == SupportMatrixImplementation.STATUS_MISSING: status = u"\u2716" - elif impl.status == "partial": + elif impl.status == SupportMatrixImplementation.STATUS_PARTIAL: status = u"\u2714" + elif impl.status == SupportMatrixImplementation.STATUS_UKNOWN: + status = u"?" implref.append(nodes.literal( text=status, diff --git a/doc/source/_static/support-matrix.css b/doc/source/_static/support-matrix.css index 1758ea4122..4fd9fa7b66 100644 --- a/doc/source/_static/support-matrix.css +++ b/doc/source/_static/support-matrix.css @@ -32,6 +32,11 @@ font-weight: normal; } +.sp_impl_unknown { + color: rgb(170, 170, 170); + font-weight: normal; +} + .sp_impl_summary { font-size: 2em; }
\ No newline at end of file |
