Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 1.21.4 #242

Merged
merged 12 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Folders
/node_modules
/.vitepress/cache
/.vitepress/.temp
/.vitepress/dist
.idea/
.obsidian/
Expand Down
13 changes: 12 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default defineVersionedConfig(

lastUpdated: true,

// Reduce the size of the dist by using a separate js file for the metadata.
metaChunk: true,

locales: loadLocales(__dirname),

markdown: {
Expand Down Expand Up @@ -49,14 +52,22 @@ export default defineVersionedConfig(

themeConfig: {
search: {
options: {
_render(src, env, md) {
if (env.frontmatter?.search === false) return "";
if (env.relativePath.startsWith("translated/")) return "";
if (env.relativePath.startsWith("versions/")) return "";
return md.render(src, env);
},
},
provider: "local",
},
},

transformPageData,

versioning: {
latestVersion: "1.21",
latestVersion: "1.21.4",
rewrites: {
localePrefix: "translated",
},
Expand Down
324 changes: 324 additions & 0 deletions .vitepress/sidebars/versioned/1.21.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,324 @@
{
"/players/": [
{
"text": "players.title",
"link": "/players/",
"items": [
{
"text": "players.faq",
"link": "/players/faq"
},
{
"text": "players.installingJava",
"collapsed": true,
"items": [
{
"text": "players.installingJava.windows",
"link": "/players/installing-java/windows"
},
{
"text": "players.installingJava.macOS",
"link": "https://fabricmc.net/wiki/player:tutorials:java:mac",
"process": false
},
{
"text": "players.installingJava.linux",
"link": "/players/installing-java/linux"
}
]
},
{
"text": "players.installingFabric",
"link": "/players/installing-fabric"
},
{
"text": "players.findingMods",
"link": "/players/finding-mods"
},
{
"text": "players.installingMods",
"link": "/players/installing-mods"
},
{
"text": "players.troubleshooting",
"items": [
{
"text": "players.troubleshooting.uploadingLogs",
"link": "/players/troubleshooting/uploading-logs"
},
{
"text": "players.troubleshooting.crashReports",
"link": "/players/troubleshooting/crash-reports"
}
]
},
{
"text": "players.updatingFabric",
"link": "/players/updating-fabric"
}
]
}
],
"/develop/": [
{
"text": "develop.title",
"link": "/develop/",
"collapsed": false,
"items": [
{
"text": "Fabric API GitHub",
"translatable": false,
"link": "https://github.com/FabricMC/fabric"
},
{
"text": "Yarn GitHub",
"translatable": false,
"link": "https://github.com/FabricMC/yarn"
},
{
"text": "Loom GitHub",
"translatable": false,
"link": "https://github.com/FabricMC/fabric-loom"
}
]
},
{
"text": "develop.gettingStarted",
"collapsed": false,
"items": [
{
"text": "develop.gettingStarted.introduction",
"link": "/develop/getting-started/introduction-to-fabric-and-modding"
},
{
"text": "develop.gettingStarted.devEnvSetup",
"link": "/develop/getting-started/setting-up-a-development-environment"
},
{
"text": "develop.gettingStarted.creatingProject",
"link": "/develop/getting-started/creating-a-project"
},
{
"text": "develop.gettingStarted.projectStructure",
"link": "/develop/getting-started/project-structure"
},
{
"text": "develop.gettingStarted.launchGame",
"link": "/develop/getting-started/launching-the-game"
}
]
},
{
"text": "develop.items",
"collapsed": true,
"items": [
{
"text": "develop.items.first-item",
"link": "/develop/items/first-item"
},
{
"text": "develop.items.food",
"link": "/develop/items/food"
},
{
"text": "develop.items.custom-tools",
"link": "/develop/items/custom-tools"
},
{
"text": "develop.items.custom-armor",
"link": "/develop/items/custom-armor"
},
{
"text": "develop.items.custom-item-groups",
"link": "/develop/items/custom-item-groups"
},
{
"text": "develop.items.custom-item-interactions",
"link": "/develop/items/custom-item-interactions"
},
{
"text": "develop.items.custom-enchantment-effects",
"link": "/develop/items/custom-enchantment-effects"
},
{
"text": "develop.items.custom-data-components",
"link": "/develop/items/custom-data-components"
},
{
"text": "develop.items.potions",
"link": "/develop/items/potions"
}
]
},
{
"text": "develop.blocks",
"collapsed": true,
"items": [
{
"text": "develop.blocks.first-block",
"link": "/develop/blocks/first-block"
},
{
"text": "develop.blocks.blockstates",
"link": "/develop/blocks/blockstates"
},
{
"text": "develop.blocks.block-entities",
"link": "/develop/blocks/block-entities",
"items": [
{
"text": "develop.blocks.block-entity-renderer",
"link": "/develop/blocks/block-entity-renderer"
}
]
}
]
},
{
"text": "develop.entities",
"collapsed": true,
"items": [
{
"text": "develop.entities.effects",
"link": "/develop/entities/effects"
},
{
"text": "develop.entities.damage-types",
"link": "/develop/entities/damage-types"
}
]
},
{
"text": "develop.sounds",
"collapsed": true,
"items": [
{
"text": "develop.sounds.using-sounds",
"link": "/develop/sounds/using-sounds"
},
{
"text": "develop.sounds.custom",
"link": "/develop/sounds/custom"
},
{
"text": "develop.sounds.dynamic-sounds",
"link": "/develop/sounds/dynamic-sounds"
}
]
},
{
"text": "develop.commands",
"collapsed": true,
"items": [
{
"text": "develop.commands.basics",
"link": "/develop/commands/basics"
},
{
"text": "develop.commands.arguments",
"link": "/develop/commands/arguments"
},
{
"text": "develop.commands.suggestions",
"link": "/develop/commands/suggestions"
}
]
},
{
"text": "develop.rendering",
"collapsed": true,
"items": [
{
"text": "develop.rendering.basicConcepts",
"link": "/develop/rendering/basic-concepts"
},
{
"text": "develop.rendering.drawContext",
"link": "/develop/rendering/draw-context"
},
{
"text": "develop.rendering.hud",
"link": "/develop/rendering/hud"
},
{
"text": "develop.rendering.gui",
"items": [
{
"text": "develop.rendering.gui.customScreens",
"link": "/develop/rendering/gui/custom-screens"
},
{
"text": "develop.rendering.gui.customWidgets",
"link": "/develop/rendering/gui/custom-widgets"
}
]
},
{
"text": "develop.rendering.particles",
"items": [
{
"text": "develop.rendering.particles.creatingParticles",
"link": "/develop/rendering/particles/creating-particles"
}
]
}
]
},
{
"text": "develop.dataGeneration",
"collapsed": true,
"items": [
{
"text": "develop.dataGeneration.setup",
"link": "/develop/data-generation/setup"
},
{
"text": "develop.dataGeneration.tags",
"link": "/develop/data-generation/tags"
},
{
"text": "develop.dataGeneration.translations",
"link": "/develop/data-generation/translations"
},
{
"text": "develop.dataGeneration.advancements",
"link": "/develop/data-generation/advancements"
},
{
"text": "develop.dataGeneration.recipes",
"link": "/develop/data-generation/recipes"
},
{
"text": "develop.dataGeneration.lootTables",
"link": "/develop/data-generation/loot-tables"
}
]
},
{
"text": "develop.misc",
"collapsed": true,
"items": [
{
"text": "develop.misc.codecs",
"link": "/develop/codecs"
},
{
"text": "develop.misc.events",
"link": "/develop/events"
},
{
"text": "develop.misc.text-and-translations",
"link": "/develop/text-and-translations"
},
{
"text": "develop.misc.ideTipsAndTricks",
"link": "/develop/ide-tips-and-tricks"
},
{
"text": "develop.misc.automatic-testing",
"link": "/develop/automatic-testing"
}
]
}
]
}
2 changes: 1 addition & 1 deletion .vitepress/theme/components/VersionReminder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ref, watchEffect } from "vue";

const data = useData();
const route = useRoute();
const LATEST = "1.21";
const LATEST = "1.21.4";

const path = ref<string>("");
const text = ref<string>("");
Expand Down
Loading