You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/01/02 12:35:03 UTC
[incubator-echarts-doc] branch release updated: Use releaseDestDir
in config
This is an automated email from the ASF dual-hosted git repository.
shenyi 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 3e08601 Use releaseDestDir in config
3e08601 is described below
commit 3e086013c533e6901414db59203f2303aadea14b
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Jan 2 20:34:46 2020 +0800
Use releaseDestDir in config
---
build.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/build.js b/build.js
index 8c81553..c6f7b9e 100644
--- a/build.js
+++ b/build.js
@@ -230,7 +230,7 @@ function copyBlog() {
}
function writeSingleSchema(schema, language, docName, format) {
- const destPath = path.resolve(__dirname, `public/${language}/documents/${docName}.json`);
+ const destPath = path.resolve(config.releaseDestDir, `${language}/documents/${docName}.json`);
fse.ensureDirSync(path.dirname(destPath));
fse.outputFileSync(
destPath,
@@ -243,7 +243,7 @@ function writeSingleSchema(schema, language, docName, format) {
function writeSingleSchemaPartioned(schema, language, docName, format) {
const {outline, descriptions} = extractDesc(schema, docName);
- const outlineDestPath = path.resolve(__dirname, `public/${language}/documents/${docName}-parts/${docName}-outline.json`);
+ const outlineDestPath = path.resolve(config.releaseDestDir, `${language}/documents/${docName}-parts/${docName}-outline.json`);
fse.ensureDirSync(path.dirname(outlineDestPath));
fse.outputFile(
outlineDestPath,
@@ -254,7 +254,7 @@ function writeSingleSchemaPartioned(schema, language, docName, format) {
for (let partKey in descriptions) {
let partDescriptions = descriptions[partKey];
- let descDestPath = path.resolve(__dirname, `public/${language}/documents/${docName}-parts/${partKey}.json`);
+ let descDestPath = path.resolve(config.releaseDestDir, `${language}/documents/${docName}-parts/${partKey}.json`);
fse.ensureDirSync(path.dirname(descDestPath));
fse.outputFile(
descDestPath,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org