🐛 Fix docs order generation for partial translations (#2238)

This commit is contained in:
Sebastián Ramírez 2020-10-24 13:32:59 +02:00 committed by GitHub
parent dca9cc3ec5
commit 8650dee4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,11 @@ def build_lang(
new_key += (key_part,)
use_lang_file_to_nav[file] = new_key
key_to_section = {(): []}
for file, file_key in use_lang_file_to_nav.items():
for file, orig_file_key in file_to_nav.items():
if file in use_lang_file_to_nav:
file_key = use_lang_file_to_nav[file]
else:
file_key = orig_file_key
section = get_key_section(key_to_section=key_to_section, key=file_key)
section.append(file)
new_nav = key_to_section[()]