A starter template for documenting your project on the Modded MC Wiki. It includes a small wiki project for a dummy example mod with a both documentation and content pages.
Simply copy the wiki folder into your repository, replace the sample content with your own,
and you have a working wiki!
wiki/
├── sinytra-wiki.json Project metadata (ID, mod id, platforms)
├── docs/ Documentation pages (good for guides and tutorials)
│ ├── _index.mdx Entry page of your documentation
│ ├── _meta.json Sidebar page names, order and icons
│ ├── getting_started.mdx
│ └── guides/
├── content/ Content pages (good for blocks, items, entities and other objects)
│ ├── _meta.json
│ ├── blocks/
│ ├── materials/
│ └── tools/
├── assets/examplemod/
│ ├── item/ Inventory item renders
│ └── lang/ In-game item names
└── data/ In-game mod data (usually exported or generated)
├── examplemod/
│ ├── recipe/ Recipes in Minecraft's format
│ └── properties/ Item properties shown in the page sidebar
└── c/tags/ Item tags in Minecraft's format
The sample pages show the features and components you'll use most:
-
Link shortcuts to items (
[](@examplemod:zinc_ingot)) and documentation pages ([]($getting_started)) -
Recipes from your data files:
<PrefabObtaining />and<PrefabUsage />for content, and<ProjectRecipe>,<RecipeUsage>for docs -
Callouts using GitHub's alert syntax (
> [!TIP]) -
Figures using asset image (
) -
An item's changelog (
historyinwrench.mdx)
-
Copy the
wikifolder and.github/workflows/deploy-wiki.ymlinto your repository. -
In
wiki/sinytra-wiki.json, setidto your project ID,modidto your mod ID (leave it out for non-mods), andplatformsto your Modrinth/CurseForge project slugs. -
Rename the
examplemodfolders underassetsanddatato your mod ID, and also update the IDs in pages and data files. -
Replace the sample pages, textures, recipes and names with your own. You can copy recipes, tags and language files directly from your mod's resources. (hint: try using our exporter)
-
Commit and push your changes, then register the project in the developer portal with your repository URL, branch, and
/wikias the path to the documentation root.
Run the local previewer to check your pages before publishing.
The deploy-wiki.yml workflow deploys the wiki whenever files under wiki/
change on the master branch.
It uses GitHub OIDC, so no secrets are needed.
Update it to match your project's information:
project: your wiki project IDbranches: the branch you registered on the wiki. Deploys from other branches are rejected.
For an improved experience, we recommend installing our Gradle plugin in your modding environment. It allows you to run a local wiki preview as well as easily export your mod's assets with zero configuration required.
plugins {
id 'org.moddedmc.wiki.toolkit' version '0.6.+'
}
wiki {
docs {
examplemod {
root = file('wiki')
}
}
}Check out the Wiki Toolkit repository for all configuration options.
Automatic, zero-configuration exports using our exporter mod are available on all popular platforms and recent game versions.
To run the export, run ./gradlew runWikiExportClient and wait for the game to close automatically.
The exporter mod will generate and export the following:
- Inventory renders of mod blocks and items (placed under
assets/modid/item/) - Language files (placed under
assets/modid/lang/) - Item metadata (placed under
data/modid/properties/)
Exported files will be placed in their respective locations based on the configured wiki root. Check the mod's repository for available configuration options.
Run the previewDocs task to start the previewer. Once ready, it will be available at http://localhost:3000.
Read the wiki documentation to learn more about wiki features:
This template is released under CC0 1.0. Copy and adapt it freely, no attribution is required.
The textures in wiki/assets/examplemod/item are sourced from
malcolmriley/unused-textures by Malcolm Riley, licensed under
CC BY 4.0.