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:
parent
9e860177cb
commit
94bc415534
4 changed files with 4013 additions and 4052 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue