Skip to content

Commit

Permalink
Updating documentation script gabrielrcouto#60
Browse files Browse the repository at this point in the history
  • Loading branch information
reisraff committed Apr 20, 2016
1 parent 673861d commit 8723d6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bin/generatedoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ foreach (new DirectoryIterator(__DIR__ . '/../doc') as $fileInfo) {
$fileName = __DIR__ . '/../doc/' . $fileInfo->getFilename();

$content = file_get_contents($fileName);
$content = preg_replace('/\[(.*)\]\((.*)\)/', '$1', $content);
$content = preg_replace('/ - \<p\>.*\<\/p\>/', '', $content);

file_put_contents($fileName, preg_replace('/\[(.*)\]\((.*)\)/', '$1', $content));
file_put_contents($fileName, $content);

$links[] = [
'label' => str_replace('-', '\\', substr($fileInfo->getFilename(), 0, -3)),
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
}
],
"require": {
"php": ">=5.6",
"php": ">=5.6",
"react/child-process": "^0.4.0"
},
"require-dev" : {
"phing/phing": "2.*",
"phpunit/phpunit": "4.5.*",
"squizlabs/php_codesniffer": "2.0.*@dev"
"squizlabs/php_codesniffer": "2.0.*@dev",
"evert/phpdoc-md" : "~0.2.0",
"phpdocumentor/phpdocumentor": "^2.8"
},
"config" : {
"bin-dir" : "bin/"
Expand Down

0 comments on commit 8723d6c

Please sign in to comment.