From d0f043a765d2ad2311c1aac83cee9f37c90400df Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Wed, 8 May 2024 18:07:10 -0700 Subject: [PATCH] docs: baseUrl for ganalytics (0.1) (#21456) --- docs/docusaurus.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index e53854af91329..42a3f830aa105 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -9,6 +9,8 @@ require("dotenv").config(); const baseLightCodeBlockTheme = require("prism-react-renderer/themes/vsLight"); const baseDarkCodeBlockTheme = require("prism-react-renderer/themes/vsDark"); +const baseUrl = "/v0.1/"; + /** @type {import('@docusaurus/types').Config} */ const config = { title: "🦜️🔗 LangChain", @@ -18,7 +20,7 @@ const config = { url: "https://python.langchain.com", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: "/v0.1/", + baseUrl: baseUrl, trailingSlash: true, onBrokenLinks: "throw", onBrokenMarkdownLinks: "throw", @@ -323,7 +325,7 @@ const config = { }), scripts: [ - "/js/google_analytics.js", + baseUrl + "js/google_analytics.js", { src: "https://www.googletagmanager.com/gtag/js?id=G-9B66JQQH2F", async: true,