diff --git a/.vitepress/sidebars/develop.ts b/.vitepress/sidebars/develop.ts index fbe2f1525..4a50e1c65 100644 --- a/.vitepress/sidebars/develop.ts +++ b/.vitepress/sidebars/develop.ts @@ -8,16 +8,19 @@ export default [ items: [ { text: "Fabric API GitHub", + processSidebarURLs: false, translatable: false, link: "https://github.com/FabricMC/fabric", }, { text: "Yarn GitHub", + processSidebarURLs: false, translatable: false, link: "https://github.com/FabricMC/yarn", }, { text: "Loom GitHub", + processSidebarURLs: false, translatable: false, link: "https://github.com/FabricMC/fabric-loom", }, diff --git a/.vitepress/sidebars/versioned/1.20.4.json b/.vitepress/sidebars/versioned/1.20.4.json index a49f2173e..609a3e875 100644 --- a/.vitepress/sidebars/versioned/1.20.4.json +++ b/.vitepress/sidebars/versioned/1.20.4.json @@ -67,16 +67,19 @@ "items": [ { "text": "Fabric API GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/fabric" }, { "text": "Yarn GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/yarn" }, { "text": "Loom GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/fabric-loom" } diff --git a/.vitepress/sidebars/versioned/1.21.json b/.vitepress/sidebars/versioned/1.21.json index 84418b803..337f41627 100644 --- a/.vitepress/sidebars/versioned/1.21.json +++ b/.vitepress/sidebars/versioned/1.21.json @@ -67,16 +67,19 @@ "items": [ { "text": "Fabric API GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/fabric" }, { "text": "Yarn GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/yarn" }, { "text": "Loom GitHub", + "processSidebarURLs": false, "translatable": false, "link": "https://github.com/FabricMC/fabric-loom" } diff --git a/.vitepress/theme/components/VideoPlayer.vue b/.vitepress/theme/components/VideoPlayer.vue index 30fa01603..d3bd068f9 100644 --- a/.vitepress/theme/components/VideoPlayer.vue +++ b/.vitepress/theme/components/VideoPlayer.vue @@ -4,11 +4,13 @@ import "vidstack/player/layouts/default"; import "vidstack/player/styles/default/layouts/video.css"; import "vidstack/player/styles/default/theme.css"; import "vidstack/player/ui"; +import { useSlots } from "vue"; const props = defineProps<{ - title: string; src: string; }>(); + +const title = (useSlots().default?.() ?? [""])[0].children ?? "";