From 811fb1db03bac11a78800003b62141e00cbb5b8f Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Sat, 24 Jan 2015 15:01:08 +0100 Subject: [PATCH] fix path 404 --- build/demos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/demos.js b/build/demos.js index 9326756..97f2f5c 100644 --- a/build/demos.js +++ b/build/demos.js @@ -90,7 +90,7 @@ function build(project, dir){ link: '/demos/?demo=' + demo, description: yamlHeader } - fs.writeFile(demoPath + '.json', JSON.stringify(jsFiddle, null, 2)); + fs.writeFile(path.join(dir, demo + '.json'), JSON.stringify(jsFiddle, null, 2)); }); fs.writeFile(dir + '/toc-demos.json', JSON.stringify(tocDemos, null, 2)); }