[build] 4.9.2 next

This commit is contained in:
Anton Wilhelm 2019-04-21 12:06:16 +02:00
commit af161cd3b4
26 changed files with 7080 additions and 3 deletions

26
lib/plugins/gitalk.js Normal file
View file

@ -0,0 +1,26 @@
(function () {
function install(hook) {
var dom = Docsify.dom;
hook.mounted(function (_) {
var div = dom.create('div');
div.id = 'gitalk-container';
var main = dom.getNode('#main');
div.style = "width: " + (main.clientWidth) + "px; margin: 0 auto 20px;";
dom.appendTo(dom.find('.content'), div);
});
hook.doneEach(function (_) {
var el = document.getElementById('gitalk-container');
while (el.hasChildNodes()) {
el.removeChild(el.firstChild);
}
// eslint-disable-next-line
gitalk.render('gitalk-container');
});
}
$docsify.plugins = [].concat(install, $docsify.plugins);
}());