mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-10 14:22:52 +01:00
fix: Unix build (#39)
This commit is contained in:
@@ -26,7 +26,7 @@ function copyNodeMarkdowns(dir, asFolderName) {
|
||||
let outputFilePath = 'build/' + filePath;
|
||||
if (asFolderName) {
|
||||
// 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)) {
|
||||
|
||||
Reference in New Issue
Block a user