diff --git a/.build/generate-icons-comment.mjs b/.build/generate-icons-comment.mjs index f7a6d165a..db7a7ac53 100644 --- a/.build/generate-icons-comment.mjs +++ b/.build/generate-icons-comment.mjs @@ -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 += `| ${iconName} | \`${iconName}.svg\` | ${category || '❌ No category'} | ${tags.join(', ') || '❌ No tags' } |\n` + markdown += `| ${iconName} | \`${iconName}.svg\`${type === 'outline' ? ` | ${category || '❌ No category'} | ${tags.join(', ') || '❌ No tags' }` : ''}|\n` }) markdown += `\n`