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 2020/12/31 04:57:02 UTC

[incubator-echarts-doc] branch fix-tool-md2json created (now 6ebaca8)

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

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


      at 6ebaca8  fix(tool): fix a compatibility issue of `globby` in Windows.

This branch includes the following new commits:

     new 6ebaca8  fix(tool): fix a compatibility issue of `globby` in Windows.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-echarts-doc] 01/01: fix(tool): fix a compatibility issue of `globby` in Windows.

Posted by wa...@apache.org.
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 <yh...@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-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org