Command Shortcuts
Command Shortcuts is a feature in Voile that allows you to configure commands that will open specific topics. This allows you to create accessible documentation for server's specific needs. One example is /rules command that shows server's rules.
Configuration
You may enable and configure Command Shortcuts in Voile's configuration file config.json located in mods/IwakuraEnterprises_Voile.
Here you can add the command shortcuts. They are simple objects that specify the command's name and the topic that will be opened.
This defines a command /rules that opens the rules topic in MyDocumentation within group MyGroup.
Adding your first command shortcut
Let's say you have created documentation with ID MyDocumentation in group MyGroup. Let's create a topic called rules:
Upon reloading Voile with /docs-reload, you should be able to see new topic labeled Server Rules. However as of now, you cannot open it with a command. Let's change that. Open Voile's configuration file config.json and add a command shortcut.
We must define the command's name (here rules) and what topic it will open. This is done using Topic Identifier (see topic Topic Identifiers for more information).
After restarting the server, you should be able to run /rules command that will open the Server Rules topic.