You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/10/15 20:10:34 UTC

[incubator-echarts-doc] branch release updated: Fix build script: copy wrong build output

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git


The following commit(s) were added to refs/heads/release by this push:
     new 13c0058  Fix build script: copy wrong build output
13c0058 is described below

commit 13c005807d1ca7a1badd727305212ecd790f2640
Author: SHUANG SU <su...@gmail.com>
AuthorDate: Wed Oct 16 04:10:14 2019 +0800

    Fix build script: copy wrong build output
---
 build.js   | 12 ++++++++----
 release.sh |  4 ++--
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/build.js b/build.js
index 5dc0b39..0c40446 100644
--- a/build.js
+++ b/build.js
@@ -57,7 +57,8 @@ function run() {
         if (!fs.existsSync('public/' + distLang + '/documents/' + distLang)) {
             fs.mkdirSync('public/' + distLang + '/documents/' + distLang);
         }
-        md2json({
+        md2json(
+            {
                 path: language + '/option/**/*.md',
                 sectionsAnyOf: ['visualMap', 'dataZoom', 'series', 'graphic.elements'],
                 entry: 'option',
@@ -70,7 +71,8 @@ function run() {
                 // writePartitionedOptionSchema(schema, language, 'option');
             }
         );
-        md2json({
+        md2json(
+            {
                 path: language + '/tutorial/**/*.md',
                 entry: 'tutorial',
                 tplEnv: config,
@@ -81,7 +83,8 @@ function run() {
                 writeSingleSchema(schema, language, 'tutorial');
             }
         );
-        md2json({
+        md2json(
+            {
                 path: language + '/api/**/*.md',
                 entry: 'api',
                 tplEnv: config,
@@ -92,7 +95,8 @@ function run() {
             }
         );
 
-        md2json({
+        md2json(
+            {
                 path: language + '/option-gl/**/*.md',
                 sectionsAnyOf: ['series'],
                 entry: 'option-gl',
diff --git a/release.sh b/release.sh
index ef0df75..a38a4a2 100644
--- a/release.sh
+++ b/release.sh
@@ -29,8 +29,8 @@ cd ${basepath}
 node ./build.js --env ${envType}
 cd ${currPath}
 # Do not rm, keep option3.json.
-cp -R ${basepath}/public/zh/documents/zh/ ${basepath}/../echarts-www/documents/zh/
-cp -R ${basepath}/public/en/documents/en/ ${basepath}/../echarts-www/documents/en/
+cp -R ${basepath}/public/documents/zh/ ${basepath}/../echarts-www/documents/zh/
+cp -R ${basepath}/public/documents/en/ ${basepath}/../echarts-www/documents/en/
 
 # Copy asset.
 # Do not rm, keep option3.json


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org