mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 13:16:31 +00:00
doc: Add Q&A docs (#1174)
* docs: 添加常见问题解答文档并更新工作流配置
- 新增questions目录及构建错误FAQ文档
- 更新文档翻译工作流触发分支为master和doc-*
- 优化PR创建时的提交信息格式
Signed-off-by: longjin <longjin@DragonOS.org>
* ci: 改进文档翻译工作流并添加失败处理
- 添加获取短SHA步骤用于PR标题
- 在翻译脚本中添加失败退出逻辑
Signed-off-by: longjin <longjin@DragonOS.org>
* docs: Translation update [b7b5ea2c
] (#1173)
* Update translated documentation
---------
Co-authored-by: dragonosbot <bot@dragonos.org>
* 1
* 1
---------
Signed-off-by: longjin <longjin@DragonOS.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dragonosbot <bot@dragonos.org>
This commit is contained in:
@ -22,6 +22,7 @@ import re
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import threading
|
||||
from typing import List, Dict, Tuple
|
||||
import openai
|
||||
@ -454,6 +455,7 @@ class DocumentTranslator:
|
||||
lang_pbar.close()
|
||||
print(
|
||||
f"\n翻译完成! Succ: {total_tasks-self.fail_count}, Fail: {self.fail_count}")
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
@ -465,3 +467,6 @@ if __name__ == "__main__":
|
||||
|
||||
translator = DocumentTranslator()
|
||||
translator.run()
|
||||
|
||||
if translator.fail_count > 0:
|
||||
sys.exit(1)
|
||||
|
Reference in New Issue
Block a user