A continuation of HomeBox the inventory and organization system built for the Home User
Yeet a test to fix API redirect issues
Katos3b356125742b
diff --git a/docs/en/api.md b/docs/en/api.mdindex fc8bae6c..c8c76e71 100644--- a/docs/en/api.md+++ b/docs/en/api.md@@ -5,6 +5,17 @@ sidebar: false<script setup lang="ts">import { useData } from 'vitepress';+import { onBeforeRouteUpdate } from 'vue-router';+import { ref } from 'vue';++// Create a key ref to force re-render of the elements-api component+const componentKey = ref(0);++onBeforeRouteUpdate((to, from, next) => {+ // Increment the key to trigger re-initialization on route change+ componentKey.value++;+ next();+});const elementScript = document.createElement('script');elementScript.src = 'https://unpkg.com/@stoplight/elements/web-components.min.js';@@ -24,14 +35,17 @@ if (isDark.value) {<style>.TryItPanel {- display: none;+ display: none;}</style>-<elements-api-apiDescriptionUrl="https://cdn.jsdelivr.net/gh/sysadminsmedia/homebox@main/docs/docs/api/openapi-2.0.json"-router="hash"-layout="responsive"-hideSchemas="true"-:data-theme="theme"-/>\ No newline at end of file+<client-only>+ <elements-api+ :key="componentKey"+ apiDescriptionUrl="https://cdn.jsdelivr.net/gh/sysadminsmedia/homebox@main/docs/docs/api/openapi-2.0.json"+ router="hash"+ layout="responsive"+ hideSchemas="true"+ :data-theme="theme"+ />+</client-only>