From a67e6c236fddac429e6a1a82fd99e6cd467625a7 Mon Sep 17 00:00:00 2001 From: Huan LI Date: Sun, 17 Sep 2017 15:51:01 +0800 Subject: [PATCH] add node.js style document header(with version) --- docs/index.md | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 82594adde..676043658 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,3 +1,4 @@ +# Wechaty v0.8.226 Documentation ## Classes
diff --git a/package.json b/package.json index 1a1c3538f..5569e3861 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "ava": "ava --verbose --extension ts", "ts-node": "ts-node", "dist": "npm run clean && tsc && jq \"del (.files)\" < package.json > dist/package.json && shx cp src/puppet-web/*.js dist/src/puppet-web/", - "doc": "npm run dist && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-web/friend-request.js> docs/index.md", + "doc": "npm run dist && echo '# Wechaty v'$(jq -r .version package.json)' Documentation' > docs/index.md && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-web/friend-request.js>> docs/index.md", "coverage": "nyc report --reporter=text-lcov | coveralls", "changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md", "doctor": "npm run check-node-version && ts-node bin/doctor", -- GitLab