Iwakura Enterprises Docs 1.8 Help

Advanced

Advanced support gives you lot more freedom. From custom documentation to as many topics & sub-topics you might need.

Create documentation index file

Firstly you need to tell Voile what documentations you want to add. This is done by creating an index file in Common/Docs directory in your mod's resources. Voile searches for JSON files named in format of {ModGroup}_{ModName}.json.

Let's say your mod has group MyGroup and name MyMod. In that case you would create index file at Common/Docs/MyGroup_MyMod.json.

The index file has the following structure:

{ "documentations": [ { "group": "MyGroup", "id": "MyDocumentation", "name": "My mod documentation", "enabled": true, "sortIndex": 300, "topics": [ { "file": "index.md", "subTopics": [ { "file": "tutorial/first-steps.md" } ] } ] } ] }

This will:

  • Define new documentation in group MyGroup, with ID MyDocumentation, with user-friendly name My mod documentation.

    • The group and ID is used as the root directory for the documentation. In this example, the directory Common/Docs/MyGroup_MyDocumentation will contain all the Markdown files for the documentation.

    • The group and ID are also used when referencing specific documentation's topic. The user-friendly name is shown to the user in the documentation list on the left side of the interface.

  • Mark the documentation as enabled. Disabled documentations are not shown to the player.

  • Give a sort index to the documentation. Sort indexes are used to sort documentation list: they are sorted from the lowest to highest. This allows you to control the order of documentations.

  • List of topics that the documentation will contain.

    • For example, the index.md topic will be loaded from Common/Docs/MyGroup_MyDocumentation/index.md

    • The first-steps.md topic will be loaded from Common/Docs/MyGroup_MyDocumentation/tutorial/index.md

The directory structure will look something like this:

Common/Docs/ MyGroup_MyMod.json MyGroup_MyDocumentation/ index.md tutorial/ first-steps.md

Writing topics

Topics are written in Markdown with a front-matter.

Common/Docs/MyGroup_MyDocumentation/index.md

--- name: Home description: This is home for my mod documentation! author: Me & myself --- # Home Welcome to my mod! Here you'll be able to learn all the important stuff about it.

    Common/Docs/MyGroup_MyDocumentation/tutorial/first-steps.md

    --- name: First steps description: Starting with my mod author: Me & myself --- # First steps You can start playing my mod by crafting.....

      The topic's ID is derived from its file name. So index.md will have ID index and first-steps.md will have ID first-steps. You may also use field id in the front-matter to specify your own ID.

      What's next?

      It's recommended to learn:

      You may also see Voile's internal docs in the GitHub repository. Make sure to follow the naming convention in the first chapter.

      18 February 2026