diff --git a/source/_static/css/custom.css b/source/_static/css/custom.css index 7f4bc84..1dd930c 100644 --- a/source/_static/css/custom.css +++ b/source/_static/css/custom.css @@ -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; +} + diff --git a/source/colors.rst b/source/colors.rst new file mode 100644 index 0000000..40804cd --- /dev/null +++ b/source/colors.rst @@ -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 diff --git a/source/conf.py b/source/conf.py index 5d4d4bc..368036a 100644 --- a/source/conf.py +++ b/source/conf.py @@ -38,3 +38,6 @@ html_theme_options = { 'collapse_navigation': False, 'navigation_depth': -1, } +rst_epilog = """ +.. include:: colors.rst +""" diff --git a/template/debian.rst.j2 b/template/debian.rst.j2 index b87de9e..ce6929d 100644 --- a/template/debian.rst.j2 +++ b/template/debian.rst.j2 @@ -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 %} ================================================== ======= ==============