From 61cf32f8ac9734072374575540f9a5a7870e5ed8 Mon Sep 17 00:00:00 2001 From: Ivan Blinkov Date: Mon, 30 Mar 2020 16:07:08 +0300 Subject: [PATCH] Update build.py --- docs/tools/build.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/docs/tools/build.py b/docs/tools/build.py index 964f2e59162..741e9343923 100755 --- a/docs/tools/build.py +++ b/docs/tools/build.py @@ -76,16 +76,8 @@ def build_for_lang(lang, args): } } - site_names = { - 'en': 'ClickHouse %s Documentation', - 'es': 'Documentación de ClickHouse %s', - 'fr': 'Documentation ClickHouse %s', - 'ru': 'Документация ClickHouse %s', - 'zh': 'ClickHouse文档 %s', - 'ja': 'ClickHouseドキュメント %s', - 'fa': 'مستندات %sClickHouse' - } - + # the following list of languages is sorted according to + # https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers languages = { 'en': 'English', 'zh': '中文', @@ -96,6 +88,16 @@ def build_for_lang(lang, args): 'fa': 'فارسی' } + site_names = { + 'en': 'ClickHouse %s Documentation', + 'es': 'Documentación de ClickHouse %s', + 'fr': 'Documentation ClickHouse %s', + 'ru': 'Документация ClickHouse %s', + 'zh': 'ClickHouse文档 %s', + 'ja': 'ClickHouseドキュメント %s', + 'fa': 'مستندات %sClickHouse' + } + assert len(site_names) == len(languages) if args.version_prefix: