From 9c90c98704256517401688d5cb74aa89ec2d00ab Mon Sep 17 00:00:00 2001 From: Amjad Ben Hedhili Date: Sun, 21 Aug 2022 21:56:12 +0100 Subject: [PATCH] Docs auto dark mode (#20188) * Implement auto dark mode * Rename class * Fix borders cutout * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> --- config/nimdoc.cfg | 26 ++--- doc/nimdoc.css | 96 ++++++++----------- nimdoc/rst2html/expected/rst_examples.html | 13 +-- .../expected/index.html | 13 +-- nimdoc/testproject/expected/nimdoc.out.css | 96 ++++++++----------- .../expected/subdir/subdir_b/utils.html | 13 +-- nimdoc/testproject/expected/testproject.html | 13 +-- tools/dochack/dochack.nim | 40 +++----- 8 files changed, 136 insertions(+), 174 deletions(-) diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 7aee50d8c5253..d10c2f3186fe1 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -135,12 +135,13 @@ doc.body_toc_groupsection = """ doc.body_toc_group = """
-
- -     Dark Mode +
+ +