docs: baseUrl for ganalytics, throw on broken links (#21455)

This commit is contained in:
Erick Friis
2024-05-10 06:49:59 -07:00
committed by GitHub
parent 913792f5e6
commit 64c47224a0
10 changed files with 23 additions and 22 deletions

View File

@@ -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.2/";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "🦜️🔗 LangChain",
@@ -18,10 +20,10 @@ 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.2/",
baseUrl: baseUrl,
trailingSlash: true,
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
themes: ["@docusaurus/theme-mermaid"],
markdown: {
@@ -315,7 +317,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,