|
@ -39,18 +39,25 @@ const renderItem = ( |
|
|
`[![${filename}](thumbnail/${filename})](screenshot/${filename})` |
|
|
`[![${filename}](thumbnail/${filename})](screenshot/${filename})` |
|
|
).join("\n"); |
|
|
).join("\n"); |
|
|
|
|
|
|
|
|
return `### ${name}\n\n` + |
|
|
const lines: string[] = []; |
|
|
(note === "" ? "" : `${note}\n\n`) + |
|
|
lines.push(`### ${name}`, ""); |
|
|
(website === "" ? "" : `* [Website](${website})\n`) + |
|
|
if (note !== "") { |
|
|
(github === "" |
|
|
lines.push(note, ""); |
|
|
? "" |
|
|
} |
|
|
: `* [Repository](https://github.com/${github}) ![GitHub stars](https://img.shields.io/github/stars/${github}?style=flat-square) ` + |
|
|
if (website !== "") lines.push(`* [Website](${website})`); |
|
|
|
|
|
if (github !== "") { |
|
|
|
|
|
lines.push( |
|
|
|
|
|
`* [Repository](https://github.com/${github}) ![GitHub stars](https://img.shields.io/github/stars/${github}?style=flat-square) ` + |
|
|
`![GitHub contributors](https://img.shields.io/github/contributors-anon/${github}?style=flat-square) ` + |
|
|
`![GitHub contributors](https://img.shields.io/github/contributors-anon/${github}?style=flat-square) ` + |
|
|
`![Last commit](https://img.shields.io/github/last-commit/${github}?style=flat-square) ` + |
|
|
`![Last commit](https://img.shields.io/github/last-commit/${github}?style=flat-square) ` + |
|
|
`![GitHub open issues](https://img.shields.io/github/issues-raw/${github}?style=flat-square) ` + |
|
|
`![GitHub open issues](https://img.shields.io/github/issues-raw/${github}?style=flat-square) ` + |
|
|
`![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/${github}?style=flat-square)\n`) + |
|
|
`![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/${github}?style=flat-square)`, |
|
|
(demo === "" ? "" : `* [Demo](${demo})\n\n`) + |
|
|
); |
|
|
screenshotMarkdown; |
|
|
} |
|
|
|
|
|
if (demo !== "") lines.push(`* [Demo](${demo})`); |
|
|
|
|
|
lines.push("", screenshotMarkdown); |
|
|
|
|
|
|
|
|
|
|
|
return lines.join("\n"); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|