这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions searx/static/themes/oscar/src/less/logicodev/pygments.less
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -11,7 +11,7 @@
-ms-user-select: none;
user-select: none;
cursor: default;

&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
Expand Down
6 changes: 3 additions & 3 deletions searx/static/themes/oscar/src/less/pointhi/pygments.less
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -11,7 +11,7 @@
-ms-user-select: none;
user-select: none;
cursor: default;

&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
Expand Down
6 changes: 3 additions & 3 deletions searx/static/themes/simple/less/pygments.less
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -11,7 +11,7 @@
-ms-user-select: none;
user-select: none;
cursor: default;

&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
Expand Down
17 changes: 12 additions & 5 deletions searx_extra/update/update_pygments.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class LogicodevStyle(Style): # pylint: disable=R0903
-ms-user-select: none;
user-select: none;
cursor: default;

&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
Expand All @@ -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)
Expand All @@ -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'))


Expand Down