chore: Make docs URL configurable during build

This commit is contained in:
Sidharth Vinod
2026-01-28 11:37:12 +05:30
parent 7f551dbbe6
commit d72e91a7b8
7 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -2,6 +2,7 @@
import McWrapper from '$/components/McWrapper.svelte';
import * as Popover from '$/components/ui/popover';
import { Switch } from '$/components/ui/switch';
import { env } from '$/util/env';
import { urlsStore } from '$/util/state';
import { cn } from '$/utils';
import { mode, setMode } from 'mode-watcher';
@@ -41,13 +42,13 @@
{
label: 'Mermaid.js',
icon: MermaidTailIcon,
href: 'https://mermaid.js.org/',
href: env.docsUrl,
renderer: menuItem
},
{
label: 'Documentation',
icon: BookIcon,
href: 'https://mermaid.js.org/intro/',
href: `${env.docsUrl}/intro/`,
renderer: menuItem
},
{