Skip to content

Commit

Permalink
Add lastUpdate badge
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Sep 4, 2023
1 parent 95cbf19 commit ce36318
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Zotero 插件合集

![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/northword/zotero-plugins/main.yml)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/northword/zotero-plugins/gh-pages)
![最后更新](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnorthword%2Fzotero-plugins%2Fgh-pages%2Fplugins.json&query=%24.lastUpdate&label=%E6%9C%80%E5%90%8E%E6%9B%B4%E6%96%B0)

本仓库提供了若干 Zotero 插件的信息及其 xpi 包,尝试在 Zotero 官方插件商店建立前,提供集中的插件商店服务。

## 访问
Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Zotero 插件下载

?> 本页面每 8 小时更新一次,上次更新:{time}(北京时间)。
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/northword/zotero-plugins/main.yml)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/northword/zotero-plugins/gh-pages)
![最后更新](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnorthword%2Fzotero-plugins%2Fgh-pages%2Fplugins.json&query=%24.lastUpdate&label=%E6%9C%80%E5%90%8E%E6%9B%B4%E6%96%B0)

本页面为每一个插件都提供了多个下载地址,请逐个尝试选择可用的地址。火狐浏览器用户请通过在链接上右击,选择“另存为”来下载 `XPI` 包。插件之间可能存在冲突,**建议按需安装**

Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,16 @@ async function main() {
await progressPlugins();
// console.log(JSON.stringify(plugins, null, 2));
// writeFile(`${dist}/plugins.json`, JSON.stringify(plugins, null, 2));

console.log("处理 Markdown");
writeMarkdown();

console.log("完成");

let shields = {
lastUpdate: new Date().toLocaleString("zh-CN"),
};
writeFile(`${dist}/shields.json`, JSON.stringify(shields, null, 2));
}

main().catch((err) => {
Expand Down

0 comments on commit ce36318

Please sign in to comment.