[pve-devel] [PATCH docs] html conf: add support for a dark mode in the documentation
    Stefan Sterz 
    s.sterz at proxmox.com
       
    Wed Mar 15 17:11:04 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/pve-html.conf | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/asciidoc/pve-html.conf b/asciidoc/pve-html.conf
index 8a089d3..99b767d 100644
--- a/asciidoc/pve-html.conf
+++ b/asciidoc/pve-html.conf
@@ -629,6 +629,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 pve-devel
mailing list