From d20f6a1f19a34e4c2cd872fea7c92910a59b88b0 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 18 Jun 2021 16:44:27 +0200 Subject: [mod] make themes.all update pygments*.less Add a searx/static/themes/*/src/generated empty folder --- manage | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manage') diff --git a/manage b/manage index 167895158..9209f1d7a 100755 --- a/manage +++ b/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 -- cgit v1.2.3 From dca3bcca9e1917dd3874ba9e40e1055e32caba34 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 18 Jun 2021 17:33:56 +0200 Subject: [mod] simple theme: include fonts "npm run webfont" to build the fonts directory. It requires fontforge and ttfautohint distro packages. partial revert of commit 7137d2893f33e9158e8563a21d9586119d175269 --- manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manage') diff --git a/manage b/manage index 9209f1d7a..64d46616b 100755 --- a/manage +++ b/manage @@ -295,7 +295,7 @@ gecko.driver() { } node.env() { - if ! required_commands npm fontforge ttfautohint; then + if ! required_commands npm; then info_msg "to install build tools use::" info_msg " sudo -H ./utils/searx.sh install buildhost" die 1 "install needed build tools first" -- cgit v1.2.3 From 1559ed386e65af909b7f758b89a64d9225f5b664 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 22 Jun 2021 10:22:33 +0200 Subject: [fix] pygments.less - remove pyenv_OK condition BTW: add pygments.less to the help message Signed-off-by: Markus Heiser --- manage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manage') diff --git a/manage b/manage index 64d46616b..c741dfb81 100755 --- a/manage +++ b/manage @@ -86,6 +86,8 @@ themes.* : all : build all themes oscar : build oscar theme simple : build simple theme +pygments.* : + less : build LESS files for pygments EOF } @@ -326,7 +328,6 @@ node.clean() { } 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" -- cgit v1.2.3