Documentation index file
What is it?
The documentation index file is used by Voile to create new documentation entries within its interface. It contains various information and holds all topics. Based on the documentation type, Voile looks for it in specific places.
Server wiki:
mods/IwakuraEnterprises_Voile/documentation/index.jsonMod wiki:
src/main/resources/Common/Docs/{YourModGroup}_{YourModName}.json
Format
The documentation index file follows strict JSON format.
Full JSON example
Documentation loaders
Voile has various documentation loaders that load different types of documentations.
UniversalDocumentationLoader
Currently used documentation loader for the majority of the documentations that are loaded by Voile.
Used when loading server documentation and mod documentation that enables the universalDocumentationLoader compatibility. Supports all features Voile provides (topic localization, relative image paths, etc.)
Server documentations are loaded from
mods/IwakuraEnterprises_Voile/documentation/index.jsonMod documentations are loaded from
src/main/resources/Common/Docs/{YourModGroup}_{YourModName}.json
Supports topic discovery - automatically includes all topics found within the documentation's root directory. Any nested folders are exempt from this discovery (must be specified using the sub-topics field in the topic's front-matter).
ResourceMarkdownFileDocumentationLoader
Used when loading one-file mod integration Markdown files. The Markdown files are loaded from src/main/resources/Common/Docs/{YourModGroup}_{YourModName}.md
Does not support topic localization, relative image paths, etc.
DirectDocumentationLoader
Programmatically provides documentations. Only accessible to programmatic integrations using the VoileAPI.
FileSystemDocumentationLoader
Deprecated in favor of UniversalDocumentationLoader.
Used to load server documentations from mods/IwakuraEnterprises_Voile/documentation directory.
ResourcesDocumentationLoader
Deprecated in favor of UniversalDocumentationLoader.
Does not support topic localization and relative image paths.
Used to load mod documentations from the src/main/resources/Common/Docs/{YourModGroup}_{YourModName}.json directory. These documentations must specify the topic files manually, as there is no topic discovery.
HMWikiDocumentationLoader
Integration with the Hytale Modding Wiki. Learn more in the Integrations topic.
Loads wiki pages from Hytale Modding Wiki as Voile documentations. Currently, it does not support topic localization and may occasionally display content incorrectly.