Skip to content

Commit

Permalink
chore: 更新文档中的讨论计数显示方式
Browse files Browse the repository at this point in the history
将文档中的讨论计数显示方式改为使用表情符号表示
  • Loading branch information
alanhe421 committed Dec 5, 2024
1 parent 2b8e1e3 commit 288e448
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function updateHomeReadme(items) {
console.log('readmeContent-before', readmeContent);
const newReadmeContent = readmeContent
.replace(/(?<=<!--workflow-start-->)[\s\S]*(?=<!--workflow-end-->)/, workflowsListStr)
.replace(/(?<=<!--readme:discussionCount-start-->)[\s\S]+(?=<!--readme:discussionCount-end-->)/, `${discussionCount}`);
.replace(/(?<=<!--discussionCount-start-->)[\s\S]+(?=<!--discussionCount-end-->)/, `${Numbers.toEmoji(discussionCount)}`);
console.log('readmeContent-after', newReadmeContent);
fs.writeFileSync(filePath, newReadmeContent);
}
Expand Down
16 changes: 2 additions & 14 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,25 +476,13 @@ P.S.: 使用这些Workflow的前提是已购买[Powerpack](https://www.alfredapp

这里我记录了平时遇到的一些小技巧,小问题。

欢迎到 ➡️ [Discussion](https://github.com/alanhg/alfred-workflows/discussions)🔥
<!-- readme:discussionCount-start -->
<table>
<tr>
<td align="center">
<a href="https://github.com/discussioncount">
<img src="" width="100;" alt="discussioncount"/>
<br />
<sub><b>Discussioncount</b></sub>
</a>
</td></tr>
</table>
<!-- readme:discussionCount-end -->
欢迎到 ➡️ [Discussion](https://github.com/alanhg/alfred-workflows/discussions)🔥<!--discussionCount-start-->0000<!--discussionCount-end-->
交流

## 赞助

- [Paypal](https://www.paypal.com/paypalme/alanhe421)
- [微信打赏](./.github/wechat-award.jpg)
- [微信打赏](./.github/wechat-award.jpg)

<a href="https://www.buymeacoffee.com/alanhg" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >

Expand Down
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,19 +476,7 @@ I developed the following SDK to improve workflow development efficiency.

## FAQ

Welcome ➡️ [Discussion](https://github.com/alanhg/alfred-workflows/discussions)🔥
<!-- readme:discussionCount-start -->
<table>
<tr>
<td align="center">
<a href="https://github.com/discussioncount">
<img src="" width="100;" alt="discussioncount"/>
<br />
<sub><b>Discussioncount</b></sub>
</a>
</td></tr>
</table>
<!-- readme:discussionCount-end -->
Welcome ➡️ [Discussion](https://github.com/alanhg/alfred-workflows/discussions)🔥<!--discussionCount-start-->0000<!--discussionCount-end-->

## Sponsor

Expand Down

0 comments on commit 288e448

Please sign in to comment.