Skip to content

Commit

Permalink
chore: fix generated links
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Dec 29, 2024
1 parent c9377b6 commit 576ef88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/maa-cli/docs/gen_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for lang in en-US zh-CN zh-TW ja-JP ko-KR; do
cat "$file"
} > "$out_file"
# remap some relative links to github links
sedi -E 's|\.\./\.\./|https://github.com/MaaAssistantArknights/maa-cli/blob/main/maa-cli/|g' "$out_file"
sedi -E 's|\.\./\.\./|https://github.com/MaaAssistantArknights/maa-cli/blob/main/crates/maa-cli/|g' "$out_file"
# remap maa docs links to the relative links
sedi -E 's|https://maa\.plus/docs/[^/]+/(.+)\.html|../../\1.md|g' "$out_file"
done
Expand Down

0 comments on commit 576ef88

Please sign in to comment.