Merge branch 'main' of https://github.com/tabler/tabler-icons into add-icon/filled/crown

This commit is contained in:
codecalm 2025-12-23 02:26:51 +01:00
commit 8f69cb1a4f
1 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ function generateIconsTable(icons, type) {
const typeName = type === 'outline' ? 'Outline' : 'Filled'
let markdown = `### ${typeName} Icons (${icons.length})\n\n`
markdown += `| Icon | Name | Category | Tags |\n`
markdown += `|------|------|------|------|\n`
markdown += `| Icon | Name ${type === 'outline' ? '| Category | Tags ' : ''}|\n`
markdown += `|------|------${type === 'outline' ? '|------|------' : ''}|\n`
icons.forEach(iconPath => {
const iconName = basename(iconPath, '.svg')
@ -67,7 +67,7 @@ function generateIconsTable(icons, type) {
const tags = data.tags || []
// Use GitHub raw file URL - GitHub Comments support external image URLs
markdown += `| <img src="${rawUrl}" width="240" height="240" alt="${iconName}" /> | \`${iconName}.svg\` | ${category || '❌ No category'} | ${tags.join(', ') || '❌ No tags' } |\n`
markdown += `| <img src="${rawUrl}" width="240" height="240" alt="${iconName}" /> | \`${iconName}.svg\`${type === 'outline' ? ` | ${category || '❌ No category'} | ${tags.join(', ') || '❌ No tags' }` : ''}|\n`
})
markdown += `\n`