Nim/nimdoc
drtheuns 51ab7ccec1
Fix JS error on index page and detect dark mode (#18191)
* Fix JS error on index page and detect dark mode

The theindex.html page doesn't have a dark mode switch so the main
function will error because `toggleSwitch` is not defined. Checks have
been added to prevent this from happening.

Also add automatic detection of system settings for dark-mode. This
could also be done with pure css, but then the dark mode variable
declarations would have to be duplicated to work with the switch so I
went with this approach.

* Fix nimdoc tests

* Fix rst2html tests
2021-06-07 18:40:09 +02:00
..
rst2html Fix JS error on index page and detect dark mode (#18191) 2021-06-07 18:40:09 +02:00
test_out_index_dot_html Fix JS error on index page and detect dark mode (#18191) 2021-06-07 18:40:09 +02:00
testproject Fix JS error on index page and detect dark mode (#18191) 2021-06-07 18:40:09 +02:00
rsttester.nim gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten (#17892) 2021-04-30 11:00:33 +02:00
tester.nim fix warnings/hints in nimdoc/tester.nim (#18083) 2021-05-30 22:40:42 +02:00