Mod manual page
What is the manual page for mods?
Manual page for mods is a file consisting of documentation for the mod or for a specific part of the mod. They clarify how to use the mod, what are the commands, and so on. Sometimes, they may include release notes with the mod.
The file format didn't have so many changes from the 0.0.6.0's .ksman
format, but the file extension is changed to .man
format, along with the other changes that the modern format has seen.
Feature |
|
|
Comments |
|
|
Manual page start |
|
|
Title & Revision |
|
|
Manual layout ver. |
| (none) |
Body start |
|
|
Body end |
|
|
(none) | Supported | |
Color configuration per-word |
| (none) |
Color configuration per-word end |
| (none) |
Sections (SE1, SE2, SE3, ...) |
| (none) |
Sections end |
| (none) |
TODOs |
|
|
To make the comparison clearer, compare the two examples which are shown below:
Mod documentation example in .man
format
.man
formatMod documentation example in .ksman
format
.ksman
formatFormat
Open your favorite text editor and write the (*MAN START*)
tag, because every single manual page must contain this tag in the first line. Then, write the below specifiers to let Kernel Simulator know the title and the version of your manual page.
Title and Revision
The title can be the manual page title in one line. The revision can be either SemVer2-compliant, date and time, build number, or just the mod version.
Body
The contents of the manual page must be surrounded by the -BODY START-
and the -BODY END-
tags to signify that they are actually shown in the mod manual viewer. Take a look at the example below to show what was meant to be:
Comments
Of course, all the comments are ignored and are not shown, whether it's on the body or not. They are to clarify some points on the developer's side. These comments start with the ~~-
tag and the text follows it. If you want to specify a TODO to indicate that the work isn't finished yet, you may do so by writing ~~- TODO:
. These tasks are shown in the kernel prior to displaying the body.
Comments outside body
Comments inside body
Personalization
You can even use the placeholders to personalize your manual page. Consult the Placeholders page for more information about how to use them in manual pages.
Installation
To install the manual page to your mod, create a folder in KSMods
the mod DLL name with .manual
appended to the end (for example, mod.dll.manual
). Put all your .man
files inside the folder (for example, manual.man
). The structure should look like this:
Run Kernel Simulator, log-in to your account, and write modman <manual title>
. If your manual title is enclosed in spaces, you may surround the title with the double quotes, for example, modman "First Mod Manual"
.
Last updated