diff --git a/.build/import-categories.mjs b/.build/import-categories.mjs index fc0b7c82b..f302b4cf4 100644 --- a/.build/import-categories.mjs +++ b/.build/import-categories.mjs @@ -4,11 +4,11 @@ import { resolve, join, basename } from 'path' import { ICONS_SRC_DIR } from './helpers.mjs' // const extensions = ['heart', 'star', 'off', 'bolt', 'cancel', 'check', 'cog', 'dollar', 'dot', 'eco', 'edit', 'x', 'plus', 'minus', 'shield', 'up', 'down', 'move', 'link', 'ribbon', 'question', 'exclamation', '2', '3', 'code', 'pause', 'pin', 'search', 'share', 'hand', 'infinity', 'ai'] -const extensions = ['off', 'spark'] +const extensions = ['off', 'ai', 'spark'] extensions.forEach(function (extension) { - glob.sync(join(ICONS_SRC_DIR, `*-${extension}.svg`)).forEach(function (file, i) { + glob.sync(join(ICONS_SRC_DIR, `outline/*-${extension}.svg`)).forEach(function (file, i) { const fileOriginal = file.replace(`-${extension}.svg`, '.svg') if (fs.existsSync(fileOriginal)) { @@ -20,17 +20,17 @@ extensions.forEach(function (extension) { if (categoryOriginal || tagsOriginal) { let data = fs.readFileSync(file).toString() - data = data.replace(/(---[\s\S]+?---)/, function (m, headerContent) { + data = data.replace(/(\<\!--[\s\S]+?-->)/, function (m, headerContent) { console.log('categoryOriginal', fileOriginal, categoryOriginal && categoryOriginal[1], tagsOriginal && tagsOriginal[1]) if (categoryOriginal) { headerContent = headerContent.replace(/category: .*\n/, '') - headerContent = headerContent.replace(/---/, `---\ncategory: ${categoryOriginal[1]}`) + headerContent = headerContent.replace(/\<\!--/, ` diff --git a/icons/outline/battery-spark.svg b/icons/outline/battery-spark.svg index c3871caaa..1c8d1afb2 100644 --- a/icons/outline/battery-spark.svg +++ b/icons/outline/battery-spark.svg @@ -1,4 +1,6 @@ diff --git a/icons/outline/bed-off.svg b/icons/outline/bed-off.svg index 97e0eb916..def0f9a3b 100644 --- a/icons/outline/bed-off.svg +++ b/icons/outline/bed-off.svg @@ -1,5 +1,5 @@ diff --git a/icons/outline/briefcase-off.svg b/icons/outline/briefcase-off.svg index 471c4b31e..4e6532039 100644 --- a/icons/outline/briefcase-off.svg +++ b/icons/outline/briefcase-off.svg @@ -1,5 +1,5 @@ diff --git a/icons/outline/camera-ai.svg b/icons/outline/camera-ai.svg index 03289456c..6468bd3da 100644 --- a/icons/outline/camera-ai.svg +++ b/icons/outline/camera-ai.svg @@ -1,4 +1,5 @@ diff --git a/icons/outline/heart-spark.svg b/icons/outline/heart-spark.svg index 72021a5ef..df7f72664 100644 --- a/icons/outline/heart-spark.svg +++ b/icons/outline/heart-spark.svg @@ -1,4 +1,6 @@