notepad-plus-plus / npp-usermanual

Notepad++ User Manual
https://npp-user-manual.org/
Other
218 stars 98 forks source link

Consider updating Book theme #654

Closed pryrt closed 7 months ago

pryrt commented 7 months ago

While thinking on #653, I was reminded that at one point, someone had requested the User Manual switch to Dark Mode, which I wasn't going to do, because there are still plenty of people who prefer light mode. But #653 reminded me about that, and I started searching for whether there's a way to have a hugo-based site automatically or manually switch from Dark to Light (auto = depends on browser settings).

The conclusion of https://github.com/alex-shpak/hugo-book/issues/151 does indicate that the feature has been added as the parameter BookTheme: auto|dark|light . I will have to experiment to see if that really works, and whether I can import the updated book theme without affecting our customizations (as far as I can tell, only _custom.scss has been updated since we started 2019... but I don't know what else might have been customized before the first commit)

If I get that to work, I will want to make sure anything from #653 and from my earlier <KBD>-styling, will look right under both light and dark.

pryrt commented 7 months ago

Notes to self: