From 50334719f0d3341e6d47022a2e47e02d8d024152 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Thu, 16 May 2019 14:37:34 -0700 Subject: [PATCH] Add netlify script and remove hardcoded languages dropdown in header --- script/netlify | 16 ++++++++++++++++ website/siteConfig.js | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 script/netlify diff --git a/script/netlify b/script/netlify new file mode 100755 index 00000000..9ec938e4 --- /dev/null +++ b/script/netlify @@ -0,0 +1,16 @@ +#!/bin/sh + +cd website +npm install +npm run write-translations + +wget -q https://downloads.crowdin.com/cli/v2/crowdin-cli.zip + +unzip crowdin-cli.zip -d crowdin-cli + +cp crowdin-cli/**/crowdin-cli.jar . + +java -jar crowdin-cli.jar --config ../crowdin.yaml upload sources --auto-update -b master +java -jar crowdin-cli.jar --config ../crowdin.yaml download -b master + +npm run build diff --git a/website/siteConfig.js b/website/siteConfig.js index dbe9688b..79b41ae1 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -44,7 +44,6 @@ const siteConfig = { {doc: 'development_index', label: 'Backend'}, {doc: 'misc', label: 'Misc'}, { blog: true, label: 'Blog' }, - { languages: true }, ], // If you have users set above, you add it here: