forked from Ponysearch/Ponysearch
Merge pull request #2 from searxng/dependabot/pip/master/pygments-2.8.1
Bump pygments from 2.8.0 to 2.8.1 and run ./manage pyenv.cmd searx_extra/update/update_pygments.py
This commit is contained in:
commit
e6deddbc70
5 changed files with 22 additions and 15 deletions
|
@ -5,7 +5,7 @@ flask==1.1.2
|
||||||
idna==2.10
|
idna==2.10
|
||||||
jinja2==2.11.3
|
jinja2==2.11.3
|
||||||
lxml==4.6.3
|
lxml==4.6.3
|
||||||
pygments==2.8.0
|
pygments==2.8.1
|
||||||
python-dateutil==2.8.1
|
python-dateutil==2.8.1
|
||||||
pyyaml==5.4.1
|
pyyaml==5.4.1
|
||||||
httpx[http2]==0.17.1
|
httpx[http2]==0.17.1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
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 2.8.0
|
using pygments version 2.8.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
&::selection {
|
&::selection {
|
||||||
background: transparent; /* WebKit/Blink Browsers */
|
background: transparent; /* WebKit/Blink Browsers */
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
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 2.8.0
|
using pygments version 2.8.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
&::selection {
|
&::selection {
|
||||||
background: transparent; /* WebKit/Blink Browsers */
|
background: transparent; /* WebKit/Blink Browsers */
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
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 2.8.0
|
using pygments version 2.8.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
&::selection {
|
&::selection {
|
||||||
background: transparent; /* WebKit/Blink Browsers */
|
background: transparent; /* WebKit/Blink Browsers */
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ RULE_CODE_LINENOS = """ .linenos {
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
&::selection {
|
&::selection {
|
||||||
background: transparent; /* WebKit/Blink Browsers */
|
background: transparent; /* WebKit/Blink Browsers */
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ def get_output_filename(relative_name):
|
||||||
|
|
||||||
def get_css(cssclass, style):
|
def get_css(cssclass, style):
|
||||||
result = f"""/*
|
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__}
|
using pygments version {pygments.__version__}
|
||||||
*/\n\n"""
|
*/\n\n"""
|
||||||
css_text = HtmlFormatter(style=style).get_style_defs(cssclass)
|
css_text = HtmlFormatter(style=style).get_style_defs(cssclass)
|
||||||
|
@ -124,13 +124,20 @@ def get_css(cssclass, style):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
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))
|
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'))
|
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'))
|
f.write(get_css(CSSCLASS, 'default'))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue