mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
theme add?
This commit is contained in:
parent
cdd2000bd3
commit
0058a112cc
122 changed files with 8127 additions and 32 deletions
|
|
@ -1,5 +1,5 @@
|
|||
export SEARXNG_URL=''
|
||||
export SEARXNG_PORT='8888'
|
||||
export SEARXNG_BIND_ADDRESS='127.0.0.1'
|
||||
export GIT_URL='https://github.com/kvan7/searxng'
|
||||
export GIT_URL='https://github.com/Kvan7/searxng'
|
||||
export GIT_BRANCH='master'
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@ node.env() {
|
|||
nodejs.ensure
|
||||
( set -e
|
||||
build_msg INSTALL "./searx/static/themes/simple/package.json"
|
||||
build_msg INSTALL "./searx/static/themes/kvanDark/package.json"
|
||||
npm --prefix searx/static/themes/simple install
|
||||
npm --prefix searx/static/themes/kvanDark install
|
||||
)
|
||||
dump_return $?
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,12 @@ STATIC_BUILT_PATHS=(
|
|||
'searx/static/themes/simple/img'
|
||||
'searx/templates/simple/searxng-wordmark.min.svg'
|
||||
'searx/templates/simple/icons.html'
|
||||
'searx/static/themes/kvanDark/css'
|
||||
'searx/static/themes/kvanDark/js'
|
||||
'searx/static/themes/kvanDark/src/generated/pygments.less'
|
||||
'searx/static/themes/kvanDark/img'
|
||||
'searx/templates/kvanDark/searxng-wordmark.min.svg'
|
||||
'searx/templates/kvanDark/icons.html'
|
||||
)
|
||||
|
||||
static.help(){
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ themes.:
|
|||
simple.:
|
||||
build : build simple theme
|
||||
test : test simple theme
|
||||
kvanDark.:
|
||||
build : build kvanDark theme
|
||||
test : test kvanDark theme
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
@ -20,6 +23,7 @@ themes.all() {
|
|||
pygments.less
|
||||
node.env
|
||||
themes.simple
|
||||
themes.kvanDark
|
||||
)
|
||||
dump_return $?
|
||||
}
|
||||
|
|
@ -34,7 +38,7 @@ themes.live() {
|
|||
die_caller 42 "missing theme argument"
|
||||
;;
|
||||
*)
|
||||
die_caller 42 "unknown theme '${LIVE_THEME}' // [simple]'"
|
||||
die_caller 42 "unknown theme '${LIVE_THEME}' // [simple, kvanDark]'"
|
||||
;;
|
||||
esac
|
||||
build_msg GRUNT "theme: $1 (live build)"
|
||||
|
|
@ -63,3 +67,19 @@ themes.simple.test() {
|
|||
npm --prefix searx/static/themes/simple run test
|
||||
dump_return $?
|
||||
}
|
||||
|
||||
themes.kvanDark() {
|
||||
( set -e
|
||||
build_msg GRUNT "theme: kvanDark"
|
||||
npm --prefix searx/static/themes/kvanDark run build
|
||||
)
|
||||
dump_return $?
|
||||
}
|
||||
|
||||
themes.kvanDark.test() {
|
||||
build_msg TEST "theme: cystom"
|
||||
nodejs.ensure
|
||||
npm --prefix searx/static/themes/kvanDark install
|
||||
npm --prefix searx/static/themes/kvanDark run test
|
||||
dump_return $?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue