mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-18 22:08:13 +00:00
update doc
This commit is contained in:
@@ -26,11 +26,18 @@ def fix_path(doc_root_path):
|
||||
context = read_file(file)
|
||||
matches = pattern.findall(context)
|
||||
|
||||
edited = False
|
||||
for match in matches:
|
||||
target = "](" + file_map[match.split("/")[-1].replace("](", "")]
|
||||
context = context.replace(match, target)
|
||||
print(match, target)
|
||||
if target != match:
|
||||
print(match, target)
|
||||
edited = True
|
||||
print(file, match, target)
|
||||
|
||||
with open(file, "w", encoding="utf-8") as f:
|
||||
f.write(context)
|
||||
if edited:
|
||||
with open(file, "w", encoding="utf-8") as f:
|
||||
f.write(context)
|
||||
|
||||
fix_path("doc/zh")
|
||||
fix_path("doc/en")
|
||||
Reference in New Issue
Block a user