feat: Add docsify version to $window.docsify object (#641)

Fix #521

Please makes sure these boxes are checked before submitting your PR, thank you!

* [ x ] Make sure you are merging your commits to `master` branch.
* [ x ] Add some descriptions and refer relative issues for you PR.
* [ x ] DO NOT include files inside `lib` directory.
This commit is contained in:
John Hildenbiddle 2018-10-23 00:26:55 -07:00 committed by cinwell.li
commit 94bc415534
4 changed files with 4013 additions and 4052 deletions

View file

@ -1,4 +1,5 @@
import {merge, hyphenate, isPrimitive, hasOwn} from './util/core'
import {version as pkgVersion} from './../../package.json'
export default function () {
const config = merge(
@ -64,6 +65,7 @@ export default function () {
}
}
config.version = pkgVersion
window.$docsify = config
return config