From 11e874f7577acdeb3db78ca373cdd793ac74cf72 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sat, 26 Jan 2019 15:24:00 +0800 Subject: [PATCH] docs: keep 2.4.11 docs && new sub folder for 2.5+ --- build/bin/version.js | 4 ++-- build/deploy-ci.sh | 2 +- build/deploy-faas.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/bin/version.js b/build/bin/version.js index 4a75cde24..a2b969790 100644 --- a/build/bin/version.js +++ b/build/bin/version.js @@ -1,6 +1,6 @@ var fs = require('fs'); var path = require('path'); var version = process.env.VERSION || require('../../package.json').version; -var content = { '1.4.13': '1.4', '2.0.11': '2.0', '2.1.0': '2.1', '2.2.2': '2.2', '2.3.9': '2.3' }; -if (!content[version]) content[version] = '2.4'; +var content = { '1.4.13': '1.4', '2.0.11': '2.0', '2.1.0': '2.1', '2.2.2': '2.2', '2.3.9': '2.3', '2.4.11': '2.4' }; +if (!content[version]) content[version] = '2.5'; fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content)); diff --git a/build/deploy-ci.sh b/build/deploy-ci.sh index bfccde870..762ee134b 100644 --- a/build/deploy-ci.sh +++ b/build/deploy-ci.sh @@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ]; then # build sub folder echo $TRAVIS_TAG - SUB_FOLDER='2.4' + SUB_FOLDER='2.5' mkdir $SUB_FOLDER rm -rf *.js *.css *.map static rm -rf $SUB_FOLDER/** diff --git a/build/deploy-faas.sh b/build/deploy-faas.sh index ed6e892c4..0540c338b 100644 --- a/build/deploy-faas.sh +++ b/build/deploy-faas.sh @@ -5,7 +5,7 @@ cd temp_web git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element # build sub folder -SUB_FOLDER='2.4' +SUB_FOLDER='2.5' mkdir $SUB_FOLDER rm -rf *.js *.css *.map static rm -rf $SUB_FOLDER/**