Skip to content

Commit df53660

Browse files
authored
Fix katex assets (#2129)
* Fix katex assets * Fix
1 parent f1cf415 commit df53660

File tree

66 files changed

+206
-203
lines changed

Some content is hidden

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

66 files changed

+206
-203
lines changed

src/Elastic.Documentation.Site/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
node_modules/
33
_static/styles.css
44
_static/styles.css.map
5+
_static/*.ttf
6+
_static/*.woff
57
_static/*.woff2
68
_static/*.js
79
_static/*.js.map

src/Elastic.Documentation.Site/Assets/fonts.css

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,206 @@
2525
font-weight: 600;
2626
font-display: swap;
2727
}
28+
29+
/* math fonts */
30+
31+
@font-face {
32+
font-display: block;
33+
font-family: KaTeX_AMS;
34+
font-style: normal;
35+
font-weight: 400;
36+
src:
37+
url(./fonts/KaTeX_AMS-Regular.woff2) format('woff2'),
38+
url(./fonts/KaTeX_AMS-Regular.woff) format('woff'),
39+
url(./fonts/KaTeX_AMS-Regular.ttf) format('truetype');
40+
}
41+
@font-face {
42+
font-display: block;
43+
font-family: KaTeX_Caligraphic;
44+
font-style: normal;
45+
font-weight: 700;
46+
src:
47+
url(./fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'),
48+
url(./fonts/KaTeX_Caligraphic-Bold.woff) format('woff'),
49+
url(./fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');
50+
}
51+
@font-face {
52+
font-display: block;
53+
font-family: KaTeX_Caligraphic;
54+
font-style: normal;
55+
font-weight: 400;
56+
src:
57+
url(./fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'),
58+
url(./fonts/KaTeX_Caligraphic-Regular.woff) format('woff'),
59+
url(./fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');
60+
}
61+
@font-face {
62+
font-display: block;
63+
font-family: KaTeX_Fraktur;
64+
font-style: normal;
65+
font-weight: 700;
66+
src:
67+
url(./fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'),
68+
url(./fonts/KaTeX_Fraktur-Bold.woff) format('woff'),
69+
url(./fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');
70+
}
71+
@font-face {
72+
font-display: block;
73+
font-family: KaTeX_Fraktur;
74+
font-style: normal;
75+
font-weight: 400;
76+
src:
77+
url(./fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'),
78+
url(./fonts/KaTeX_Fraktur-Regular.woff) format('woff'),
79+
url(./fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');
80+
}
81+
@font-face {
82+
font-display: block;
83+
font-family: KaTeX_Main;
84+
font-style: normal;
85+
font-weight: 700;
86+
src:
87+
url(./fonts/KaTeX_Main-Bold.woff2) format('woff2'),
88+
url(./fonts/KaTeX_Main-Bold.woff) format('woff'),
89+
url(./fonts/KaTeX_Main-Bold.ttf) format('truetype');
90+
}
91+
@font-face {
92+
font-display: block;
93+
font-family: KaTeX_Main;
94+
font-style: italic;
95+
font-weight: 700;
96+
src:
97+
url(./fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'),
98+
url(./fonts/KaTeX_Main-BoldItalic.woff) format('woff'),
99+
url(./fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');
100+
}
101+
@font-face {
102+
font-display: block;
103+
font-family: KaTeX_Main;
104+
font-style: italic;
105+
font-weight: 400;
106+
src:
107+
url(./fonts/KaTeX_Main-Italic.woff2) format('woff2'),
108+
url(./fonts/KaTeX_Main-Italic.woff) format('woff'),
109+
url(./fonts/KaTeX_Main-Italic.ttf) format('truetype');
110+
}
111+
@font-face {
112+
font-display: block;
113+
font-family: KaTeX_Main;
114+
font-style: normal;
115+
font-weight: 400;
116+
src:
117+
url(./fonts/KaTeX_Main-Regular.woff2) format('woff2'),
118+
url(./fonts/KaTeX_Main-Regular.woff) format('woff'),
119+
url(./fonts/KaTeX_Main-Regular.ttf) format('truetype');
120+
}
121+
@font-face {
122+
font-display: block;
123+
font-family: KaTeX_Math;
124+
font-style: italic;
125+
font-weight: 700;
126+
src:
127+
url(./fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'),
128+
url(./fonts/KaTeX_Math-BoldItalic.woff) format('woff'),
129+
url(./fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');
130+
}
131+
@font-face {
132+
font-display: block;
133+
font-family: KaTeX_Math;
134+
font-style: italic;
135+
font-weight: 400;
136+
src:
137+
url(./fonts/KaTeX_Math-Italic.woff2) format('woff2'),
138+
url(./fonts/KaTeX_Math-Italic.woff) format('woff'),
139+
url(./fonts/KaTeX_Math-Italic.ttf) format('truetype');
140+
}
141+
@font-face {
142+
font-display: block;
143+
font-family: KaTeX_SansSerif;
144+
font-style: normal;
145+
font-weight: 700;
146+
src:
147+
url(./fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'),
148+
url(./fonts/KaTeX_SansSerif-Bold.woff) format('woff'),
149+
url(./fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');
150+
}
151+
@font-face {
152+
font-display: block;
153+
font-family: KaTeX_SansSerif;
154+
font-style: italic;
155+
font-weight: 400;
156+
src:
157+
url(./fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'),
158+
url(./fonts/KaTeX_SansSerif-Italic.woff) format('woff'),
159+
url(./fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');
160+
}
161+
@font-face {
162+
font-display: block;
163+
font-family: KaTeX_SansSerif;
164+
font-style: normal;
165+
font-weight: 400;
166+
src:
167+
url(./fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'),
168+
url(./fonts/KaTeX_SansSerif-Regular.woff) format('woff'),
169+
url(./fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');
170+
}
171+
@font-face {
172+
font-display: block;
173+
font-family: KaTeX_Script;
174+
font-style: normal;
175+
font-weight: 400;
176+
src:
177+
url(./fonts/KaTeX_Script-Regular.woff2) format('woff2'),
178+
url(./fonts/KaTeX_Script-Regular.woff) format('woff'),
179+
url(./fonts/KaTeX_Script-Regular.ttf) format('truetype');
180+
}
181+
@font-face {
182+
font-display: block;
183+
font-family: KaTeX_Size1;
184+
font-style: normal;
185+
font-weight: 400;
186+
src:
187+
url(./fonts/KaTeX_Size1-Regular.woff2) format('woff2'),
188+
url(./fonts/KaTeX_Size1-Regular.woff) format('woff'),
189+
url(./fonts/KaTeX_Size1-Regular.ttf) format('truetype');
190+
}
191+
@font-face {
192+
font-display: block;
193+
font-family: KaTeX_Size2;
194+
font-style: normal;
195+
font-weight: 400;
196+
src:
197+
url(./fonts/KaTeX_Size2-Regular.woff2) format('woff2'),
198+
url(./fonts/KaTeX_Size2-Regular.woff) format('woff'),
199+
url(./fonts/KaTeX_Size2-Regular.ttf) format('truetype');
200+
}
201+
@font-face {
202+
font-display: block;
203+
font-family: KaTeX_Size3;
204+
font-style: normal;
205+
font-weight: 400;
206+
src:
207+
url(./fonts/KaTeX_Size3-Regular.woff2) format('woff2'),
208+
url(./fonts/KaTeX_Size3-Regular.woff) format('woff'),
209+
url(./fonts/KaTeX_Size3-Regular.ttf) format('truetype');
210+
}
211+
@font-face {
212+
font-display: block;
213+
font-family: KaTeX_Size4;
214+
font-style: normal;
215+
font-weight: 400;
216+
src:
217+
url(./fonts/KaTeX_Size4-Regular.woff2) format('woff2'),
218+
url(./fonts/KaTeX_Size4-Regular.woff) format('woff'),
219+
url(./fonts/KaTeX_Size4-Regular.ttf) format('truetype');
220+
}
221+
@font-face {
222+
font-display: block;
223+
font-family: KaTeX_Typewriter;
224+
font-style: normal;
225+
font-weight: 400;
226+
src:
227+
url(./fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'),
228+
url(./fonts/KaTeX_Typewriter-Regular.woff) format('woff'),
229+
url(./fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');
230+
}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)