Skip to content

Commit 35bbbcb

Browse files
authored
Merge branch 'main' into marko/sec_deps
2 parents ac6b710 + 389e904 commit 35bbbcb

3 files changed

Lines changed: 290 additions & 2 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { withMermaid } from "vitepress-plugin-mermaid";
22
import { useSidebar } from "vitepress-openapi";
33
import spec from "../src/openapi-rpc.json" with { type: "json" };
4+
import type { ThemeRegistration } from "shiki";
5+
import evDarkTheme from "./ev-dark.json" with { type: "json" };
46

57
const telegramSVG = ` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
68
<path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM12.43 8.85893C11.2628 9.3444 8.93014 10.3492 5.43189 11.8733C4.86383 12.0992 4.56626 12.3202 4.53917 12.5363C4.49339 12.9015 4.95071 13.0453 5.57347 13.2411C5.65818 13.2678 5.74595 13.2954 5.83594 13.3246C6.44864 13.5238 7.27283 13.7568 7.70129 13.766C8.08994 13.7744 8.52373 13.6142 9.00264 13.2853C12.2712 11.079 13.9584 9.96381 14.0643 9.93977C14.139 9.92281 14.2426 9.90148 14.3128 9.96385C14.3829 10.0262 14.376 10.1443 14.3686 10.176C14.3233 10.3691 12.5281 12.0381 11.5991 12.9018C11.3095 13.171 11.1041 13.362 11.0621 13.4056C10.968 13.5033 10.8721 13.5958 10.78 13.6846C10.2108 14.2333 9.78391 14.6448 10.8036 15.3168C11.2936 15.6397 11.6858 15.9067 12.077 16.1731C12.5042 16.4641 12.9303 16.7543 13.4816 17.1157C13.6221 17.2077 13.7562 17.3034 13.8869 17.3965C14.3841 17.751 14.8307 18.0694 15.3826 18.0186C15.7032 17.9891 16.0345 17.6876 16.2027 16.7884C16.6002 14.6631 17.3816 10.0585 17.5622 8.16097C17.578 7.99473 17.5581 7.78197 17.5422 7.68857C17.5262 7.59518 17.4928 7.46211 17.3714 7.3636C17.2276 7.24694 17.0056 7.22234 16.9064 7.22408C16.455 7.23203 15.7626 7.47282 12.43 8.85893Z" fill="currentColor"/>
@@ -25,6 +27,10 @@ export default withMermaid({
2527
ignoreDeadLinks: true,
2628
appearance: false,
2729
base: base,
30+
31+
markdown: {
32+
theme: evDarkTheme as ThemeRegistration,
33+
},
2834
sitemap: {
2935
hostname: "https://docs.ev.xyz",
3036
},

docs/.vitepress/ev-dark.json

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
{
2+
"name": "ev-dark",
3+
"displayName": "Evolve Dark",
4+
"type": "dark",
5+
"colors": {
6+
"editor.background": "#000000",
7+
"editor.foreground": "#dbd7ca"
8+
},
9+
"semanticHighlighting": true,
10+
"semanticTokenColors": {
11+
"class": "#CDA4EB",
12+
"interface": "#CDA4EB",
13+
"namespace": "#CDA4EB",
14+
"property": "#94EEFF",
15+
"type": "#CDA4EB"
16+
},
17+
"tokenColors": [
18+
{
19+
"scope": ["comment", "punctuation.definition.comment", "string.comment"],
20+
"settings": { "foreground": "#A0A0A0" }
21+
},
22+
{
23+
"scope": [
24+
"delimiter.bracket", "delimiter",
25+
"invalid.illegal.character-not-allowed-here.html",
26+
"keyword.operator.rest", "keyword.operator.spread",
27+
"keyword.operator.type.annotation", "keyword.operator.relational",
28+
"keyword.operator.assignment", "keyword.operator.type",
29+
"meta.brace", "meta.tag.block.any.html",
30+
"meta.tag.inline.any.html", "meta.tag.structure.input.void.html",
31+
"meta.type.annotation", "meta.embedded.block.github-actions-expression",
32+
"storage.type.function.arrow", "meta.objectliteral.ts",
33+
"punctuation",
34+
"punctuation.definition.string.begin.html.vue",
35+
"punctuation.definition.string.end.html.vue"
36+
],
37+
"settings": { "foreground": "#767676" }
38+
},
39+
{
40+
"scope": ["constant", "entity.name.constant", "variable.language", "meta.definition.variable"],
41+
"settings": { "foreground": "#FFECB6" }
42+
},
43+
{
44+
"scope": ["entity", "entity.name"],
45+
"settings": { "foreground": "#94EEFF" }
46+
},
47+
{
48+
"scope": "variable.parameter.function",
49+
"settings": { "foreground": "#dbd7ca" }
50+
},
51+
{
52+
"scope": ["entity.name.tag", "tag.html"],
53+
"settings": { "foreground": "#94EEFF" }
54+
},
55+
{
56+
"scope": "entity.name.function",
57+
"settings": { "foreground": "#94EEFF" }
58+
},
59+
{
60+
"scope": ["keyword", "storage.type.class.jsdoc", "punctuation.definition.template-expression"],
61+
"settings": { "foreground": "#B8A6FF" }
62+
},
63+
{
64+
"scope": [
65+
"storage", "storage.type", "support.type.builtin",
66+
"constant.language.undefined", "constant.language.null",
67+
"constant.language.import-export-all.ts"
68+
],
69+
"settings": { "foreground": "#B8A6FF" }
70+
},
71+
{
72+
"scope": [
73+
"text.html.derivative", "storage.modifier.package",
74+
"storage.modifier.import", "storage.type.java"
75+
],
76+
"settings": { "foreground": "#dbd7ca" }
77+
},
78+
{
79+
"scope": ["string", "string punctuation.section.embedded source", "attribute.value"],
80+
"settings": { "foreground": "#BFF3C2" }
81+
},
82+
{
83+
"scope": "punctuation.definition.string",
84+
"settings": { "foreground": "#BFF3C280" }
85+
},
86+
{
87+
"scope": "punctuation.support.type.property-name",
88+
"settings": { "foreground": "#94EEFF77" }
89+
},
90+
{
91+
"scope": "support",
92+
"settings": { "foreground": "#94EEFF" }
93+
},
94+
{
95+
"scope": [
96+
"property", "meta.property-name", "meta.object-literal.key",
97+
"entity.name.tag.yaml", "attribute.name"
98+
],
99+
"settings": { "foreground": "#94EEFF" }
100+
},
101+
{
102+
"scope": [
103+
"entity.other.attribute-name",
104+
"invalid.deprecated.entity.other.attribute-name.html"
105+
],
106+
"settings": { "foreground": "#B8A6FFAA" }
107+
},
108+
{
109+
"scope": ["variable", "identifier"],
110+
"settings": { "foreground": "#dbd7ca" }
111+
},
112+
{
113+
"scope": ["support.type.primitive", "entity.name.type"],
114+
"settings": { "foreground": "#CDA4EB" }
115+
},
116+
{
117+
"scope": "namespace",
118+
"settings": { "foreground": "#CDA4EB" }
119+
},
120+
{
121+
"scope": ["keyword.operator", "keyword.operator.assignment.compound", "meta.var.expr.ts"],
122+
"settings": { "foreground": "#888888" }
123+
},
124+
{
125+
"scope": "invalid.broken",
126+
"settings": { "fontStyle": "italic", "foreground": "#FFB7B7" }
127+
},
128+
{
129+
"scope": "invalid.deprecated",
130+
"settings": { "fontStyle": "italic", "foreground": "#FFB7B7" }
131+
},
132+
{
133+
"scope": "invalid.illegal",
134+
"settings": { "fontStyle": "italic", "foreground": "#FFB7B7" }
135+
},
136+
{
137+
"scope": "invalid.unimplemented",
138+
"settings": { "fontStyle": "italic", "foreground": "#FFB7B7" }
139+
},
140+
{
141+
"scope": "message.error",
142+
"settings": { "foreground": "#FFB7B7" }
143+
},
144+
{
145+
"scope": "string variable",
146+
"settings": { "foreground": "#BFF3C2" }
147+
},
148+
{
149+
"scope": ["source.regexp", "string.regexp"],
150+
"settings": { "foreground": "#BFF3C2" }
151+
},
152+
{
153+
"scope": [
154+
"string.regexp.character-class",
155+
"string.regexp constant.character.escape",
156+
"string.regexp source.ruby.embedded",
157+
"string.regexp string.regexp.arbitrary-repitition"
158+
],
159+
"settings": { "foreground": "#BFF3C2CC" }
160+
},
161+
{
162+
"scope": "string.regexp constant.character.escape",
163+
"settings": { "foreground": "#FFECB6" }
164+
},
165+
{
166+
"scope": "support.constant",
167+
"settings": { "foreground": "#FFECB6" }
168+
},
169+
{
170+
"scope": ["keyword.operator.quantifier.regexp", "constant.numeric", "number"],
171+
"settings": { "foreground": "#FFECB6" }
172+
},
173+
{
174+
"scope": "keyword.other.unit",
175+
"settings": { "foreground": "#FFECB6" }
176+
},
177+
{
178+
"scope": ["constant.language.boolean", "constant.language"],
179+
"settings": { "foreground": "#FFECB6" }
180+
},
181+
{
182+
"scope": "meta.module-reference",
183+
"settings": { "foreground": "#B8A6FF" }
184+
},
185+
{
186+
"scope": "punctuation.definition.list.begin.markdown",
187+
"settings": { "foreground": "#888888" }
188+
},
189+
{
190+
"scope": ["markup.heading", "markup.heading entity.name"],
191+
"settings": { "fontStyle": "bold", "foreground": "#B8A6FF" }
192+
},
193+
{
194+
"scope": "markup.quote",
195+
"settings": { "foreground": "#CDA4EB" }
196+
},
197+
{
198+
"scope": "markup.italic",
199+
"settings": { "fontStyle": "italic", "foreground": "#dbd7ca" }
200+
},
201+
{
202+
"scope": "markup.bold",
203+
"settings": { "fontStyle": "bold", "foreground": "#dbd7ca" }
204+
},
205+
{
206+
"scope": "markup.raw",
207+
"settings": { "foreground": "#BFF3C2" }
208+
},
209+
{
210+
"scope": ["markup.deleted", "meta.diff.header.from-file", "punctuation.definition.deleted"],
211+
"settings": { "background": "#FFB7B722", "foreground": "#FFB7B7" }
212+
},
213+
{
214+
"scope": ["markup.inserted", "meta.diff.header.to-file", "punctuation.definition.inserted"],
215+
"settings": { "background": "#BFF3C222", "foreground": "#BFF3C2" }
216+
},
217+
{
218+
"scope": ["markup.changed", "punctuation.definition.changed"],
219+
"settings": { "background": "#FFECB622", "foreground": "#FFECB6" }
220+
},
221+
{
222+
"scope": ["markup.ignored", "markup.untracked"],
223+
"settings": { "background": "#94EEFF22", "foreground": "#94EEFF" }
224+
},
225+
{
226+
"scope": "meta.diff.range",
227+
"settings": { "fontStyle": "bold", "foreground": "#CDA4EB" }
228+
},
229+
{
230+
"scope": "meta.diff.header",
231+
"settings": { "foreground": "#94EEFF" }
232+
},
233+
{
234+
"scope": "meta.separator",
235+
"settings": { "fontStyle": "bold", "foreground": "#94EEFF" }
236+
},
237+
{
238+
"scope": "meta.output",
239+
"settings": { "foreground": "#94EEFF" }
240+
},
241+
{
242+
"scope": [
243+
"brackethighlighter.tag", "brackethighlighter.curly",
244+
"brackethighlighter.round", "brackethighlighter.square",
245+
"brackethighlighter.angle", "brackethighlighter.quote"
246+
],
247+
"settings": { "foreground": "#888888" }
248+
},
249+
{
250+
"scope": "brackethighlighter.unmatched",
251+
"settings": { "foreground": "#FFB7B7" }
252+
},
253+
{
254+
"scope": [
255+
"constant.other.reference.link", "string.other.link",
256+
"punctuation.definition.string.begin.markdown",
257+
"punctuation.definition.string.end.markdown"
258+
],
259+
"settings": { "foreground": "#BFF3C2" }
260+
},
261+
{
262+
"scope": [
263+
"markup.underline.link.markdown",
264+
"markup.underline.link.image.markdown"
265+
],
266+
"settings": { "fontStyle": "underline", "foreground": "#94EEFF" }
267+
},
268+
{
269+
"scope": ["type.identifier", "constant.other.character-class.regexp"],
270+
"settings": { "foreground": "#CDA4EB" }
271+
},
272+
{
273+
"scope": "entity.other.attribute-name.html.vue",
274+
"settings": { "foreground": "#94EEFF" }
275+
},
276+
{
277+
"scope": "invalid.illegal.unrecognized-tag.html",
278+
"settings": { "fontStyle": "normal" }
279+
}
280+
]
281+
}

docs/.vitepress/theme/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,13 @@
153153

154154
:root {
155155
--vp-code-block-bg: #000000;
156-
--vp-code-block-color: #ffffff;
156+
--vp-code-block-color: #dbd7ca;
157157
--vp-code-block-divider-color: rgba(255, 255, 255, 0.1);
158158

159159
/* Inline code */
160160
--vp-code-color: #000000;
161161
--vp-code-bg: rgba(0, 0, 0, 0.05);
162+
162163
}
163164

164165
/* Inline code styling */
@@ -179,7 +180,7 @@ div[class*="language-"] pre {
179180
}
180181

181182
div[class*="language-"] code {
182-
color: #ffffff;
183+
color: #dbd7ca; /* vitesse-black default text */
183184
}
184185

185186
/**

0 commit comments

Comments
 (0)