Skip to content

Commit b169636

Browse files
committed
Add sharp-solid font to docsite
1 parent 088964f commit b169636

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

docs/docs/tabs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You can switch to an existing tab by clicking on it in the tab bar. You can also
4343

4444
### Pinning a tab
4545

46-
Pinning a tab makes it harder to close accidentally. You can pin a tab by right-clicking on it and selecting "Pin Tab" from the context menu that appears. You can also pin a tab by dragging it to a lesser index than an existing pinned tab. When a tab is pinned, the <i className="fa-sharp fa-xmark-large" title="x"/> button for the tab will be replaced with a <i className="fa-sharp fa-thumbtack" title="pin"/> button. Clicking this button will unpin the tab. You can also unpin a tab by dragging it to an index higher than an existing unpinned tab.
46+
Pinning a tab makes it harder to close accidentally. You can pin a tab by right-clicking on it and selecting "Pin Tab" from the context menu that appears. You can also pin a tab by dragging it to a lesser index than an existing pinned tab. When a tab is pinned, the <i className="fa-sharp fa-xmark-large" title="x"/> button for the tab will be replaced with a <i className="fa-solid fa-sharp fa-thumbtack" title="pin"/> button. Clicking this button will unpin the tab. You can also unpin a tab by dragging it to an index higher than an existing unpinned tab.
4747

4848
## Tab Layout System
4949

docs/docusaurus.config.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ const config: Config = {
158158
href: `${baseUrl}fontawesome/webfonts/fa-sharp-regular-400.woff2`,
159159
},
160160
},
161+
{
162+
tagName: "link",
163+
attributes: {
164+
rel: "preload",
165+
as: "font",
166+
type: "font/woff2",
167+
"data-next-font": "size-adjust",
168+
href: `${baseUrl}fontawesome/webfonts/fa-sharp-solid-900.woff2`,
169+
},
170+
},
161171
{
162172
tagName: "link",
163173
attributes: {
@@ -176,7 +186,11 @@ const config: Config = {
176186
},
177187
},
178188
].filter((v) => v),
179-
stylesheets: [`${baseUrl}fontawesome/css/fontawesome.min.css`, `${baseUrl}fontawesome/css/sharp-regular.min.css`],
189+
stylesheets: [
190+
`${baseUrl}fontawesome/css/fontawesome.min.css`,
191+
`${baseUrl}fontawesome/css/sharp-regular.min.css`,
192+
`${baseUrl}fontawesome/css/sharp-solid.min.css`,
193+
],
180194
staticDirectories: ["static", "storybook"],
181195
};
182196

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*!
2+
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
3+
* License - https://fontawesome.com/license (Commercial License)
4+
* Copyright 2024 Fonticons, Inc.
5+
*/
6+
:host,:root{--fa-style-family-sharp:"Font Awesome 6 Sharp";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp"}@font-face{font-family:"Font Awesome 6 Sharp";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-sharp-solid-900.woff2) format("woff2"),url(../webfonts/fa-sharp-solid-900.ttf) format("truetype")}.fa-solid,.fass{font-weight:900}
Binary file not shown.

0 commit comments

Comments
 (0)