Skip to content

Commit 82aacb1

Browse files
committed
Fix translation from README to docs (once again)
1 parent ac2b2ac commit 82aacb1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/autogen_docs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,14 @@ def autogen_about_intro_features():
198198
# adjust link
199199
about_text = about_text.replace("resources/serena-block-diagram.svg", "https://raw.githubusercontent.com/oraios/serena/main/resources/serena-block-diagram.svg")
200200

201-
# remove statements with links that are invalid and the callout
201+
# remove centred links
202+
about_text = re.subn(r'^<div align="center">.*?</div>\s*<br>$', "", about_text, flags=re.MULTILINE | re.DOTALL)[0]
203+
204+
# remove statements with links to quick start guide
202205
about_text = re.subn(r"^.*\[Quick Start.*?$", r"", about_text, flags=re.MULTILINE)[0]
203-
about_text = re.subn(r"^>.*?$", "", about_text, flags=re.MULTILINE)[0]
206+
207+
# remove callouts
208+
about_text = re.subn(r"^> \[!\w+\]\s+(^>.*?$)+", "", about_text, flags=re.MULTILINE)[0]
204209

205210
f.write(f"{about_text}\n\n")
206211

0 commit comments

Comments
 (0)