Commit bd74c57b authored by Zhi Cun's avatar Zhi Cun Committed by GitHub

Merge pull request #14222 from iamkun/bugfix/revert-2.4.11-doc

docs: keep 2.4.11 docs && new sub folder for 2.5+
parents f96dcae0 11e874f7
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var version = process.env.VERSION || require('../../package.json').version; 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' }; 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.4'; if (!content[version]) content[version] = '2.5';
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content)); fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
...@@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ]; then ...@@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ]; then
# build sub folder # build sub folder
echo $TRAVIS_TAG echo $TRAVIS_TAG
SUB_FOLDER='2.4' SUB_FOLDER='2.5'
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment