Update documentation for 2.4.1

This commit is contained in:
Micah Lee 2021-11-23 19:33:21 -08:00
parent a4985e7029
commit 9ad87ea25e
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
22 changed files with 39 additions and 29 deletions

View file

@ -15,7 +15,7 @@ async def api(path):
async with httpx.AsyncClient() as client:
r = await client.get(
url, headers={"Authorization": f"Token {api_token}"}, timeout=30.0
url, headers={"Authorization": f"Token {api_token}"}, timeout=60
)
if r.status_code == 200:
@ -109,7 +109,8 @@ async def main():
languages[obj["code"]] = obj["language"]
# Get the app translations for each language
await asyncio.gather(*[get_app_translation(lang_code) for lang_code in languages])
for lang_code in languages:
await get_app_translation(lang_code)
# Get the documentation translations for each component for each language
for component in [
@ -123,11 +124,8 @@ async def main():
"doc-sphinx",
"doc-tor",
]:
docs_futures = []
for lang_code in languages:
docs_futures.append(get_docs_translation(component, lang_code))
await asyncio.gather(*docs_futures)
await get_docs_translation(component, lang_code)
print("")