mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
[build] 4.5.3
This commit is contained in:
parent
9208e64939
commit
b77f46a8e3
@ -1,6 +1,6 @@
|
|||||||

|

|
||||||
|
|
||||||
# docsify <small>4.5.2</small>
|
# docsify <small>4.5.3</small>
|
||||||
|
|
||||||
> A magical documentation site generator.
|
> A magical documentation site generator.
|
||||||
|
|
||||||
|
|||||||
@ -4063,7 +4063,7 @@ initGlobalAPI();
|
|||||||
/**
|
/**
|
||||||
* Version
|
* Version
|
||||||
*/
|
*/
|
||||||
Docsify.version = '4.5.2';
|
Docsify.version = '4.5.3';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run Docsify
|
* Run Docsify
|
||||||
|
|||||||
2
lib/docsify.min.js
vendored
2
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
22
lib/plugins/gitalk.js
Normal file
22
lib/plugins/gitalk.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
function install (hook, vm) {
|
||||||
|
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);
|
||||||
|
var script = dom.create('script');
|
||||||
|
var content = "gitalk.render('gitalk-container')";
|
||||||
|
script.textContent = content;
|
||||||
|
dom.appendTo(dom.body, script);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$docsify.plugins = [].concat(install, $docsify.plugins);
|
||||||
|
|
||||||
|
}());
|
||||||
1
lib/plugins/gitalk.min.js
vendored
Normal file
1
lib/plugins/gitalk.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";function t(t,n){var i=Docsify.dom;t.mounted(function(t){var n=i.create("div");n.id="gitalk-container";var e=i.getNode("#main");n.style="width: "+e.clientWidth+"px; margin: 0 auto 20px;",i.appendTo(i.find(".content"),n);var o=i.create("script");o.textContent="gitalk.render('gitalk-container')",i.appendTo(i.body,o)})}$docsify.plugins=[].concat(t,$docsify.plugins)}();
|
||||||
@ -37,5 +37,5 @@
|
|||||||
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "4.5.2"
|
"version": "4.5.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "docsify-server-renderer",
|
"name": "docsify-server-renderer",
|
||||||
"version": "4.5.2",
|
"version": "4.5.3",
|
||||||
"description": "docsify server renderer",
|
"description": "docsify server renderer",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "qingwei-li",
|
"name": "qingwei-li",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user