mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 22:22:23 +00:00
fix: top navbar issue
This commit is contained in:
@@ -195,6 +195,20 @@ const config = {
|
||||
};
|
||||
},
|
||||
}),
|
||||
// Ensure gtag exists before the GA script loads.
|
||||
() => ({
|
||||
name: 'gtag-shim',
|
||||
injectHtmlTags() {
|
||||
return {
|
||||
headTags: [
|
||||
{
|
||||
tagName: 'script',
|
||||
innerHTML: `window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}if(!window.gtag){window.gtag=gtag;}`,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
presets: [
|
||||
@@ -202,10 +216,13 @@ const config = {
|
||||
'classic',
|
||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||
({
|
||||
gtag: {
|
||||
trackingID: 'G-K7K215ZVNC',
|
||||
anonymizeIP: true,
|
||||
},
|
||||
gtag:
|
||||
process.env.NODE_ENV === 'production'
|
||||
? {
|
||||
trackingID: 'G-K7K215ZVNC',
|
||||
anonymizeIP: true,
|
||||
}
|
||||
: undefined,
|
||||
docs: {
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
},
|
||||
@@ -245,6 +262,12 @@ const config = {
|
||||
position: 'left',
|
||||
label: 'Docs',
|
||||
},
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'learnSidebar',
|
||||
position: 'left',
|
||||
label: 'Learn',
|
||||
},
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'integrationsSidebar',
|
||||
@@ -256,7 +279,6 @@ const config = {
|
||||
label: 'Enterprise',
|
||||
to: "docs/enterprise"
|
||||
},
|
||||
{ to: '/release_notes', label: 'Release Notes', position: 'left' },
|
||||
{ to: '/blog', label: 'Blog', position: 'left' },
|
||||
{
|
||||
href: 'https://github.com/BerriAI/litellm',
|
||||
|
||||
Reference in New Issue
Block a user