Skip to content

Commit

Permalink
docs: baseUrl for ganalytics (0.1) (#21456)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed May 9, 2024
1 parent 264f677 commit d0f043a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -18,7 +20,7 @@ const config = {
url: "https://python.langchain.com",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/v0.1/",
baseUrl: baseUrl,
trailingSlash: true,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d0f043a

Please sign in to comment.