Skip to content

Commit

Permalink
removed extra function
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Jan 21, 2012
1 parent 28b2722 commit 93e8640
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions phocco.php
Expand Up @@ -48,25 +48,13 @@ function generate_documentation_for_files($files) {
$files[$key] = relative_path(getcwd().'/index', realpath($file));
}
foreach ($files as $file) {
generate_documentation_for_file($file, $files);
echo "Generating documentation: {$file}\n";
$source = file_get_contents(realpath($file));
$sections = parse($source);
render($file, $sections, $files);
}
}

/**
* Generates documentation for a single file. This function also accepts a
* list of files to generate the page switcher.
*/
function generate_documentation_for_file($file, $files=array()) {
if (is_dir(realpath($file))) {
return;
}

echo "Generating documentation: {$file}\n";
$source = file_get_contents(realpath($file));
$sections = parse($source);
render($file, $sections, $files);
}

/**
* ## Parsing
*
Expand Down

0 comments on commit 93e8640

Please sign in to comment.