From e7a9cd7a3470bf5041d81d36195a66c6ec32519e Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 13 Nov 2021 14:59:55 +0100 Subject: [PATCH 1/3] [fix] manage help - add description of test.yamllint Signed-off-by: Markus Heiser --- manage | 1 + 1 file changed, 1 insertion(+) diff --git a/manage b/manage index 07761e76c..46a3164be 100755 --- a/manage +++ b/manage @@ -77,6 +77,7 @@ pyenv.: pypi.upload: Upload python packages to PyPi (to test use pypi.upload.test) test.: + yamllint : lint YAML files: $YAMLLINT_FILES pylint : lint PYLINT_FILES, searx/engines, searx & tests pep8 : pycodestyle (pep8) for all files except PYLINT_FILES unit : run unit tests From 6debda2404bd7c1aa76efc7c710a8c24dc6b6136 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 13 Nov 2021 15:00:40 +0100 Subject: [PATCH 2/3] [mod] settings.yml - polish up comments about plugins Signed-off-by: Markus Heiser --- searx/settings.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index f53e3257b..475c94989 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -152,22 +152,32 @@ outgoing: # - plugin2 # - ... -# uncomment below section if you want to configure which plugin is enabled by -# default +# Comment or un-comment plugin to activate / deactivate by default. # # enabled_plugins: -# - "HTTPS rewrite" -# - "Hostname replace" # see configuration below +# # these plugins are enabled if nothing is configured .. +# - 'Hash plugin' +# - 'Search on category select' +# - 'Self Informations' +# - 'Tracker URL remover' +# - 'Ahmia blacklist' # activation depends on outgoing.using_tor_proxy +# # these plugins are disabled if nothing is configured .. +# - 'Hostname replace' # see hostname_replace configuration below +# - 'Infinite scroll' +# - 'Open Access DOI rewrite' +# - 'Vim-like hotkeys' -# "Hostname replace" plugin configuration example: +# Configuration of the "Hostname replace" plugin: +# # hostname_replace: -# '(.*\.)?youtube\.com$': 'invidious.example.com' -# '(.*\.)?youtu\.be$': 'invidious.example.com' +# '(.*\.)?youtube\.com$': 'invidious.example.com' +# '(.*\.)?youtu\.be$': 'invidious.example.com' # '(.*\.)?youtube-noocookie\.com$': 'yotter.example.com' -# '(.*\.)?reddit\.com$': 'teddit.example.com' -# '(.*\.)?redd\.it$': 'teddit.example.com' -# '(www\.)?twitter\.com$': 'nitter.example.com' -# 'spam\.example\.com': false # remove results from spam.example.com +# '(.*\.)?reddit\.com$': 'teddit.example.com' +# '(.*\.)?redd\.it$': 'teddit.example.com' +# '(www\.)?twitter\.com$': 'nitter.example.com' +# # to remove matching host names from result list, set value to false +# 'spam\.example\.com': false checker: # disable checker when in debug mode From a364e5485971601859c80b021f2d0baa45e4dd76 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 13 Nov 2021 15:08:54 +0100 Subject: [PATCH 3/3] [fix] delete trailing whitespace Signed-off-by: Markus Heiser --- searx/templates/simple/categories.html | 2 +- searx/templates/simple/icons.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html index 71fdca90a..29616f127 100644 --- a/searx/templates/simple/categories.html +++ b/searx/templates/simple/categories.html @@ -10,7 +10,7 @@ 'science': 'school-outline', 'files': 'file-tray-full-outline', 'social media': 'people-outline', -} -%} +} -%}
{{- '' -}}
{%- for category in categories -%} diff --git a/searx/templates/simple/icons.html b/searx/templates/simple/icons.html index ffd5041ca..3093e3e29 100644 --- a/searx/templates/simple/icons.html +++ b/searx/templates/simple/icons.html @@ -20,13 +20,13 @@ 'file-tray-full-outline':'', 'people-outline':'', -} +} -%} - + {% macro icon(action, alt) -%} {{ icons[action] | replace("ionicon", "ion-icon") | safe }} {%- endmacro %} - + {% macro icon_small(action) -%} {{ icons[action] | replace("ionicon", "ion-icon-small") | safe }} {%- endmacro %}