From 7b03db4a7ab9251bb77e371780d7ee0d385081e4 Mon Sep 17 00:00:00 2001 From: Brock Lumbard Date: Thu, 25 Jul 2024 20:10:01 -0700 Subject: [PATCH] added docusaurus --- docusaurus.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index cd912dc46..1101abf7b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -202,6 +202,26 @@ module.exports = { }, }, ], + postBodyTags: [ + { + tagName: 'script', + attributes: { + type: 'text/javascript', + }, + innerHTML: ` + document.addEventListener('DOMContentLoaded', function() { + var copilot = document.createElement('co-pilot'); + copilot.setAttribute('copilot_id', '6f8EwgjiL'); + document.body.appendChild(copilot); + + var script = document.createElement('script'); + script.setAttribute('type', 'module'); + script.setAttribute('src', 'https://ui.scoutos.com/copilot.js'); + document.body.appendChild(script); + }); + `, + }, + ], }; }, };