mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: add a -theme-dir folder/
parameter to v doc
(#13550)
This commit is contained in:
6
cmd/tools/vdoc/theme/dark-mode.js
Normal file
6
cmd/tools/vdoc/theme/dark-mode.js
Normal file
@ -0,0 +1,6 @@
|
||||
(function() {
|
||||
var html = document.getElementsByTagName('html')[0];
|
||||
if (localStorage.getItem('dark-mode') === 'true') {
|
||||
html.classList.add('dark');
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user