feat(docs): add Chinese translation (jump link) (#5839)

Co-authored-by: YobeZhou <smilezyb@163.com>
This commit is contained in:
100ask
2024-03-14 06:22:27 +08:00
committed by GitHub
parent d2ceb6a780
commit 442efeef21
5 changed files with 89 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import doc_builder
import shutil
import tempfile
import config_builder
import add_translation
# due to the modifications that take place to the documentation files
# when the documentaation builds it is better to copy the source files to a
@@ -76,7 +77,7 @@ def cmd(s):
# Get the current branch name
status, br = subprocess.getstatusoutput("git branch")
status, br = subprocess.getstatusoutput("git branch --show-current")
_, gitcommit = subprocess.getstatusoutput("git rev-parse HEAD")
br = re.sub('\* ', '', br)
@@ -135,6 +136,9 @@ with open(os.path.join(temp_directory, 'Doxyfile'), 'wb') as f:
print("Generate the list of examples")
ex.exec(temp_directory)
print("Add translation")
add_translation.exec(temp_directory)
print("Running doxygen")
cmd('cd "{0}" && doxygen Doxyfile'.format(temp_directory))