diff --git a/server/scripts/examples-gg-latest.js b/server/scripts/examples-gg-latest.js index c3d01145..da06db8e 100644 --- a/server/scripts/examples-gg-latest.js +++ b/server/scripts/examples-gg-latest.js @@ -21,16 +21,13 @@ const defaultHTML = ` - - - + + + - - + @@ -38,9 +35,9 @@ const defaultHTML = - + @@ -432,10 +429,10 @@ function getAllSketchContent(newProjectList) { console.log(sketchFile.name); // https://cdn.rawgit.com/opensourcedesign/fonts/2f220059/gnu-freefont_freesans/FreeSans.otf?raw=true // "https://raw.githubusercontent.com/generative-design/Code-Package-p5.js/gg4editor/01_P/P_3_2_1_01/data/FreeSans.otf", - const rawGitRef = `https://cdn.rawgit.com/${newProject.files[i].url.split('.com/')[1]}`; + const rawGitRef = `https://raw.githack.com/${newProject.files[i].url.split('.com/')[1]}`; sketchFile.content = rawGitRef; sketchFile.url = rawGitRef; - + // https://raw.githack.com/generative-design/Code-Package-p5.js/master/libraries/gg-dep-bundle/gg-dep-bundle.js // replace ref in sketch.js ==> should serve from the file? // newProject.files[1].content = newProject.files[1].content.replace(`'data/${sketchFile.name}'`, `'${rawGitRef}'`); resolve(newProject);