diff --git a/asset/docsify-baidu-stat.js b/asset/docsify-baidu-stat.js new file mode 100644 index 0000000000000000000000000000000000000000..811aa35fb032a94baea1a4ce3208ff25f739fabe --- /dev/null +++ b/asset/docsify-baidu-stat.js @@ -0,0 +1,13 @@ +(function(){ + var plugin = function(hook) { + hook.doneEach(function() { + window._hmt = window._hmt || [] + var hm = document.createElement("script") + hm.src = "https://hm.baidu.com/hm.js?" + window.$docsify.bdStatId + document.querySelector("article").appendChild(hm) + }) + } + var plugins = window.$docsify.plugins || [] + plugins.push(plugin) + window.$docsify.plugins = plugins +})() \ No newline at end of file diff --git a/index.html b/index.html index 4cae4d9d17ed6fb36e2b3d930807271b9678ba1c..36675e5416dbe55b01623a0cdece792115649ccb 100644 --- a/index.html +++ b/index.html @@ -13,17 +13,6 @@ - - - @@ -68,6 +57,7 @@ themeColor: '#03a9f4', repo: 'apachecn/opencv-doc-zh', plugins: [window.docsPlugin], + bdStatId: '38525fdac4b5d4403900b943d4e7dd91', search: { paths: 'auto', placeholder: '搜索', @@ -89,5 +79,6 @@ + \ No newline at end of file