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

wangzx pushed a commit to branch fix-tool-md2json
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git

commit 6ebaca831a9eee82afef5d40eeda4c715e64c566
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Thu Dec 31 12:56:40 2020 +0800

    fix(tool): fix a compatibility issue of `globby` in Windows.
---
 tool/md2json.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tool/md2json.js b/tool/md2json.js
index 402afdf..63f7b53 100644
--- a/tool/md2json.js
+++ b/tool/md2json.js
@@ -6,7 +6,8 @@ const htmlparser2 = require('htmlparser2');
 const chalk = require('chalk');
 
 async function convert(opts) {
-    const mdPath = opts.path;
+    // globby does not support '\' yet
+    const mdPath = opts.path.replace(/\\/g, '/');
     const sectionsAnyOf = opts.sectionsAnyOf;
     const entry = opts.entry;
     const tplEnv = opts.tplEnv;


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

Reply via email to