Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Prepare for Simple Icons 15 (#44)

LitoMore357aeb6c3609
diff --git a/scripts/src/icons/README.md b/scripts/src/icons/README.md
index 77d2bd0a..150f5edf 100644
--- a/scripts/src/icons/README.md
+++ b/scripts/src/icons/README.md
@@ -16,7 +16,8 @@ By consolidating icons from [Remix Icon](https://github.com/Remix-Design/RemixIc
- Unzips the downloaded archives into a temporary working directory (`src/icons/temp`).
- For **Remix Icon**, it reads a `tags.json` file (inside the unzipped folder) to identify additional icon tags and categories.
- - For **Simple Icons**, it reads a `_data/simple-icons.json` file to gather icon metadata (such as official title and slug).
+ - For **Simple Icons 14 or earlier**, it reads a `_data/simple-icons.json` file to gather icon metadata (such as official title and slug).
+ - For **Simple Icons 15 or later**, it reads a `data/simple-icons.json` file to gather icon metadata.
3. **Process & Generate**
diff --git a/scripts/src/icons/index.ts b/scripts/src/icons/index.ts
index 0b3c610c..70dd5390 100644
--- a/scripts/src/icons/index.ts
+++ b/scripts/src/icons/index.ts
@@ -88,7 +88,7 @@ const SIMPLE_ICONS_DIR_PATH = path.join(
);
const SIMPLE_ICONS_DATA_FILE_PATH = path.join(
SIMPLE_ICONS_DIR_PATH,
- '_data',
+ Number(SIMPLE_ICONS_TAG.split('.').at(0)) >= 15 ? 'data' : '_data',
'simple-icons.json'
);
const SIMPLE_ICONS_ICONS_DIR_PATH = path.join(SIMPLE_ICONS_DIR_PATH, 'icons');