Skip to content

Commit 97922d0

Browse files
authored
Merge pull request #9 from HKUDS/dev
update readme
2 parents c47b4c1 + 269b3c3 commit 97922d0

File tree

2 files changed

+101
-5
lines changed

2 files changed

+101
-5
lines changed

GITHUB_ANIMATION_FIX.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# 🔧 GitHub动态效果修复指南
2+
3+
## 🚨 **如果您的README动画不显示,请按以下步骤操作:**
4+
5+
### 方法1: 强制刷新GitHub缓存
6+
```bash
7+
# 在浏览器地址栏中,在您的GitHub仓库URL后添加查询参数
8+
https://github.com/yourusername/your-repo?refresh=1
9+
# 或者按 Ctrl+F5 (Windows) / Cmd+Shift+R (Mac) 强制刷新
10+
```
11+
12+
### 方法2: 检查动画服务状态
13+
访问以下URL,确认服务正常:
14+
- https://readme-typing-svg.demolab.com
15+
- 如果无法访问,请等待几分钟后重试
16+
17+
### 方法3: 使用优化版动画URL
18+
将README中的动画URL替换为以下优化版本:
19+
20+
```markdown
21+
<!-- 原版(可能有问题) -->
22+
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&size=42&duration=2000&pause=500&color=00FFFF&center=true&vCenter=true&width=800&height=70&lines=⚡+PAPER+TO+CODE+⚡;🧬+AI+RESEARCH+ENGINE+🧬" />
23+
24+
<!-- 优化版(更稳定) -->
25+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=40&duration=2000&pause=500&color=00FFFF&center=true&vCenter=true&width=600&lines=PAPER+TO+CODE;AI+RESEARCH+ENGINE" />
26+
```
27+
28+
### 方法4: 备用静态版本
29+
如果动画持续不工作,可以使用静态版本:
30+
31+
```markdown
32+
<div align="center">
33+
<h1>⚡ PAPER TO CODE ⚡</h1>
34+
<h2>🧬 AI RESEARCH ENGINE 🧬</h2>
35+
<p>🚀 NEURAL • AUTONOMOUS • REVOLUTIONARY 🚀</p>
36+
<p>💻 Transform Research Papers into Production Code 💻</p>
37+
</div>
38+
```
39+
40+
## 🛠️ **常见问题解决:**
41+
42+
### Q: 为什么有些动画显示,有些不显示?
43+
A: 通常是URL中包含特殊字符(emoji)导致编码问题。建议:
44+
- 使用ASCII字符替代emoji
45+
- 缩短URL长度
46+
- 简化参数
47+
48+
### Q: 动画在本地预览正常,但GitHub上不显示?
49+
A: 这是GitHub缓存问题,解决方法:
50+
1. 等待5-10分钟让GitHub更新缓存
51+
2. 在URL后添加随机参数强制刷新
52+
3. 提交新的commit触发缓存更新
53+
54+
### Q: 如何测试动画是否正常?
55+
A: 直接在浏览器中打开动画URL:
56+
```
57+
https://readme-typing-svg.demolab.com?font=Fira+Code&size=30&color=00FFFF&lines=Test+Animation
58+
```
59+
如果能看到动画,说明服务正常。
60+
61+
## 🎯 **推荐的稳定配置:**
62+
63+
```markdown
64+
<!-- 主标题 - 稳定版 -->
65+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=35&duration=2000&pause=500&color=00FFFF&center=true&vCenter=true&width=500&lines=PAPER+TO+CODE" />
66+
67+
<!-- 副标题 - 稳定版 -->
68+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=18&duration=3000&pause=1000&color=FF6B9D&center=true&vCenter=true&width=600&lines=AI+Research+Engine;Transform+Papers+to+Code" />
69+
```
70+
71+
## 📊 **参数说明:**
72+
- `font=Fira+Code` - 编程友好字体,兼容性好
73+
- `size=35` - 适中的字体大小
74+
- `duration=2000` - 打字速度(毫秒)
75+
- `pause=500` - 行间暂停时间
76+
- `color=00FFFF` - 16进制颜色代码
77+
- `center=true` - 水平居中
78+
- `vCenter=true` - 垂直居中
79+
- `width=500` - SVG宽度(像素)
80+
- `lines=文本1;文本2` - 显示的文本行
81+
82+
## **快速修复命令:**
83+
84+
如果您想立即应用稳定版动画,可以运行:
85+
86+
```bash
87+
# 备份当前README
88+
cp README.md README_backup.md
89+
90+
# 应用修复(需要手动替换URL)
91+
# 将所有 JetBrains+Mono 改为 Fira+Code
92+
# 移除emoji,使用纯文本
93+
# 缩短width参数
94+
```
95+
96+
记住:**简单的配置往往更稳定!**

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div align="center">
22

3-
<!-- 科技感标题 -->
3+
<!-- 科技感标题 - 优化版 -->
44
<h1>
5-
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&size=42&duration=2000&pause=500&color=00FFFF&center=true&vCenter=true&width=800&height=70&lines=⚡+PAPER+TO+CODE+⚡;🧬+AI+RESEARCH+ENGINE+🧬" alt="Paper to Code" />
5+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=40&duration=2000&pause=500&color=00FFFF&center=true&vCenter=true&width=600&lines=PAPER+TO+CODE;AI+RESEARCH+ENGINE" alt="Paper to Code" />
66
</h1>
77

88
<h2>
9-
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&size=20&duration=3000&pause=1000&color=FF6B9D&center=true&vCenter=true&width=900&lines=🚀+NEURAL+•+AUTONOMOUS+•+REVOLUTIONARY+🚀;💻+Transform+Research+Papers+into+Production+Code+💻;🔬+Next-Generation+AI+Research+Automation+🔬;⚙️+Academic+Excellence+Meets+AI+Innovation+⚙️" alt="Subtitle" />
9+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=18&duration=3000&pause=1000&color=FF6B9D&center=true&vCenter=true&width=700&lines=NEURAL+AUTONOMOUS+REVOLUTIONARY;Transform+Research+Papers+into+Code;Next-Generation+AI+Automation;Academic+Excellence+Meets+Innovation" alt="Subtitle" />
1010
</h2>
1111

1212
<!-- 霓虹科技徽章 -->
@@ -28,7 +28,7 @@
2828

2929
<br>
3030

31-
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&size=18&duration=4000&pause=1500&color=00FFFF&center=true&vCenter=true&width=850&lines=🎯+From+Academic+Papers+to+Production+Code+in+Minutes;🧠+Powered+by+Advanced+AI+and+Neural+Networks;🔬+Bridging+Theory+and+Practice+with+Precision;⚡+The+Future+of+Research+Implementation+is+Here" alt="Dynamic Features" />
31+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=16&duration=3000&pause=1000&color=00FFFF&center=true&vCenter=true&width=700&lines=From+Academic+Papers+to+Production+Code;Powered+by+Advanced+AI+Networks;Bridging+Theory+and+Practice;The+Future+of+Research+Implementation" alt="Dynamic Features" />
3232

3333
<br>
3434

@@ -66,7 +66,7 @@ graph LR
6666

6767
## **CORE NEURAL MODULES**
6868

69-
<img src="https://readme-typing-svg.demolab.com?font=JetBrains+Mono&size=14&duration=2500&pause=800&color=FF6B9D&center=true&vCenter=true&width=700&lines=🔥+THREE+PILLAR+NEURAL+ARCHITECTURE+🔥;⚡+INTELLIGENT+•+AUTONOMOUS+•+SCALABLE+⚡" alt="Core Modules" />
69+
<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=14&duration=2500&pause=800&color=FF6B9D&center=true&vCenter=true&width=600&lines=THREE+PILLAR+NEURAL+ARCHITECTURE;INTELLIGENT+AUTONOMOUS+SCALABLE" alt="Core Modules" />
7070

7171
<br><br>
7272

0 commit comments

Comments
 (0)