From 82aacb18478b77cdcb429c85a0fa519086acfefc Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Tue, 14 Apr 2026 13:02:22 +0200 Subject: [PATCH] Fix translation from README to docs (once again) --- docs/autogen_docs.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/autogen_docs.py b/docs/autogen_docs.py index d20eaa92..2043017c 100644 --- a/docs/autogen_docs.py +++ b/docs/autogen_docs.py @@ -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'^
.*?
\s*
$', "", 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")