This is a tool that generates documentation based on comments on an mSL file.
mIRC v7.52+
The main file is called SimpleDocumentation.mRC
and it is located in the root
folder.
The main command is document <file> <destination>
, where <file>
is the msl file and <path>
the destination path for the file of the documentation (README.html).
All of your documentation comments must start with /**
. And the documentation must start with an asterics and a space (*
). The documentation must follow the following paterns:
For General Information
/**
* @title Documentation title
* @header Main Header
* @subheader Sub Header
* @footer Some footer
*/
example:
/**
* @title My Project's Documentation
* @header My Project
* @subheader The best project
* @footer My Project
*/
For events:
/**
* Description...
*
* @event someEvent
*/
example:
/**
*
* Loads everything needed for this project when mIRC starts.
*
* @event start
*
*/
on *:start: echo -s nothing is needed ;)
For Commands
/**
* Description...
*
* @command /myCommand
*
* @switch a some description...
*
* @param <someParam> someParam description...
*
* @global
*/
example:
/**
*
* Changes my nick to something random
*
* @command /fun
*
* @param <N> the number of characters
*
*/
alias -l fun {
var %nick = $char($rand(65,90)),%i = 1
whie (%i < $1) {
%nick = $+(%nick,$char($rand(65,90)))
inc %i
}
nick %nick
}
For Identifiers
/**
* Description...
*
* @identifier $myIdentifier
*
* @param <someParam> someParam description...
*
* @prop someProp someProp description...
*
* @global
*/
example:
/**
*
* Returns my projects current version.
*
* @identifier $SIMPLE_VERSION
*
* @global
*
*/
alias SIMPLE_VERSION return 0.0.1
Note:
- All @ specifiers are optional.
- @title,@header,@subtitle can only be one line long
- The @global specifier indicates that the alias is a global.
If you would like to contribute to the project I ask that you use variable_names with all lower case and all aliases with camelCase. All new aliases and/or modifications must be documented.
This project is made available under the MIT License.