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

|

|
||||||
|
|
||||||
# docsify <small>4.1.12</small>
|
# docsify <small>4.1.13</small>
|
||||||
|
|
||||||
> A magical documentation site generator.
|
> A magical documentation site generator.
|
||||||
|
|
||||||
|
|||||||
@ -3750,7 +3750,7 @@ initGlobalAPI();
|
|||||||
/**
|
/**
|
||||||
* Version
|
* Version
|
||||||
*/
|
*/
|
||||||
Docsify.version = '4.1.12';
|
Docsify.version = '4.1.13';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
@ -11,24 +11,21 @@ function appendScript () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function init (id) {
|
function init (id) {
|
||||||
var ga = window.ga;
|
appendScript();
|
||||||
|
window.ga = window.ga || function () {
|
||||||
if (!ga) {
|
(window.ga.q = window.ga.q || []).push(arguments);
|
||||||
appendScript();
|
};
|
||||||
ga = ga || function () {
|
window.ga.l = Number(new Date());
|
||||||
(ga.q = ga.q || []).push(arguments);
|
window.ga('create', id, 'auto');
|
||||||
};
|
|
||||||
ga.l = Number(new Date());
|
|
||||||
ga('create', id, 'auto');
|
|
||||||
}
|
|
||||||
return ga
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function collect () {
|
function collect () {
|
||||||
var ga = init($docsify.ga);
|
if (!window.ga) {
|
||||||
|
init($docsify.ga);
|
||||||
|
}
|
||||||
|
|
||||||
ga('set', 'page', location.hash);
|
window.ga('set', 'page', location.hash);
|
||||||
ga('send', 'pageview');
|
window.ga('send', 'pageview');
|
||||||
}
|
}
|
||||||
|
|
||||||
var install = function (hook) {
|
var install = function (hook) {
|
||||||
|
|||||||
2
lib/plugins/ga.min.js
vendored
2
lib/plugins/ga.min.js
vendored
@ -1 +1 @@
|
|||||||
this.D=this.D||{},function(){"use strict";function n(){var n=document.createElement("script");n.async=!0,n.src="https://www.google-analytics.com/analytics.js",document.body.appendChild(n)}function c(c){var e=window.ga;return e||(n(),e=e||function(){(e.q=e.q||[]).push(arguments)},e.l=Number(new Date),e("create",c,"auto")),e}function e(){var n=c($docsify.ga);n("set","page",location.hash),n("send","pageview")}var i=function(n){if(!$docsify.ga)return void console.error("[Docsify] ga is required.");n.beforeEach(e)};$docsify.plugins=[].concat(i,$docsify.plugins)}();
|
this.D=this.D||{},function(){"use strict";function n(){var n=document.createElement("script");n.async=!0,n.src="https://www.google-analytics.com/analytics.js",document.body.appendChild(n)}function i(i){n(),window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date),window.ga("create",i,"auto")}function o(){window.ga||i($docsify.ga),window.ga("set","page",location.hash),window.ga("send","pageview")}var a=function(n){if(!$docsify.ga)return void console.error("[Docsify] ga is required.");n.beforeEach(o)};$docsify.plugins=[].concat(a,$docsify.plugins)}();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "docsify-server-renderer",
|
"name": "docsify-server-renderer",
|
||||||
"version": "4.1.12",
|
"version": "4.1.13",
|
||||||
"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