1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

docs: chinese translation link only on the homepage (#7370)

Co-authored-by: Yobe Zhou <33565334+YobeZhou@users.noreply.github.com>
Co-authored-by: Victor Wheeler <vwheeler63@users.noreply.github.com>
This commit is contained in:
100ask 2024-12-03 20:07:23 +08:00 committed by GitHub
parent 6e0389da46
commit fdc26f6459
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,7 @@ def find_files(dir_path, suffix):
def exec(temp_directory):
"""
files = find_files(temp_directory, '.rst')
for rst_file in files:
@ -40,3 +41,10 @@ def exec(temp_directory):
content = f.read()
f.seek(0, 0)
f.write(LANGUAGE + content)
"""
rst_file = os.path.join(temp_directory, 'index.rst')
with open(rst_file, 'r+', encoding='utf-8') as f:
content = f.read()
f.seek(0, 0)
f.write(LANGUAGE + content)