fix: Fix CR and doc-string
This commit is contained in:
parent
18927bf85d
commit
97b92e7da1
2 changed files with 9 additions and 7 deletions
|
@ -20,8 +20,8 @@ window.addEventListener('load', async () => {
|
|||
|
||||
|
||||
function checkScheme(scheme) {
|
||||
if (THEME_LIGHT == false) return "dark"
|
||||
if (THEME_DARK == false) return "light"
|
||||
if (THEME_LIGHT === false) return "dark"
|
||||
if (THEME_DARK === false) return "light"
|
||||
return scheme
|
||||
}
|
||||
|
||||
|
|
|
@ -69,17 +69,19 @@ params:
|
|||
# id: foo
|
||||
# name: bar
|
||||
|
||||
# The `darkMode` feature. It's a deprecated setting but keep backward compatibility
|
||||
darkmode:
|
||||
# [Deprecated] The `darkMode` feature
|
||||
# This is a deprecated setting, but has not been removed to maintain backward compatibility
|
||||
# If `theme` is set, the `darkMode` setting will be discarded.
|
||||
darkMode:
|
||||
enable: true
|
||||
|
||||
# Configure theme settings
|
||||
|
||||
# The `theme` feature
|
||||
theme:
|
||||
enable: true
|
||||
services:
|
||||
light: true # enable light theme. default "true"
|
||||
dark: true # enable dark theme. default "true"
|
||||
defaultTheme: light # can be either light, dark or system. default "system"
|
||||
default: system # can be either light, dark or system. default "system"
|
||||
|
||||
This helper will convert the above config into the following env vars:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue