Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update doc img #246

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/spec/authentic-consistent.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ title: 真实一致
- **声音音色**
- **行为动作**

![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*0MTlRYAWlCQAAAAAAAAAAAAADgCCAQ/fmt.webp)
![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

需要为中英文文档中的图片添加替代文本

这两个图片出现在中英文对照文档中是正常的,不属于 #245 issue 提到的重复问题。但是两个文档中的图片都缺少替代文本,建议添加以提高可访问性:

  • docs/spec/authentic-consistent.en-US.md: 添加英文替代文本
-![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
+![Behavioral actions example](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
  • docs/spec/authentic-consistent.zh-CN.md: 添加中文替代文本
-![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
+![行为动作示例](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
🔗 Analysis chain

需要添加图片替代文本并确认重复问题

为了提高文档的可访问性,建议为图片添加替代文本(alt text)。同时,请确认这张图片是否解决了 issue #245 中提到的PPT重复问题。

建议修改为:

-![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)
+![角色形象设计示例](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)

Let me verify if this image appears in any other locations and check the context around these occurrences to understand if they are legitimate dual-language documentation or actual duplicates.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# 检查文档中是否还存在重复的图片链接
rg -i "A\*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ" docs/

Length of output: 329


Script:

#!/bin/bash
# Check the context around the image in both files
echo "=== English version context ==="
rg -B 2 -A 2 "A\*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ" docs/spec/authentic-consistent.en-US.md

echo -e "\n=== Chinese version context ==="
rg -B 2 -A 2 "A\*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ" docs/spec/authentic-consistent.zh-CN.md

Length of output: 557

🧰 Tools
🪛 Markdownlint (0.35.0)

81-81: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

2 changes: 1 addition & 1 deletion docs/spec/authentic-consistent.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ title: 真实一致
- **声音音色**
- **行为动作**

![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*0MTlRYAWlCQAAAAAAAAAAAAADgCCAQ/fmt.webp)
![](https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*Ao8DSZhMfIAAAAAAAAAAAAAADgCCAQ/original)