mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-19 00:15:13 +00:00
Improve README -> docs translation (once again)
This commit is contained in:
1 parent
51163eda81
commit
9386012aed
1 file changed
+9
@@ -207,6 +207,15 @@ def autogen_about_intro_features():
|
||||
# remove callouts
|
||||
about_text = re.subn(r"^> \[!\w+\]\s+(^>.*?$)+", "", about_text, flags=re.MULTILINE)[0]
|
||||
|
||||
# replace "Quick Demo" with "Video Introduction", removing the short video
|
||||
about_text = about_text.replace("# Quick Demo", "# Video Introduction")
|
||||
about_text = re.subn(r"^https://github.com/user-attachments/.*?$", "", about_text, flags=re.MULTILINE)[0]
|
||||
about_text = about_text.replace(":tv: Longer video:", "Watch our video:")
|
||||
|
||||
# remove emojis (e.g. :tv:)
|
||||
about_text = re.subn(r":\w+:\s+", "", about_text)[0]
|
||||
|
||||
|
||||
f.write(f"{about_text}\n\n")
|
||||
|
||||
jetbrains_marketplace_link = ('```{raw} html\n'
|
||||
|
||||
Reference in new issue
Block a user