Skip to content

Commit 1fcde63

Browse files
committed
style(readme): 优化版本信息块的格式和样式
- 修改 README.md 中版本信息块为引用格式,提升可读性 - 调整脚本 update-readme-version.ts 生成的新版本信息块样式 - 增加版本信息块中换行间隔,使内容更清晰 - 更新 scripts/README.md 中关于版本信息块样式的文档说明
1 parent 6f2b79f commit 1fcde63

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
[![GitHub Pages](https://img.shields.io/github/actions/workflow/status/Drswith/usb.ids/github-pages.yml?label=github%20pages)](https://github.com/Drswith/usb.ids/actions/workflows/github-pages.yml)
88

99
<!-- START VERSION PLACEHOLDER -->
10+
1011
> **📦 Latest Release**
11-
> **Version:** `1.0.1756751242553`
12-
> **Updated:** `2025-09-01 18:27:22 UTC`
12+
>
13+
> **Version:** `1.0.1756734426891`
14+
> **Updated:** `2025-09-01 13:47:06 UTC`
1315
> **Status:** ✅ Auto-updated daily
1416
1517
<!-- END VERSION PLACEHOLDER -->

scripts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The script updates README.md with a styled version block:
5353

5454
```markdown
5555
> **📦 Latest Release**
56+
>
5657
> **Version:** `1.0.xxxxx`
5758
> **Updated:** `YYYY-MM-DD HH:MM:SS UTC`
5859
> **Status:** ✅ Auto-updated daily

scripts/update-readme-version.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ function updateReadmeVersion(): void {
6161

6262
// 构建新的版本信息块
6363
const newVersionBlock = `
64+
6465
> **📦 Latest Release**
66+
>
6567
> **Version:** \`${version}\`
6668
> **Updated:** \`${updateTime}\`
6769
> **Status:** ✅ Auto-updated daily

0 commit comments

Comments
 (0)