diff --git a/docs/.vuepress/headFunctions.ts b/docs/.vuepress/headFunctions.ts index fd97e67d8..95d0657b6 100644 --- a/docs/.vuepress/headFunctions.ts +++ b/docs/.vuepress/headFunctions.ts @@ -1,76 +1,81 @@ import routes from './routes.json'; export default [ - [ - "script", - { - type: "text/javascript", - id: "hs-script-loader", - async: true, - defer: true, - src: "//js.hs-scripts.com/5408110.js", - }, - ], - [ - "script", - {}, - ` - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); - })(window,document,'script','dataLayer','GTM-T538N4K'); - `, - ], - [ - "script", - {}, - ` - (function() { - var routes = ${JSON.stringify(routes)}; - - // Function to normalize a URL by removing a trailing slash and leading characters - function normalizeUrl(url) { - url = url.endsWith('/') ? url.slice(0, -1) : url; - url = url.startsWith('/') ? url.slice(1) : url; - url = url.startsWith('?') ? url.slice(1) : url; - return url; - } + [ + "script", + { + type: "text/javascript", + id: "hs-script-loader", + async: true, + defer: true, + src: "//js.hs-scripts.com/5408110.js", + }, + ], + [ + "script", + {}, + ` + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','GTM-T538N4K'); + `, + ], + [ + "script", + {}, + ` + (function() { + var routes = ${JSON.stringify(routes)}; - var currentPath = window.location.pathname + window.location.search + window.location.hash; - currentPath = normalizeUrl(currentPath); - - for (var route_url in routes) { - if (normalizeUrl(route_url) === currentPath) { - window.location.href = routes[route_url]; - break; // Exit the loop after redirecting - } - } - })(); - `, - ], - [ - "script", - {}, - ` - (function() { - // Trigger the scroll event without actually scrolling - function triggerScrollEvent() { - const targetElement = window; - const scrollEvent = new Event('scroll', { - bubbles: true, - cancelable: true, - }); - targetElement.dispatchEvent(scrollEvent); - } + // Function to normalize a URL by removing a trailing slash and leading characters + function normalizeUrl(url) { + url = url.endsWith('/') ? url.slice(0, -1) : url; + url = url.startsWith('/') ? url.slice(1) : url; + url = url.startsWith('?') ? url.slice(1) : url; + return url; + } + + var currentPath = window.location.pathname + window.location.search + window.location.hash; + currentPath = normalizeUrl(currentPath); - // Call the triggerScrollEvent and scrollBodyDown functions after the page is fully loaded - window.addEventListener('load', () => { - triggerScrollEvent(); - }); - })(); - `, - ] - ]; + for (var route_url in routes) { + if (normalizeUrl(route_url) === currentPath) { + window.location.href = routes[route_url]; + break; // Exit the loop after redirecting + } + } + })(); + `, + ], + [ + "script", + {}, + ` + (function() { + // Trigger the scroll event without actually scrolling + function triggerScrollEvent() { + const targetElement = window; + const scrollEvent = new Event('scroll', { + bubbles: true, + cancelable: true, + }); + targetElement.dispatchEvent(scrollEvent); + } - \ No newline at end of file + // Call the triggerScrollEvent and scrollBodyDown functions after the page is fully loaded + window.addEventListener('load', () => { + triggerScrollEvent(); + }); + })(); + `, + ], + [ + "meta", + { + name: "google-site-verification", + content: "5-Q2NFM8YQ1f64j819in5tsqnlwNjQXX6Y0PQzmBEcs", + }, + ], + ]; \ No newline at end of file diff --git a/docs/.vuepress/public/googled5ceee86bf34d3e8.html b/docs/.vuepress/public/googled5ceee86bf34d3e8.html deleted file mode 100644 index 37c036691..000000000 --- a/docs/.vuepress/public/googled5ceee86bf34d3e8.html +++ /dev/null @@ -1 +0,0 @@ -google-site-verification: googled5ceee86bf34d3e8.html \ No newline at end of file diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index 123869277..a2415f1a5 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -1,6 +1,5 @@