| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,12 +14,12 @@ | |||
| 14 | 14 | `cd $path && /usr/bin/git pull https://github.com/processing/processing-web/`; | |
| 15 | 15 | ||
| 16 | 16 | // Copy over the images for the tutorials index | |
| 17 | - if (!is_dir($path.'learning/imgs')) { | ||
| 18 | - mkdir($path.'learning/imgs', 0757); | ||
| 17 | + if (!is_dir($path.'tutorials/imgs')) { | ||
| 18 | + mkdir($path.'tutorials/imgs', 0757); | ||
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | - if (is_dir($path.'learning/imgs')) { | ||
| 22 | - copydirr($source.'imgs', $path.'learning/imgs', null, 0757, true); | ||
| 21 | + if (is_dir($path.'tutorials/imgs')) { | ||
| 22 | + copydirr($source.'imgs', $path.'tutorials/imgs', null, 0757, true); | ||
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | 25 | // Index page | |
@@ -43,12 +43,12 @@ | |||
| 43 | 43 | $imgs = $tutorial->imgs; | |
| 44 | 44 | $code = $tutorial->code; | |
| 45 | 45 | echo 'About to generate tutorial '.$title.' in directory '.$directory.', imgs dir = '.$imgs.', code dir = '.$code.'<br \>'; | |
| 46 | - echo 'Copying '.$source.$directory.'/index.html to ' . 'learning/'.$directory.'/index.html<br \>'; | ||
| 46 | + echo 'Copying '.$source.$directory.'/index.html to ' . 'tutorials/'.$directory.'/index.html<br \>'; | ||
| 47 | 47 | $page = new Page($title, "Tutorials", "Tutorials", "../../"); | |
| 48 | 48 | $page->content(file_get_contents($source.$directory.'/index.html')); | |
| 49 | - writeFile('learning/'.$directory.'/index.html', $page->out()); | ||
| 49 | + writeFile('tutorials/'.$directory.'/index.html', $page->out()); | ||
| 50 | 50 | if ($imgs == 'true') { | |
| 51 | - $newpath = $path.'learning/'.$directory.'/imgs'; | ||
| 51 | + $newpath = $path.'tutorials/'.$directory.'/imgs'; | ||
| 52 | 52 | if (!is_dir($newpath)) { | |
| 53 | 53 | mkdir($newpath, 0757); | |
| 54 | 54 | } | |
@@ -57,7 +57,7 @@ | |||
| 57 | 57 | } | |
| 58 | 58 | } | |
| 59 | 59 | if ($code == 'true') { | |
| 60 | - $newpath = $path.'learning/'.$directory.'/code'; | ||
| 60 | + $newpath = $path.'tutorials/'.$directory.'/code'; | ||
| 61 | 61 | if (!is_dir($newpath)) { | |
| 62 | 62 | mkdir($newpath, 0757); | |
| 63 | 63 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | <a href="/reference/tools/">Tools</a><br> | |
| 11 | 11 | <a href="/reference/environment/">Environment</a><br><br> | |
| 12 | 12 | ||
| 13 | - <a href="/learning/">Tutorials</a><br> | ||
| 13 | + <a href="/tutorials/">Tutorials</a><br> | ||
| 14 | 14 | <a href="/examples/">Examples</a><br> | |
| 15 | 15 | <a href="/books/">Books</a><br><br> | |
| 16 | 16 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments