mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-30 11:08:58 +08:00
[build] 4.2.9
This commit is contained in:
parent
b7735066ff
commit
4417f4669d
@ -1,6 +1,6 @@
|
||||
![logo](_media/icon.svg)
|
||||
|
||||
# docsify <small>4.2.8</small>
|
||||
# docsify <small>4.2.9</small>
|
||||
|
||||
> A magical documentation site generator.
|
||||
|
||||
|
@ -3789,6 +3789,19 @@ var initGlobalAPI = function () {
|
||||
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 () {
|
||||
this._init();
|
||||
}
|
||||
@ -3809,11 +3822,11 @@ initGlobalAPI();
|
||||
/**
|
||||
* Version
|
||||
*/
|
||||
Docsify.version = '4.2.8';
|
||||
Docsify.version = '4.2.9';
|
||||
|
||||
/**
|
||||
* Run Docsify
|
||||
*/
|
||||
setTimeout(function (_) { return new Docsify(); }, 0);
|
||||
ready(function (_) { return new Docsify(); });
|
||||
|
||||
}());
|
||||
|
4
lib/docsify.min.js
vendored
4
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
@ -37,5 +37,5 @@
|
||||
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
||||
}
|
||||
},
|
||||
"version": "4.2.8"
|
||||
"version": "4.2.9"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "docsify-server-renderer",
|
||||
"version": "4.2.8",
|
||||
"version": "4.2.9",
|
||||
"description": "docsify server renderer",
|
||||
"author": {
|
||||
"name": "qingwei-li",
|
||||
|
Loading…
Reference in New Issue
Block a user