You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/08/03 04:38:12 UTC
[echarts-doc] branch master updated: fix(build): compress option json & js
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new a259367c fix(build): compress option json & js
a259367c is described below
commit a259367c99f0e78ce156fd35bc1b58d9472dd736
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Aug 3 12:36:35 2022 +0800
fix(build): compress option json & js
---
build.js | 5 +----
tool/md2json.js | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/build.js b/build.js
index 09c0cbc2..0f5e71f0 100644
--- a/build.js
+++ b/build.js
@@ -300,14 +300,11 @@ function writeSingleSchemaPartioned(schema, language, docName, format) {
const descBasename = `${partKey}.json`;
const descDestPath = path.resolve(config.releaseDestDir, `${language}/documents/${docName}-parts/${descBasename}`);
fse.ensureDirSync(path.dirname(descDestPath));
- const content = JSON.stringify(json, null, 2);
fse.outputFileSync(
descDestPath,
- // format ? JSON.stringify(partDescriptions, null, 2) : JSON.stringify(partDescriptions),
- content,
+ format ? JSON.stringify(json, null, 2) : JSON.stringify(json),
'utf-8'
);
- // Convnert to JS
convertToJS(descBasename, descDestPath);
}
diff --git a/tool/md2json.js b/tool/md2json.js
index 1b30a06c..ec332373 100644
--- a/tool/md2json.js
+++ b/tool/md2json.js
@@ -162,7 +162,7 @@ function mdToJsonSchema(mdStr, maxDepth, imagePath, entry) {
let currentLevel = 0;
const result = {
- '$schema': 'https://echarts.apache.org/doc/json-schem',
+ '$schema': 'https://echarts.apache.org/doc/json-schema',
'option': {
'type': 'Object',
'properties': {},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org