refactor: remove suggestion to add theme from generate theme doc script (#4400)

This commit is contained in:
Alexandr Garbuzov
2025-09-07 21:21:03 +03:00
committed by GitHub
parent 71dd0da906
commit 7a2d13430d
-13
View File
@@ -39,11 +39,6 @@ ${REPO_CARD_TABLE_FLAG}
${STAT_CARD_LINKS_FLAG}
${REPO_CARD_LINKS_FLAG}
[add-theme]: https://github.com/anuraghazra/github-readme-stats/edit/master/themes/index.js
Want to add a new theme? Consider reading the [contribution guidelines](../CONTRIBUTING.md#themes-contribution) :D
`;
const createRepoMdLink = (theme) => {
@@ -81,15 +76,7 @@ const generateTable = ({ isRepoCard }) => {
let tableItem2 = createTableItem({ link: two, label: two, isRepoCard });
let tableItem3 = createTableItem({ link: three, label: three, isRepoCard });
if (three === undefined) {
tableItem3 = `[Add your theme][add-theme]`;
}
rows.push(`| ${tableItem1} | ${tableItem2} | ${tableItem3} |`);
// if it's the last row & the row has no empty space push a new row
if (three && i + 3 === themesFiltered.length) {
rows.push(`| [Add your theme][add-theme] | | |`);
}
}
return rows.join("\n");