diff --git a/doc/parse.php b/doc/parse.php index 66f455423..681d6e92e 100644 --- a/doc/parse.php +++ b/doc/parse.php @@ -1,36 +1,38 @@ version; + // generate Markdown $markdown = docdown(array( - 'path' => '../' . $file, - 'title' => 'Lo-Dash v2.2.0', + 'path' => '../' . $filePath, + 'title' => 'Lo-Dash v' . $version . '', 'toc' => 'categories', 'url' => 'https://github.com/lodash/lodash/blob/master/lodash.js' )); - // save to a .md file - file_put_contents($output . '.md', $markdown); + // save to a `.md` file + file_put_contents($outputName . '.md', $markdown); // print header('Content-Type: text/plain;charset=utf-8'); echo $markdown . PHP_EOL; - ?> \ No newline at end of file