mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-11 06:42:55 +01:00
fix: Unix build (#39)
This commit is contained in:
@@ -26,7 +26,7 @@ function copyNodeMarkdowns(dir, asFolderName) {
|
|||||||
let outputFilePath = 'build/' + filePath;
|
let outputFilePath = 'build/' + filePath;
|
||||||
if (asFolderName) {
|
if (asFolderName) {
|
||||||
// HACK: Resolve the new nodes folder structure
|
// HACK: Resolve the new nodes folder structure
|
||||||
outputFilePath = 'build/' + filePath.split("\\").slice(0, -1).join("/") + '.md'
|
outputFilePath = 'build/' + filePath.split(/\\|\//).slice(0, -1).join("/") + '.md'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fs.existsSync('build/' + dir)) {
|
if (!fs.existsSync('build/' + dir)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user