Skip to content

Commit e5ef883

Browse files
committed
docs update once more.
1 parent bd141ab commit e5ef883

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

makeDocs.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@
1010
}
1111

1212

13-
echo "Clearing git status...";
14-
echo exec("cd " . __DIR__ . "/docs && git reset --hard && git checkout master");
15-
echo " Complete.\n";
16-
17-
1813
echo "Running PHPDoc Analysis...";
19-
exec("cd .. && php " . PHPDOC_PHAR_FILENAME . " run -d src -t docs/ --template=\"xml\"");
14+
exec("php " . PHPDOC_PHAR_FILENAME . " run -d src -t docs/ --template=\"xml\"");
2015
echo " Complete\n";
2116

2217

@@ -40,6 +35,8 @@
4035
if ($diff === "") {
4136
echo "No changes detected in documentation. Exiting.\n";
4237
exit(0);
38+
} else {
39+
echo "Changes detected in documentation. Will commit and push if --push is set.\n";
4340
}
4441

4542
// if --push is set, push the changes.

0 commit comments

Comments
 (0)