Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sharp-solid font to docsite #1813

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can switch to an existing tab by clicking on it in the tab bar. You can also

### Pinning a tab

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.
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.

## Tab Layout System

Expand Down
16 changes: 15 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ const config: Config = {
href: `${baseUrl}fontawesome/webfonts/fa-sharp-regular-400.woff2`,
},
},
{
tagName: "link",
attributes: {
rel: "preload",
as: "font",
type: "font/woff2",
"data-next-font": "size-adjust",
href: `${baseUrl}fontawesome/webfonts/fa-sharp-solid-900.woff2`,
},
},
{
tagName: "link",
attributes: {
Expand All @@ -176,7 +186,11 @@ const config: Config = {
},
},
].filter((v) => v),
stylesheets: [`${baseUrl}fontawesome/css/fontawesome.min.css`, `${baseUrl}fontawesome/css/sharp-regular.min.css`],
stylesheets: [
`${baseUrl}fontawesome/css/fontawesome.min.css`,
`${baseUrl}fontawesome/css/sharp-regular.min.css`,
`${baseUrl}fontawesome/css/sharp-solid.min.css`,
],
esimkowitz marked this conversation as resolved.
Show resolved Hide resolved
staticDirectories: ["static", "storybook"],
};

Expand Down
10 changes: 1 addition & 9 deletions docs/static/fontawesome/css/fontawesome.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/static/fontawesome/css/sharp-regular.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
* Copyright 2023 Fonticons, Inc.
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-sharp:"Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp"}@font-face{font-family:"Font Awesome 6 Sharp";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-sharp-regular-400.woff2) format("woff2"),url(../webfonts/fa-sharp-regular-400.ttf) format("truetype")}.fa-regular,.fasr{font-weight:400}
6 changes: 6 additions & 0 deletions docs/static/fontawesome/css/sharp-solid.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
* Copyright 2024 Fonticons, Inc.
*/
: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 modified docs/static/fontawesome/webfonts/fa-sharp-regular-400.woff2
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions public/fontawesome/css/brands.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/fontawesome/css/sharp-regular.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
* Copyright 2023 Fonticons, Inc.
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-sharp:"Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp"}@font-face{font-family:"Font Awesome 6 Sharp";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-sharp-regular-400.woff2) format("woff2"),url(../webfonts/fa-sharp-regular-400.ttf) format("truetype")}.fa-regular,.fasr{font-weight:400}
4 changes: 2 additions & 2 deletions public/fontawesome/css/sharp-solid.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
* Copyright 2023 Fonticons, Inc.
* Copyright 2024 Fonticons, Inc.
*/
: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}
4 changes: 2 additions & 2 deletions public/fontawesome/css/solid.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
* Copyright 2023 Fonticons, Inc.
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Pro";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Pro"}@font-face{font-family:"Font Awesome 6 Pro";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}
Binary file modified public/fontawesome/webfonts/custom-icons.woff2
Binary file not shown.
Binary file modified public/fontawesome/webfonts/fa-brands-400.woff2
Binary file not shown.
Binary file modified public/fontawesome/webfonts/fa-sharp-regular-400.woff2
Binary file not shown.
Binary file modified public/fontawesome/webfonts/fa-sharp-solid-900.woff2
Binary file not shown.
Binary file modified public/fontawesome/webfonts/fa-solid-900.woff2
Binary file not shown.
Loading