Skip to content

Commit ce9588b

Browse files
committed
use chroma to style codeblocks
1 parent f757168 commit ce9588b

File tree

12 files changed

+142
-21
lines changed

12 files changed

+142
-21
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ fmt:
1717
.PHONY: ensure-spdx
1818
ensure-spdx:
1919
find . -type f -name "*.go" -exec sh -c 'head -1 {} | grep -q SPDX || echo "Missing SPDX on file {}"' \;
20+
21+
.PHONY: generate-chroma-style
22+
generate-chroma-style:
23+
go run cmd/chroma/generate-style.go > /tmp/chroma-style.css && mv /tmp/chroma-style.css assets/css/99_chroma.css

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
> Varnishlog Parser is a small Go library built to parse and analyze `varnishlog`
44
> output, just like the name suggests.
5-
> It doesn’t rely on any external Go dependencies.
65
76
A frontend to easily parse the logs is implemented using this library.
87

assets/css/99_chroma.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
.chr_bg { color: #f8f8f2; background-color: #272822; }
2+
.chr_chroma { color: #f8f8f2; background-color: #272822; }
3+
.chr_chroma .chr_err { color: #960050; background-color: #1e0010 }
4+
.chr_chroma .chr_lnlinks { outline: none; text-decoration: none; color: inherit }
5+
.chr_chroma .chr_lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
6+
.chr_chroma .chr_lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
7+
.chr_chroma .chr_hl { background-color: #3c3d38 }
8+
.chr_chroma .chr_lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
9+
.chr_chroma .chr_ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
10+
.chr_chroma .chr_line { display: flex; }
11+
.chr_chroma .chr_k { color: #66d9ef }
12+
.chr_chroma .chr_kc { color: #66d9ef }
13+
.chr_chroma .chr_kd { color: #66d9ef }
14+
.chr_chroma .chr_kn { color: #f92672 }
15+
.chr_chroma .chr_kp { color: #66d9ef }
16+
.chr_chroma .chr_kr { color: #66d9ef }
17+
.chr_chroma .chr_kt { color: #66d9ef }
18+
.chr_chroma .chr_na { color: #a6e22e }
19+
.chr_chroma .chr_nc { color: #a6e22e }
20+
.chr_chroma .chr_no { color: #66d9ef }
21+
.chr_chroma .chr_nd { color: #a6e22e }
22+
.chr_chroma .chr_ne { color: #a6e22e }
23+
.chr_chroma .chr_nx { color: #a6e22e }
24+
.chr_chroma .chr_nt { color: #f92672 }
25+
.chr_chroma .chr_nf { color: #a6e22e }
26+
.chr_chroma .chr_fm { color: #a6e22e }
27+
.chr_chroma .chr_l { color: #ae81ff }
28+
.chr_chroma .chr_ld { color: #e6db74 }
29+
.chr_chroma .chr_s { color: #e6db74 }
30+
.chr_chroma .chr_sa { color: #e6db74 }
31+
.chr_chroma .chr_sb { color: #e6db74 }
32+
.chr_chroma .chr_sc { color: #e6db74 }
33+
.chr_chroma .chr_dl { color: #e6db74 }
34+
.chr_chroma .chr_sd { color: #e6db74 }
35+
.chr_chroma .chr_s2 { color: #e6db74 }
36+
.chr_chroma .chr_se { color: #ae81ff }
37+
.chr_chroma .chr_sh { color: #e6db74 }
38+
.chr_chroma .chr_si { color: #e6db74 }
39+
.chr_chroma .chr_sx { color: #e6db74 }
40+
.chr_chroma .chr_sr { color: #e6db74 }
41+
.chr_chroma .chr_s1 { color: #e6db74 }
42+
.chr_chroma .chr_ss { color: #e6db74 }
43+
.chr_chroma .chr_m { color: #ae81ff }
44+
.chr_chroma .chr_mb { color: #ae81ff }
45+
.chr_chroma .chr_mf { color: #ae81ff }
46+
.chr_chroma .chr_mh { color: #ae81ff }
47+
.chr_chroma .chr_mi { color: #ae81ff }
48+
.chr_chroma .chr_il { color: #ae81ff }
49+
.chr_chroma .chr_mo { color: #ae81ff }
50+
.chr_chroma .chr_o { color: #f92672 }
51+
.chr_chroma .chr_ow { color: #f92672 }
52+
.chr_chroma .chr_c { color: #75715e }
53+
.chr_chroma .chr_ch { color: #75715e }
54+
.chr_chroma .chr_cm { color: #75715e }
55+
.chr_chroma .chr_c1 { color: #75715e }
56+
.chr_chroma .chr_cs { color: #75715e }
57+
.chr_chroma .chr_cp { color: #75715e }
58+
.chr_chroma .chr_cpf { color: #75715e }
59+
.chr_chroma .chr_gd { color: #f92672 }
60+
.chr_chroma .chr_ge { font-style: italic }
61+
.chr_chroma .chr_gi { color: #a6e22e }
62+
.chr_chroma .chr_gs { font-weight: bold }
63+
.chr_chroma .chr_gu { color: #75715e }

assets/static/vendor/prism.css

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

0 commit comments

Comments
 (0)