mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tools: add a -theme-dir folder/
parameter to v doc
(#13550)
This commit is contained in:
parent
04654ed518
commit
8b033c3993
28 changed files with 77 additions and 65 deletions
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');
|
||||
}
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue