diff --git a/docs/package.json b/docs/package.json index ac08e127df..3f8a73f5ec 100644 --- a/docs/package.json +++ b/docs/package.json @@ -31,5 +31,8 @@ "predeploy": "npm run build", "deploy": "hexo-s3-deploy", "start": "npm run build && chexo @meteorjs/meteor-hexo-config -- server" + }, + "volta": { + "node": "14.21.3" } } diff --git a/docs/scripts/kapa.js b/docs/scripts/kapa.js new file mode 100644 index 0000000000..9c9e5c8d5a --- /dev/null +++ b/docs/scripts/kapa.js @@ -0,0 +1,18 @@ +hexo.extend.filter.register('after_render:html', function(html) { + const scriptTag = ` + +`.trim(); + + if (html.indexOf('') !== -1) { + return html.replace('', scriptTag + ''); + } + + return html; +}); \ No newline at end of file