summaryrefslogtreecommitdiff
path: root/searxng_extra
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-04-30 08:01:53 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-04-30 13:20:27 +0200
commite8541b6006cd6a00556957433c9de64c23ba0c84 (patch)
tree49ddcece5d7996816b3df0487ff93f8aa3797d27 /searxng_extra
parent7ad03488781cb5ae4edac9530f15217fe246fe75 (diff)
[theme] peel out oscar from SearXNG development
This is the first step of removing oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra')
-rwxr-xr-xsearxng_extra/update/update_pygments.py79
1 files changed, 0 insertions, 79 deletions
diff --git a/searxng_extra/update/update_pygments.py b/searxng_extra/update/update_pygments.py
index 68aaad0f..ca14868a 100755
--- a/searxng_extra/update/update_pygments.py
+++ b/searxng_extra/update/update_pygments.py
@@ -17,75 +17,6 @@ from pygments.token import Comment, Error, Generic, Keyword, Literal, Name, Oper
from searx import searx_dir
-
-class LogicodevStyle(Style): # pylint: disable=R0903
- """Logicodev style
- based on https://github.com/searx/searx/blob/2a5c39e33c3306ca17e09211fbf5a0f785cb10c8/searx/static/themes/oscar/less/logicodev/code.less
- """ # pylint: disable=C0301
-
- background_color = '#282C34'
-
- styles = {
- # fmt: off
- Comment: "#556366 italic",
- Comment.Multiline: "#556366 italic",
- Comment.Preproc: "#BC7A00",
- Comment.Single: "#556366 italic",
- Comment.Special: "#556366 italic",
- Error: "border:#ff0000",
- Generic.Deleted: "#A00000",
- Generic.Emph: "italic",
- Generic.Error: "#FF0000",
- Generic.Heading: "#000080 bold",
- Generic.Inserted: "#00A000",
- Generic.Output: "#888888",
- Generic.Prompt: "#000080 bold",
- Generic.Strong: "bold",
- Generic.Subheading: "#800080 bold",
- Generic.Traceback: "#0044DD",
- Keyword: "#BE74D5 bold",
- Keyword.Constant: "#BE74D5 bold",
- Keyword.Declaration: "#BE74D5 bold",
- Keyword.Namespace: "#BE74D5 bold",
- Keyword.Pseudo: "#BE74D5",
- Keyword.Reserved: "#BE74D5 bold",
- Keyword.Type: "#D46C72",
- Literal.Number: "#D19A66",
- Literal.String: "#86C372",
- Literal.String.Backtick: "#86C372",
- Literal.String.Char: "#86C372",
- Literal.String.Doc: "#86C372 italic",
- Literal.String.Double: "#86C372",
- Literal.String.Escape: "#BB6622 bold",
- Literal.String.Heredoc: "#86C372",
- Literal.String.Interpol: "#BB6688 bold",
- Literal.String.Other: "#BE74D5",
- Literal.String.Regex: "#BB6688",
- Literal.String.Single: "#86C372",
- Literal.String.Symbol: "#DFC06F",
- Name.Attribute: "#7D9029",
- Name.Builtin: "#BE74D5",
- Name.Builtin.Pseudo: "#BE74D5",
- Name.Class: "#61AFEF bold",
- Name.Constant: "#D19A66",
- Name.Decorator: "#AA22FF",
- Name.Entity: "#999999 bold",
- Name.Exception: "#D2413A bold",
- Name.Function: "#61AFEF",
- Name.Label: "#A0A000",
- Name.Namespace: "#61AFEF bold",
- Name.Tag: "#BE74D5 bold",
- Name.Variable: "#DFC06F",
- Name.Variable.Class: "#DFC06F",
- Name.Variable.Global: "#DFC06F",
- Name.Variable.Instance: "#DFC06F",
- Operator: "#D19A66",
- Operator.Word: "#AA22FF bold",
- Text.Whitespace: "#D7DAE0",
- # fmt: on
- }
-
-
CSSCLASS = '.code-highlight'
RULE_CODE_LINENOS = """ .linenos {
-webkit-touch-callout: none;
@@ -128,16 +59,6 @@ def get_css(cssclass, style):
def main():
- fname = 'static/themes/oscar/src/generated/pygments-logicodev.less'
- print("update: %s" % fname)
- with open(get_output_filename(fname), 'w') as f:
- f.write(get_css(CSSCLASS, LogicodevStyle))
-
- fname = 'static/themes/oscar/src/generated/pygments-pointhi.less'
- print("update: %s" % fname)
- with open(get_output_filename(fname), 'w') as f:
- f.write(get_css(CSSCLASS, 'default'))
-
fname = 'static/themes/simple/src/generated/pygments.less'
print("update: %s" % fname)
with open(get_output_filename(fname), 'w') as f: