Skip to content

Commit

Permalink
chore: always fold Icon as code preview comment (#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguddas authored Apr 18, 2024
1 parent c2c85fb commit 439ee3f
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions scripts/generateChangedIconsCommentMarkup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,13 @@ ${changeFilesLowDPIImageTags}<br/>
<summary>Icon X-rays</summary>
${changeFilesXRayImageTags}
</details>
<summary>Icons as code</summary>
${
// collapse code block if it's too long
readyToUseCode.split('/n').length < 20
? '### Icons as code'
: `<details>
<summary><h3>Icons as code</h3></summary>
`
}
Only working for:
\`lucide-react\`, \`lucide-react-native\`, \`lucide-preact\`, \`lucide-vue-next\`
Works for: \`lucide-react\`, \`lucide-react-native\`, \`lucide-preact\`, \`lucide-vue-next\`
\`\`\`ts
${readyToUseCode}
\`\`\`${readyToUseCode.split('/n').length < 20 ? '' : '\n\n</details>'}
`;
\`\`\`
</details>`;

console.log(commentMarkup);

0 comments on commit 439ee3f

Please sign in to comment.