FA CSS fix for MkDocs share buttons (#6437)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2023-11-19 15:56:38 +01:00 committed by GitHub
parent 652dc6f4b7
commit 17edc5cf1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 79 additions and 72 deletions

View file

@ -81,6 +81,9 @@ class MarkdownLinkFixer:
'ملخص', 'انظر أيضاً', 'تحذير']}
for term, eng_key in zip(translations.get(lang_dir.stem, []), english):
if lang_dir.stem != 'en':
content = re.sub(rf'!!! *{eng_key} *\n', f'!!! {eng_key} "{term}"\n', content, flags=re.IGNORECASE)
content = re.sub(rf'!!! *{term} *\n', f'!!! {eng_key} "{term}"\n', content, flags=re.IGNORECASE)
content = re.sub(rf'!!! *{term}', f'!!! {eng_key}', content, flags=re.IGNORECASE)
content = re.sub(r'!!! *"', '!!! Example "', content, flags=re.IGNORECASE)