From 733d1c5f7747d687adfe163ba8dbae4ccd973a80 Mon Sep 17 00:00:00 2001 From: Katos <7927609+katosdev@users.noreply.github.com> Date: Sat, 22 Mar 2025 16:49:16 +0000 Subject: [PATCH] Stoplight being stupid with BaseURL --- docs/en/api.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/en/api.md b/docs/en/api.md index 71743bd0..71866e4f 100644 --- a/docs/en/api.md +++ b/docs/en/api.md @@ -10,6 +10,9 @@ import { useData } from 'vitepress'; // Reactive key for re-rendering the elements-api component const componentKey = ref(0); +// Set BaseURL +const BaseURL = "https://demo.homebox.software/api"; + // Access dark mode setting from VitePress const { isDark } = useData(); const theme = ref(isDark.value ? 'dark' : 'light'); @@ -52,6 +55,6 @@ document.head.appendChild(elementStyle); layout="responsive" hideSchemas="true" :data-theme="theme" - tryItBaseUrl="https://demo.homebox.software/api" + :tryItBaseUrl="demoBaseUrl" />