diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85e7c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/ diff --git a/index.js b/index.js index de7f0b9..50eacbc 100644 --- a/index.js +++ b/index.js @@ -92,9 +92,16 @@ module.exports = { baseName = pathToken[0].split('.')[0] } else { - chapterPath = pathToken[0] - assetPath = '../assets/images/uml/' + chapterPath + '/' - baseName = pathToken[1].split('.')[0] + //chapterPath = pathToken[0] + //assetPath = '../assets/images/uml/' + chapterPath + '/' + var chapterDir = pathToken.slice(0, pathToken.length - 1); + chapterPath = chapterDir.reduce((a, b) => a + "/" + b); + assetPath = 'assets/images/uml/' + chapterPath + '/' + for (var i = 0; i