Skip to content

Commit

Permalink
fix: add missing font variant (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jan 8, 2025
1 parent 010febf commit db42c29
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,20 @@ const config: Config = {
href: "/docs/fonts/fonts.css",
},
},
...["InterVariable.woff2?v=4.0", "JetBrainsMono-Regular.woff2"].map(
(font: string) => ({
tagName: "link",
attributes: {
rel: "preload",
type: "font/woff2",
as: "font",
crossOrigin: "anonymous",
href: `/docs/fonts/${font.includes("Inter") ? "Inter" : "JetBrainsMono"}/${font}`,
},
}),
),
...[
"InterVariable.woff2?v=4.0",
"JetBrainsMono-Regular.woff2",
"JetBrainsMono-Italic.woff2",
].map((font: string) => ({
tagName: "link",
attributes: {
rel: "preload",
type: "font/woff2",
as: "font",
crossOrigin: "anonymous",
href: `/docs/fonts/${font.includes("Inter") ? "Inter" : "JetBrainsMono"}/${font}`,
},
})),
],
scripts: [
// Needed as a workaround for https://answers.netlify.com/t/trailing-slash-missing-on-proxied-netlify-site/36367
Expand Down

0 comments on commit db42c29

Please sign in to comment.