Skip to content

Commit db42c29

Browse files
authored
fix: add missing font variant (#1999)
1 parent 010febf commit db42c29

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

docusaurus.config.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,20 @@ const config: Config = {
285285
href: "/docs/fonts/fonts.css",
286286
},
287287
},
288-
...["InterVariable.woff2?v=4.0", "JetBrainsMono-Regular.woff2"].map(
289-
(font: string) => ({
290-
tagName: "link",
291-
attributes: {
292-
rel: "preload",
293-
type: "font/woff2",
294-
as: "font",
295-
crossOrigin: "anonymous",
296-
href: `/docs/fonts/${font.includes("Inter") ? "Inter" : "JetBrainsMono"}/${font}`,
297-
},
298-
}),
299-
),
288+
...[
289+
"InterVariable.woff2?v=4.0",
290+
"JetBrainsMono-Regular.woff2",
291+
"JetBrainsMono-Italic.woff2",
292+
].map((font: string) => ({
293+
tagName: "link",
294+
attributes: {
295+
rel: "preload",
296+
type: "font/woff2",
297+
as: "font",
298+
crossOrigin: "anonymous",
299+
href: `/docs/fonts/${font.includes("Inter") ? "Inter" : "JetBrainsMono"}/${font}`,
300+
},
301+
})),
300302
],
301303
scripts: [
302304
// Needed as a workaround for https://answers.netlify.com/t/trailing-slash-missing-on-proxied-netlify-site/36367

0 commit comments

Comments
 (0)