[pmg-devel] [PATCH pmg-docs] html conf: add support for a dark mode in the documentation
Stefan Sterz
s.sterz at proxmox.com
Wed Mar 15 17:11:05 CET 2023
this commit adds support for a dark theme that behaves similarly to
that one used by the api viewer.
Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
asciidoc/pmg-html.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/asciidoc/pmg-html.conf b/asciidoc/pmg-html.conf
index 707a83f..7fc1d4f 100644
--- a/asciidoc/pmg-html.conf
+++ b/asciidoc/pmg-html.conf
@@ -632,6 +632,10 @@ div .toclevel1 {
</style>
endif::toc2[]
+<style type="text/css">
+include1::{stylesdir=/usr/share/javascript/proxmox-widget-toolkit-dev}/theme-proxmox-dark-adocs.css[]
+</style>
+
ifndef::disable-javascript[]
ifdef::linkcss[]
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
--
2.30.2
More information about the pmg-devel
mailing list