use sprite-full for icons

This commit is contained in:
Brett Jephson
2026-04-08 14:20:49 +01:00
parent 0e10124626
commit 0933175a89
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@gitbook/icons": patch
---
Icon clipping fix
+3 -3
View File
@@ -21,7 +21,7 @@ async function main() {
await fs.mkdir(outputFolder, { recursive: true });
// Copy the assets from
// source/sprites to outputFolder/sprites
// source/sprites-full to outputFolder/sprites
// source/svgs to outputFolder/svgs
await Promise.all([
...stylesToCopy.map((style) => {
@@ -34,10 +34,10 @@ async function main() {
}
}),
...stylesToCopy.map((style) => {
const spritePath = path.join(source, `sprites/${style}.svg`);
const spritePath = path.join(source, `sprites-full/${style}.svg`);
if (existsSync(spritePath)) {
return fs.cp(
path.join(source, `sprites/${style}.svg`),
path.join(source, `sprites-full/${style}.svg`),
path.join(outputFolder, 'sprites', `${style}.svg`)
);
}