Fix translation from README to docs (once again)

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-04-14 13:02:22 +02:00
1 parent ac2b2ac131
commit 82aacb1847
1 file changed
+7 -2
+7 -2
View File
@@ -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")