Skip to content

Commit 3c72ab8

Browse files
committed
refactor: remove suggestion to add theme from generate theme doc script
1 parent b0da085 commit 3c72ab8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

scripts/generate-theme-doc.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ ${REPO_CARD_TABLE_FLAG}
3939
${STAT_CARD_LINKS_FLAG}
4040
4141
${REPO_CARD_LINKS_FLAG}
42-
43-
44-
[add-theme]: https://github.com/anuraghazra/github-readme-stats/edit/master/themes/index.js
45-
46-
Want to add a new theme? Consider reading the [contribution guidelines](../CONTRIBUTING.md#themes-contribution) :D
4742
`;
4843

4944
const createRepoMdLink = (theme) => {
@@ -81,15 +76,7 @@ const generateTable = ({ isRepoCard }) => {
8176
let tableItem2 = createTableItem({ link: two, label: two, isRepoCard });
8277
let tableItem3 = createTableItem({ link: three, label: three, isRepoCard });
8378

84-
if (three === undefined) {
85-
tableItem3 = `[Add your theme][add-theme]`;
86-
}
8779
rows.push(`| ${tableItem1} | ${tableItem2} | ${tableItem3} |`);
88-
89-
// if it's the last row & the row has no empty space push a new row
90-
if (three && i + 3 === themesFiltered.length) {
91-
rows.push(`| [Add your theme][add-theme] | | |`);
92-
}
9380
}
9481

9582
return rows.join("\n");

0 commit comments

Comments
 (0)