Add netlify script and remove hardcoded languages dropdown in header

This commit is contained in:
Robbie Trencheny 2019-05-16 14:37:34 -07:00
parent 2399e88f9f
commit 50334719f0
No known key found for this signature in database
GPG Key ID: 1E236BB235BF0021
2 changed files with 16 additions and 1 deletions

16
script/netlify Executable file
View File

@ -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

View File

@ -44,7 +44,6 @@ const siteConfig = {
{doc: 'development_index', label: 'Backend'}, {doc: 'development_index', label: 'Backend'},
{doc: 'misc', label: 'Misc'}, {doc: 'misc', label: 'Misc'},
{ blog: true, label: 'Blog' }, { blog: true, label: 'Blog' },
{ languages: true },
], ],
// If you have users set above, you add it here: // If you have users set above, you add it here: