[build] 4.2.9

This commit is contained in:
qingwei.li 2017-08-15 23:47:20 +08:00
parent b7735066ff
commit 4417f4669d
5 changed files with 20 additions and 7 deletions

View File

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

View File

@ -3789,6 +3789,19 @@ var initGlobalAPI = function () {
window.Prism = prism; window.Prism = prism;
}; };
/**
* Fork https://github.com/bendrucker/document-ready/blob/master/index.js
*/
function ready (callback) {
var state = document.readyState;
if (state === 'complete' || state === 'interactive') {
return setTimeout(callback, 0)
}
document.addEventListener('DOMContentLoaded', callback);
}
function Docsify () { function Docsify () {
this._init(); this._init();
} }
@ -3809,11 +3822,11 @@ initGlobalAPI();
/** /**
* Version * Version
*/ */
Docsify.version = '4.2.8'; Docsify.version = '4.2.9';
/** /**
* Run Docsify * Run Docsify
*/ */
setTimeout(function (_) { return new Docsify(); }, 0); ready(function (_) { return new Docsify(); });
}()); }());

4
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -37,5 +37,5 @@
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ=" "integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
} }
}, },
"version": "4.2.8" "version": "4.2.9"
} }

View File

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