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:
parent
6e0389da46
commit
fdc26f6459
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user