Skip to content

Commit dc7f4bc

Browse files
authored
Merge pull request #2960 from Agenta-AI/chore/docs-path-fixes
[docs] Update Docusaurus configuration for site URL and base path
2 parents 826aba3 + bf859c1 commit dc7f4bc

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/docusaurus.config.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const config: Config = {
1010
title: "Docs - Agenta",
1111
tagline: "The LLMOps platform.",
1212
favicon: "images/favicon.ico",
13-
// Set the production url of your site here
14-
url: "https://docs.agenta.ai",
13+
// Public site lives on the main domain under /docs
14+
url: "https://agenta.ai",
1515
// Set the /<baseUrl>/ pathname under which your site is served
1616
// For GitHub pages deployment, it is often '/<projectName>/'
17-
baseUrl: "/",
17+
baseUrl: "/docs/",
1818
organizationName: "Agenta-AI",
1919
projectName: "agenta",
2020
onBrokenLinks: "throw",
@@ -30,16 +30,17 @@ const config: Config = {
3030
},
3131

3232
scripts: [
33-
3433
{
35-
src: 'https://www.googletagmanager.com/gtag/js?id=G-LTF78FZS33',
34+
src: "https://www.googletagmanager.com/gtag/js?id=G-LTF78FZS33",
3635
async: true,
3736
},
3837
{
39-
src: '/ga-script.js',
38+
// Served by Docusaurus from static/ under the baseUrl
39+
src: "/docs/ga-script.js",
4040
async: true,
41-
}, {
42-
src: "/hotjar.js",
41+
},
42+
{
43+
src: "/docs/hotjar.js",
4344
async: true,
4445
},
4546
],
@@ -304,7 +305,7 @@ const config: Config = {
304305
"posthog-docusaurus",
305306
{
306307
apiKey: process.env.POSTHOG_API_KEY || "dummy", // Posthog is only available on the prod website
307-
appUrl: "https://docs.agenta.ai",
308+
appUrl: "https://agenta.ai/docs",
308309
enableInDevelopment: false, // optional
309310
api_host: "https://app.posthog.com",
310311
},

0 commit comments

Comments
 (0)