From 3953576171b7663b23b88d901e5ebb41bf5c176c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Jul 05 2020 14:32:20 +0000 Subject: enable language switch button on english page --- diff --git a/build-scripts/rebuild-site.py b/build-scripts/rebuild-site.py index aee99f1..a2f1202 100755 --- a/build-scripts/rebuild-site.py +++ b/build-scripts/rebuild-site.py @@ -266,22 +266,9 @@ def main(): if e.errno != errno.EEXIST: raise - # FIXME: Bootstrapping production deployment - # To get this in production, I need to hide all the languages from the - # menu on the English site, because the link would be broken for the first - # few hours, as the translated content takes much longer to build. - # - # So, by commenting this out, it'll use the default file that only - # has "en-US" in it. And I copy this to the translated part, - # so those pages all get the right language menu. - # - # And I revert this when the translated site is built, and the - # link would no longer be broken. - # - # FIXME When reverting this, look for the other #FIXME below - #ui_file = os.path.join(ui_dir, "page-languages.hbs") - #with open(ui_file, "w") as file: - # file.write(lang_switch_ui) + ui_file = os.path.join(ui_dir, "page-languages.hbs") + with open(ui_file, "w") as file: + file.write(lang_switch_ui) # Timestamp to be included in the footer of the docs timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S UTC') @@ -329,13 +316,6 @@ def main(): ##### Translated site build ##### #####--------------------------------------##### - # FIXME: Bootstrapping production deployment - # This is the second part of the temporary change. - # Look at the previous FIXME for more details - ui_file = os.path.join(ui_dir, "page-languages.hbs") - with open(ui_file, "w") as file: - file.write(lang_switch_ui) - if config["build_langs"] == "translated" or config["build_langs"] == "all":