mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 16:15:33 +00:00
Fix translation from README to docs (once again)
This commit is contained in:
1 parent
ac2b2ac131
commit
82aacb1847
1 file changed
+7
-2
@@ -198,9 +198,14 @@ def autogen_about_intro_features():
|
||||
# adjust link
|
||||
about_text = about_text.replace("resources/serena-block-diagram.svg", "https://raw.githubusercontent.com/oraios/serena/main/resources/serena-block-diagram.svg")
|
||||
|
||||
# remove statements with links that are invalid and the callout
|
||||
# remove centred links
|
||||
about_text = re.subn(r'^<div align="center">.*?</div>\s*<br>$', "", about_text, flags=re.MULTILINE | re.DOTALL)[0]
|
||||
|
||||
# remove statements with links to quick start guide
|
||||
about_text = re.subn(r"^.*\[Quick Start.*?$", r"", about_text, flags=re.MULTILINE)[0]
|
||||
about_text = re.subn(r"^>.*?$", "", about_text, flags=re.MULTILINE)[0]
|
||||
|
||||
# remove callouts
|
||||
about_text = re.subn(r"^> \[!\w+\]\s+(^>.*?$)+", "", about_text, flags=re.MULTILINE)[0]
|
||||
|
||||
f.write(f"{about_text}\n\n")
|
||||
|
||||
|
||||
Reference in new issue
Block a user