From 3cf97774dab5b1f4b1aeb2d32284567c4b18abbf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 15:32:17 +0000 Subject: [PATCH 1/3] Bump pygments from 2.8.0 to 2.8.1 Bumps [pygments](https://github.com/pygments/pygments) from 2.8.0 to 2.8.1. - [Release notes](https://github.com/pygments/pygments/releases) - [Changelog](https://github.com/pygments/pygments/blob/2.8.1/CHANGES) - [Commits](https://github.com/pygments/pygments/compare/2.8.0...2.8.1) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cc3235d01..b123de78e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ flask==1.1.2 idna==2.10 jinja2==2.11.3 lxml==4.6.3 -pygments==2.8.0 +pygments==2.8.1 python-dateutil==2.8.1 pyyaml==5.4.1 httpx[http2]==0.17.1 From ec10ba7fcb7b11e93b3f682cb2d45cd6dafd7b94 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 26 Apr 2021 19:06:30 +0200 Subject: [PATCH 2/3] [mod] update_pygments -- prompt filenames of updated files BTW: remove trailing whitespace Signed-off-by: Markus Heiser --- searx_extra/update/update_pygments.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/searx_extra/update/update_pygments.py b/searx_extra/update/update_pygments.py index 067cd4594..bdf03227e 100755 --- a/searx_extra/update/update_pygments.py +++ b/searx_extra/update/update_pygments.py @@ -92,7 +92,7 @@ RULE_CODE_LINENOS = """ .linenos { -ms-user-select: none; user-select: none; cursor: default; - + &::selection { background: transparent; /* WebKit/Blink Browsers */ } @@ -111,7 +111,7 @@ def get_output_filename(relative_name): def get_css(cssclass, style): result = f"""/* - this file is generated automatically by searx_extra/update/update_pygments.py + this file is generated automatically by searx_extra/update/update_pygments.py using pygments version {pygments.__version__} */\n\n""" css_text = HtmlFormatter(style=style).get_style_defs(cssclass) @@ -124,13 +124,20 @@ def get_css(cssclass, style): def main(): - with open(get_output_filename('static/themes/oscar/src/less/logicodev/pygments.less'), 'w') as f: + + fname = 'static/themes/oscar/src/less/logicodev/pygments.less' + print("update: %s" % fname) + with open(get_output_filename(fname), 'w') as f: f.write(get_css(CSSCLASS, LogicodevStyle)) - with open(get_output_filename('static/themes/oscar/src/less/pointhi/pygments.less'), 'w') as f: + fname = 'static/themes/oscar/src/less/pointhi/pygments.less' + print("update: %s" % fname) + with open(get_output_filename(fname), 'w') as f: f.write(get_css(CSSCLASS, 'default')) - with open(get_output_filename('static/themes/simple/less/pygments.less'), 'w') as f: + fname = 'static/themes/simple/less/pygments.less' + print("update: %s" % fname) + with open(get_output_filename(fname), 'w') as f: f.write(get_css(CSSCLASS, 'default')) From 6b92e8c6fd0d95b81f051ef73936292eba94aba5 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 26 Apr 2021 19:11:58 +0200 Subject: [PATCH 3/3] [upd] ./manage pyenv.cmd searx_extra/update/update_pygments.py Signed-off-by: Markus Heiser --- searx/static/themes/oscar/src/less/logicodev/pygments.less | 6 +++--- searx/static/themes/oscar/src/less/pointhi/pygments.less | 6 +++--- searx/static/themes/simple/less/pygments.less | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/searx/static/themes/oscar/src/less/logicodev/pygments.less b/searx/static/themes/oscar/src/less/logicodev/pygments.less index 301c94e57..cc2f92356 100644 --- a/searx/static/themes/oscar/src/less/logicodev/pygments.less +++ b/searx/static/themes/oscar/src/less/logicodev/pygments.less @@ -1,6 +1,6 @@ /* - this file is generated automatically by searx_extra/update/update_pygments.py - using pygments version 2.8.0 + this file is generated automatically by searx_extra/update/update_pygments.py + using pygments version 2.8.1 */ .code-highlight .linenos { @@ -11,7 +11,7 @@ -ms-user-select: none; user-select: none; cursor: default; - + &::selection { background: transparent; /* WebKit/Blink Browsers */ } diff --git a/searx/static/themes/oscar/src/less/pointhi/pygments.less b/searx/static/themes/oscar/src/less/pointhi/pygments.less index 25a921c0e..e5ec9b8d9 100644 --- a/searx/static/themes/oscar/src/less/pointhi/pygments.less +++ b/searx/static/themes/oscar/src/less/pointhi/pygments.less @@ -1,6 +1,6 @@ /* - this file is generated automatically by searx_extra/update/update_pygments.py - using pygments version 2.8.0 + this file is generated automatically by searx_extra/update/update_pygments.py + using pygments version 2.8.1 */ .code-highlight .linenos { @@ -11,7 +11,7 @@ -ms-user-select: none; user-select: none; cursor: default; - + &::selection { background: transparent; /* WebKit/Blink Browsers */ } diff --git a/searx/static/themes/simple/less/pygments.less b/searx/static/themes/simple/less/pygments.less index 25a921c0e..e5ec9b8d9 100644 --- a/searx/static/themes/simple/less/pygments.less +++ b/searx/static/themes/simple/less/pygments.less @@ -1,6 +1,6 @@ /* - this file is generated automatically by searx_extra/update/update_pygments.py - using pygments version 2.8.0 + this file is generated automatically by searx_extra/update/update_pygments.py + using pygments version 2.8.1 */ .code-highlight .linenos { @@ -11,7 +11,7 @@ -ms-user-select: none; user-select: none; cursor: default; - + &::selection { background: transparent; /* WebKit/Blink Browsers */ }