From a63e7162bc4acd2715ff71713514679d49333493 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 2 Oct 2013 23:21:41 -0700 Subject: [PATCH] Make doc/parse.php read the version from package.json. [ci skip] --- doc/parse.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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