Skip to content

Add icons metadata files#2114

Open
blakegearin wants to merge 1 commit into
twbs:mainfrom
blakegearin:main
Open

Add icons metadata files#2114
blakegearin wants to merge 1 commit into
twbs:mainfrom
blakegearin:main

Conversation

@blakegearin

@blakegearin blakegearin commented Mar 2, 2025

Copy link
Copy Markdown

Summary

  • Added build script for generating a metadata directory with JSON files for icons and categories

Notes

  • This treats the docs/content/icons/*.md files as the source of truth

  • Pulling in js-yaml seemed to be the best way to convert Frontmatter to JSON; there are other similar packages but they're significantly less popular and battle-tested

  • If YML is preferred over JSON, please let me know and I can adapt the script

  • This is common to provide among icon libraries since it enables search (Font Awesome, Ionicons, Lucide, Tabler)

  • The primary concern this is trying to address is that tags & categories are not available in bulk like icons are with the sprite

@XhmikosR XhmikosR added enhancement New feature or request build labels Mar 19, 2025
@blakegearin

Copy link
Copy Markdown
Author

Rebased to fix conflicts.

@XhmikosR Let me know if you have any feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants