mirror of
https://github.com/searxng/searxng.git
synced 2024-10-31 22:28:52 +00:00
[mod] make themes.all update pygments*.less
Add a searx/static/themes/*/src/generated empty folder
This commit is contained in:
parent
bb3e67f72b
commit
d20f6a1f19
11 changed files with 21 additions and 11 deletions
11
manage
11
manage
|
@ -325,6 +325,16 @@ node.clean() {
|
|||
dump_return $?
|
||||
}
|
||||
|
||||
pygments.less() {
|
||||
[ "$_pyenv_OK" == "OK" ] && return 0
|
||||
build_msg PYGMENTS "searx_extra/update/update_pygments.py"
|
||||
if ! pyenv.cmd python searx_extra/update/update_pygments.py; then
|
||||
build_msg PYGMENTS "building LESS files for pygments failed"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
py.build() {
|
||||
build_msg BUILD "[pylint] python package ${PYDIST}"
|
||||
pyenv.cmd python setup.py \
|
||||
|
@ -462,6 +472,7 @@ test.clean() {
|
|||
|
||||
themes.all() {
|
||||
( set -e
|
||||
pygments.less
|
||||
node.env
|
||||
themes.oscar
|
||||
themes.simple
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||
using pygments version 2.8.1
|
||||
using pygments version 2.9.0
|
||||
*/
|
||||
|
||||
.code-highlight .linenos {
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||
using pygments version 2.8.1
|
||||
using pygments version 2.9.0
|
||||
*/
|
||||
|
||||
.code-highlight .linenos {
|
|
@ -1,6 +1,7 @@
|
|||
@import "../logicodev/variables.less";
|
||||
@import "../../../../__common__/less/new_issue.less";
|
||||
@import "../../../../__common__/less/stats.less";
|
||||
@import "../../generated/pygments-logicodev.less";
|
||||
|
||||
@stacked-bar-chart: rgb(213, 216, 215, 1);
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@ pre, code {
|
|||
font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important;
|
||||
}
|
||||
|
||||
@import "pygments.less";
|
||||
|
||||
.code-highlight pre {
|
||||
margin-bottom: 25px;
|
||||
padding: 20px 10px;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
@import "variables.less";
|
||||
@import "../../../../__common__/less/new_issue.less";
|
||||
@import "../../../../__common__/less/stats.less";
|
||||
@import "../../generated/pygments-logicodev.less";
|
||||
|
||||
@import "navbar.less";
|
||||
@import "footer.less";
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
@import "pygments.less";
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
@import "variables.less";
|
||||
@import "../../../../__common__/less/new_issue.less";
|
||||
@import "../../../../__common__/less/stats.less";
|
||||
@import "../../generated/pygments-pointhi.less";
|
||||
|
||||
@import "footer.less";
|
||||
@import "checkbox.less";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||
using pygments version 2.8.1
|
||||
using pygments version 2.9.0
|
||||
*/
|
||||
|
||||
.code-highlight .linenos {
|
|
@ -5,4 +5,4 @@
|
|||
border: inherit;
|
||||
}
|
||||
|
||||
@import "pygments.less";
|
||||
@import "../generated/pygments.less";
|
||||
|
|
|
@ -125,17 +125,17 @@ def get_css(cssclass, style):
|
|||
|
||||
def main():
|
||||
|
||||
fname = 'static/themes/oscar/src/less/logicodev/pygments.less'
|
||||
fname = 'static/themes/oscar/src/generated/pygments-logicodev.less'
|
||||
print("update: %s" % fname)
|
||||
with open(get_output_filename(fname), 'w') as f:
|
||||
f.write(get_css(CSSCLASS, LogicodevStyle))
|
||||
|
||||
fname = 'static/themes/oscar/src/less/pointhi/pygments.less'
|
||||
fname = 'static/themes/oscar/src/generated/pygments-pointhi.less'
|
||||
print("update: %s" % fname)
|
||||
with open(get_output_filename(fname), 'w') as f:
|
||||
f.write(get_css(CSSCLASS, 'default'))
|
||||
|
||||
fname = 'static/themes/simple/less/pygments.less'
|
||||
fname = 'static/themes/simple/src/generated/pygments.less'
|
||||
print("update: %s" % fname)
|
||||
with open(get_output_filename(fname), 'w') as f:
|
||||
f.write(get_css(CSSCLASS, 'default'))
|
||||
|
|
Loading…
Reference in a new issue