diff --git a/docs/zkweekly/twitter/.gitignore b/docs/zkweekly/twitter/.gitignore new file mode 100644 index 0000000..8f47d6a --- /dev/null +++ b/docs/zkweekly/twitter/.gitignore @@ -0,0 +1 @@ +output.md \ No newline at end of file diff --git a/docs/zkweekly/twitter/other.md b/docs/zkweekly/twitter/other.md new file mode 100644 index 0000000..17db2ae --- /dev/null +++ b/docs/zkweekly/twitter/other.md @@ -0,0 +1,6 @@ +http://localhost:5173/zkweekly/twitter/output.html + + + +———— +以上由本人 @icerdesign 收集整理及注释,欢迎转发,署名即可。查看往期可访问:https://zkshanghai.xyz/zkweekly/2024/q3.html \ No newline at end of file diff --git a/docs/zkweekly/twitter/prompt.md b/docs/zkweekly/twitter/prompt.md new file mode 100644 index 0000000..392bc32 --- /dev/null +++ b/docs/zkweekly/twitter/prompt.md @@ -0,0 +1 @@ +翻译以下ZKP专题的内容为英文,同时请不要改变原始内容的格式,尤其不要变成markdown,这个是纯文本的内容: diff --git a/docs/zkweekly/twitter/run.sh b/docs/zkweekly/twitter/run.sh new file mode 100644 index 0000000..88477db --- /dev/null +++ b/docs/zkweekly/twitter/run.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +input=../2024/q3.md +output="output.md" + +sedi=(-i) && [ "$(uname)" == "Darwin" ] && sedi=(-i '') + +cp "$input" "$output" + +sed "${sedi[@]}" -e 's/^- /- \\\+ /g' "$output" +sed "${sedi[@]}" -E 's/^ \[(.*)\]\((.*)\)/\n - \n - \\\- \1: \2/g' "$output" + +sed "${sedi[@]}" -E 's/## 一周ZKP新闻 - ([0-9.]+)/## 🚀 zkWeekly - \1\n\n/g' "$output" \ No newline at end of file