Skip to content

Commit 68b4840

Browse files
authored
remove prism (#1746)
1 parent fabc75a commit 68b4840

File tree

298 files changed

+7769
-9338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+7769
-9338
lines changed

_config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ defaults:
1111
lang: en
1212

1313
# Build settings
14-
markdown: kramdown
1514

1615
plugins:
1716
- jekyll-redirect-from
1817

18+
highlighter: rouge
19+
# library used for syntax highlighting
20+
21+
markdown: kramdown
1922
kramdown:
20-
input: GFM
21-
hard_wrap: false
22-
syntax_highlighter_opts:
23-
disable : true
23+
math_engine: mathjax
24+
input: GFM
25+
hard_wrap: false
26+
syntax_highlighter: rouge
2427

2528
exclude:
2629
- [uk/CHANGELOG.md]

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<script data-cfasync="false" src="/js/theme.js"></script>
88
<link rel="stylesheet" href="/css/dark-theme.css?_={{ site.time | date: '%s' }}">
99
<link rel="stylesheet" href="/css/style.css?_={{ site.time | date: '%s' }}">
10-
<link rel="stylesheet" href="/css/prism.css">
10+
<link rel="stylesheet" href="/css/sintax.css?_={{ site.time | date: '%s' }}">
11+
1112
<link rel="stylesheet" href="/css/font-awesome.min.css">
1213
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;amp;subset=latin,latin-ext">
1314
<link rel="stylesheet" href="/css/{{ page.lang }}.css">
@@ -44,7 +45,6 @@
4445
<script data-cfasync="false" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
4546
<script data-cfasync="false" src="/js/app.js"></script>
4647
<script data-cfasync="false" defer src="/js/menu.js"></script>
47-
<script data-cfasync="false" src="/js/prism.js"></script>
4848
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
4949

5050
</head>

css/dark-theme.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ html.dark-mode div#overlay {
151151
opacity: 0.5;
152152
}
153153

154-
html.dark-mode .doc-box.doc-info pre.language-javascript {
155-
background: var(--main_dark_bg);
156-
}
157154

158155
html.dark-mode h1,
159156
html.dark-mode h2,
@@ -163,9 +160,6 @@ html.dark-mode em,
163160
html.dark-mode strong {
164161
color: var(--dark_main_text);
165162
}
166-
html.dark-mode pre {
167-
background: var(--second_dark_bg);
168-
}
169163
/* index.html */
170164
html.dark-mode #description .express > a {
171165
color: var(--dark_main_text);
@@ -284,7 +278,3 @@ html.dark-mode #blog-side-menu-container h3 a{
284278
html.dark-mode #blog-side-menu > li > a{
285279
color: var(--dark_inner_text);
286280
}
287-
288-
html.dark-mode pre code {
289-
background-color: inherit;
290-
}

css/prism.css

Lines changed: 0 additions & 142 deletions
This file was deleted.

css/sintax.css

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
:root {
2+
--orange: #953800;
3+
--green: #116329;
4+
--blue-light: #0550ae;
5+
--blue-darker: #0a3069;
6+
--pupple: #8250df;
7+
--gray: #6e7781;
8+
--red: #cf222e;
9+
--red-darker: #82071e;
10+
}
11+
12+
.dark-mode:root {
13+
--orange: #ffa657;
14+
--green: #79c0ff;
15+
--blue-light: #a5d6ff;
16+
--blue-darker: #1f6feb;
17+
--pupple: #d2a8ff;
18+
--gray: #8b949e;
19+
--red: #ff7b72;
20+
--red-darker: #8e1519;
21+
}
22+
23+
.highlight table td { padding: 5px; }
24+
.highlight table pre { margin: 0; }
25+
26+
.highlight, .highlight .w {
27+
color: #24292f;
28+
background-color: var(--code-bg);
29+
}
30+
31+
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
32+
color: var(--red);
33+
}
34+
35+
.highlight .gr {
36+
color: #f6f8fa;
37+
}
38+
39+
.highlight .gd {
40+
color: var(--red-darker);
41+
background-color: #ffebe9;
42+
}
43+
44+
.highlight .nb,
45+
.highlight .nc,
46+
.highlight .no,
47+
.highlight .nn {
48+
color: var(--orange);
49+
}
50+
51+
.highlight .sr,.highlight .na, .highlight .nt, .highlight .gi {
52+
color: var(--green);
53+
}
54+
55+
.highlight .gi {
56+
background-color: #dafbe1;
57+
}
58+
59+
.highlight .ges {
60+
font-weight: bold;
61+
font-style: italic;
62+
}
63+
64+
.highlight .l,
65+
.highlight .ld,
66+
.highlight .m,
67+
.highlight .mb,
68+
.highlight .mf,
69+
.highlight .mh,
70+
.highlight .mi,
71+
.highlight .il,
72+
.highlight .mo,
73+
.highlight .mx,
74+
.highlight .kc,
75+
.highlight .sb,
76+
.highlight .bp,
77+
.highlight .ne,
78+
.highlight .nl,
79+
.highlight .py
80+
.highlight .nv,
81+
.highlight .vc,
82+
.highlight .vg,
83+
.highlight .vi,
84+
.highlight .vm,
85+
.highlight .s1,
86+
.highlight .o,
87+
.highlight .ow,
88+
.highlight .gh,
89+
.highlight .gu,
90+
.highlight .dl {
91+
color: var(--blue-light);
92+
}
93+
94+
.highlight .gh {
95+
font-weight: bold;
96+
}
97+
.highlight .gu {
98+
font-weight: bold;
99+
}
100+
.highlight .s, .highlight .sa, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .sx, .highlight .ss {
101+
color: var(--blue-darker);
102+
}
103+
.highlight .nd, .highlight .nf, .highlight .fm {
104+
color: var(--pupple);
105+
}
106+
107+
.highlight .err {
108+
color: #f6f8fa;
109+
background-color: #82071e;
110+
}
111+
.highlight .c,
112+
.highlight .gl
113+
.highlight .ch,
114+
.highlight .cd,
115+
.highlight .cm,
116+
.highlight .cp,
117+
.highlight .cpf,
118+
.highlight .c1,
119+
.highlight .cs,
120+
.highlight .gt {
121+
color: var(--gray);
122+
}
123+
124+
.highlight .ni,
125+
.highlight .ge,
126+
.highlight .si,
127+
.highlight .gs {
128+
color: #24292f;
129+
}
130+
131+
.highlight .ge {
132+
font-style: italic;
133+
}
134+
135+
.highlight .gs {
136+
font-weight: bold;
137+
}

0 commit comments

Comments
 (0)