FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix the tutorial text and image links · processing/processing-docs@b00f8e8 · GitHub

Repository navigation

Commit b00f8e8

Browse files
committed
Fix the tutorial text and image links
1 parent d6fd4af commit b00f8e8

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎generate/tutorials.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
`cd $path && /usr/bin/git pull https://github.com/processing/processing-web/`;
1515

1616
// 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);
1919
}
2020

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);
2323
}
2424

2525
// Index page
@@ -43,12 +43,12 @@
4343
$imgs = $tutorial->imgs;
4444
$code = $tutorial->code;
4545
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 \>';
4747
$page = new Page($title, "Tutorials", "Tutorials", "../../");
4848
$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());
5050
if ($imgs == 'true') {
51-
$newpath = $path.'learning/'.$directory.'/imgs';
51+
$newpath = $path.'tutorials/'.$directory.'/imgs';
5252
if (!is_dir($newpath)) {
5353
mkdir($newpath, 0757);
5454
}
@@ -57,7 +57,7 @@
5757
}
5858
}
5959
if ($code == 'true') {
60-
$newpath = $path.'learning/'.$directory.'/code';
60+
$newpath = $path.'tutorials/'.$directory.'/code';
6161
if (!is_dir($newpath)) {
6262
mkdir($newpath, 0757);
6363
}

‎java_generate/templates/nav.web.template.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="/reference/tools/">Tools</a><br>
1111
<a href="/reference/environment/">Environment</a><br><br>
1212

13-
<a href="/learning/">Tutorials</a><br>
13+
<a href="/tutorials/">Tutorials</a><br>
1414
<a href="/examples/">Examples</a><br>
1515
<a href="/books/">Books</a><br><br>
1616

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL