From 30caac165cb21520186874ec5fae962de1e3a30d Mon Sep 17 00:00:00 2001 From: Miroma <136986257+its-miroma@users.noreply.github.com> Date: Wed, 22 Jan 2025 09:45:53 +0100 Subject: [PATCH 1/3] fix spelling mistakes (#264) * fix spelling mistakes - fix `don't` - change `` and similar to `mod-id` or `mod_id` - fix #263 - add `processSidebarURLs: false` * allow translations for `VideoPlayer` --- .vitepress/sidebars/develop.ts | 3 +++ .vitepress/sidebars/versioned/1.20.4.json | 3 +++ .vitepress/sidebars/versioned/1.21.json | 3 +++ .vitepress/theme/components/VideoPlayer.vue | 6 ++++-- .vitepress/transform.ts | 2 +- .vitepress/update.ts | 2 +- README.md | 3 ++- develop/blocks/blockstates.md | 10 +++++----- develop/blocks/first-block.md | 12 ++++++------ develop/data-generation/recipes.md | 2 +- develop/entities/damage-types.md | 2 +- develop/entities/effects.md | 2 +- develop/ide-tips-and-tricks.md | 6 +++--- develop/items/custom-armor.md | 10 +++++----- develop/items/custom-data-components.md | 4 ++-- develop/items/custom-enchantment-effects.md | 2 +- develop/items/custom-item-groups.md | 2 +- develop/items/custom-item-interactions.md | 2 +- develop/items/first-item.md | 14 +++++++------- develop/items/food.md | 2 +- develop/rendering/particles/creating-particles.md | 4 ++-- develop/sounds/custom.md | 6 +++--- develop/sounds/dynamic-sounds.md | 2 +- translated/it_it/develop/blocks/blockstates.md | 2 +- 24 files changed, 59 insertions(+), 47 deletions(-) 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 ?? "";