From 7f58dbc672b8525cb74a8d467532dda5a29b1060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E4=B8=B0?= Date: Wed, 15 Aug 2018 11:45:09 +0800 Subject: [PATCH 1/3] fix: assets/images/uml don't get copied to _book --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index de7f0b9..29cd22c 100644 --- a/index.js +++ b/index.js @@ -88,7 +88,7 @@ module.exports = { if (pathToken.length == 1) { chapterPath = '.' - assetPath = './assets/images/uml/' + assetPath = './_book/assets/images/uml/' baseName = pathToken[0].split('.')[0] } else { @@ -97,9 +97,9 @@ module.exports = { baseName = pathToken[1].split('.')[0] } - umlPath = './assets/images/uml/' + chapterPath + '/' + baseName + '.uml' + umlPath = './_book/assets/images/uml/' + chapterPath + '/' + baseName + '.uml' - mkdirp.sync('./assets/images/uml/' + chapterPath); + mkdirp.sync('./_book/assets/images/uml/' + chapterPath); var hasUml = parseUml(page, umlPath); if (!hasUml) { return page; } From b8c8871f3d08705564a48f8fef090b2c758e18ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E4=B8=B0?= Date: Wed, 15 Aug 2018 11:53:42 +0800 Subject: [PATCH 2/3] feat: support multiple directories when use multiple directories, uml files will be overwrite --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 29cd22c..50112e9 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,11 @@ module.exports = { else { chapterPath = pathToken[0] assetPath = '../assets/images/uml/' + chapterPath + '/' - baseName = pathToken[1].split('.')[0] + baseName = "" + for(var i=1; i Date: Thu, 16 Aug 2018 15:32:28 +0800 Subject: [PATCH 3/3] fix: remove red background --- book/test.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/test.css b/book/test.css index c489d30..c61c34b 100644 --- a/book/test.css +++ b/book/test.css @@ -1,3 +1,3 @@ body { - background: red; + background: #fff; } \ No newline at end of file