Compare commits

...

2 commits

Author SHA1 Message Date
qingwei.li
ea14d67164 chore: add changelog 4.6.10 2018-03-25 13:26:51 +08:00
qingwei.li
85e3c68158 [build] 4.6.10 2018-03-25 13:26:50 +08:00
8 changed files with 78 additions and 64 deletions

View file

@ -1,3 +1,13 @@
<a name="4.6.10"></a>
## [4.6.10](https://github.com/QingWei-Li/docsify/compare/v4.6.9...v4.6.10) (2018-03-25)
### Bug Fixes
* async install config, fixed [#425](https://github.com/QingWei-Li/docsify/issues/425) ([e4e011c](https://github.com/QingWei-Li/docsify/commit/e4e011c))
<a name="4.6.9"></a> <a name="4.6.9"></a>
## [4.6.9](https://github.com/QingWei-Li/docsify/compare/v4.6.8...v4.6.9) (2018-03-10) ## [4.6.9](https://github.com/QingWei-Li/docsify/compare/v4.6.8...v4.6.9) (2018-03-10)

View file

@ -1,6 +1,6 @@
![logo](_media/icon.svg) ![logo](_media/icon.svg)
# docsify <small>4.6.9</small> # docsify <small>4.6.10</small>
> A magical documentation site generator. > A magical documentation site generator.

View file

@ -60,6 +60,7 @@ function isFn(obj) {
return typeof obj === 'function' return typeof obj === 'function'
} }
function config () {
var config = merge( var config = merge(
{ {
el: '#app', el: '#app',
@ -125,6 +126,9 @@ if (script) {
window.$docsify = config; window.$docsify = config;
return config
}
function initLifecycle(vm) { function initLifecycle(vm) {
var hooks = [ var hooks = [
'init', 'init',
@ -4494,7 +4498,7 @@ function initFetch(vm) {
function initMixin(proto) { function initMixin(proto) {
proto._init = function () { proto._init = function () {
var vm = this; var vm = this;
vm.config = config || {}; vm.config = config();
initLifecycle(vm); // Init hooks initLifecycle(vm); // Init hooks
initPlugin(vm); // Install plugins initPlugin(vm); // Install plugins
@ -4573,7 +4577,7 @@ initGlobalAPI();
/** /**
* Version * Version
*/ */
Docsify.version = '4.6.9'; Docsify.version = '4.6.10';
/** /**
* Run Docsify * Run Docsify

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "docsify", "name": "docsify",
"version": "4.6.9", "version": "4.6.10",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "docsify", "name": "docsify",
"version": "4.6.9", "version": "4.6.10",
"description": "A magical documentation generator.", "description": "A magical documentation generator.",
"author": { "author": {
"name": "qingwei-li", "name": "qingwei-li",

View file

@ -37,5 +37,5 @@
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ=" "integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
} }
}, },
"version": "4.6.9" "version": "4.6.10"
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "docsify-server-renderer", "name": "docsify-server-renderer",
"version": "4.6.9", "version": "4.6.10",
"description": "docsify server renderer", "description": "docsify server renderer",
"author": { "author": {
"name": "qingwei-li", "name": "qingwei-li",