colorise services
Some checks failed
/ test (push) Failing after 11s

This commit is contained in:
Michaël Ricart 2025-02-17 13:18:14 +01:00
parent 9a47864ba0
commit 161865af19
4 changed files with 109 additions and 1 deletions

View file

@ -1,3 +1,87 @@
.wy-nav-content {
max-width: 100%;
}
.black {
color: black;
}
.gray {
color: gray;
}
.grey {
color: gray;
}
.silver {
color: silver;
}
.white {
color: white;
}
.maroon {
color: maroon;
}
.red {
color: red;
}
.magenta {
color: magenta;
}
.fuchsia {
color: fuchsia;
}
.pink {
color: pink;
}
.orange {
color: orange;
}
.yellow {
color: yellow;
}
.lime {
color: lime;
}
.green {
color: green;
}
.olive {
color: olive;
}
.teal {
color: teal;
}
.cyan {
color: cyan;
}
.aqua {
color: aqua;
}
.blue {
color: blue;
}
.navy {
color: navy;
}
.purple {
color: purple;
}

21
source/colors.rst Normal file
View file

@ -0,0 +1,21 @@
.. role:: black
.. role:: gray
.. role:: grey
.. role:: silver
.. role:: white
.. role:: maroon
.. role:: red
.. role:: magenta
.. role:: fuchsia
.. role:: pink
.. role:: orange
.. role:: yellow
.. role:: lime
.. role:: green
.. role:: olive
.. role:: teal
.. role:: cyan
.. role:: aqua
.. role:: blue
.. role:: navy
.. role:: purple

View file

@ -38,3 +38,6 @@ html_theme_options = {
'collapse_navigation': False,
'navigation_depth': -1,
}
rst_epilog = """
.. include:: colors.rst
"""

View file

@ -18,5 +18,5 @@ services
================================================== ======= ==============
service state description
================================================== ======= =============={% for svc in services %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<7}".format(svc["sub"]) }} {{ svc["description"] }}{% endfor %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<7}".format(svc["sub"].replace("running",":green:`running`)) }} {{ svc["description"] }}{% endfor %}
================================================== ======= ==============