Writing documentation

To write your documentation as best as possible, you can use pretty much all the docblock tags that you want.

However, to generate the docmap, we only take these specifics tags:

  • id: The if of the current doc. Build like so: ${namespace}.${name}.
  • name: The name of your function/class/etc... required
  • as A human readdable version of the name to use in your UI.
  • namespace: A namespace under which to store this doc element in the docmap required
  • type: The type of what you are documenting like "function", "class", "string", etc...
  • menu: A special tag to create menus inside the docmap. This is documented in this documentation
  • default: The default value of what you are documenting like "true", "something", etc...
  • platform: The platform on which your item will run like "node", "browser", "php", etc...
  • description: The description of your item
  • status: The status of your item like "alpha", "beta", "stable", etc...
  • example: An example of how to use your item
  • interface: A relative path of where to find the associated SInterface interface definition file.
  • async: Define if your item is async or not
  • static: Define if your item is static of not
  • since: Define from when this item is available like "2.0.2", "1.2.3", etc...
  • author: Define which if the author of this item

These tags are the one that will be written in the docmap. This does not mean that you cannot use other tags inside your docblocks. They just wont be listed inside the docmap.

To add some tags inside your docmap, simply add id to the configuration array under the config.docmap.build.tags namespace.

Example

Here's a real life example to illustrate how to write nice documentation.

This example is the documentation of the querySelectorLive DOM function

Bugs
are not our friends...

Don't hesitate to declare an issue if something does not works as expected.

Declare my issue on Github Talk about it on Discord

The more we are,
the stronger we become.

Don't hesitate to tell some words to you friends about us. The goal is to became more and more each days to help each others...

Support us on Patreon! Share on Facebook! Make a tweet!

The more we are,
the stronger we become.

Don't be afraid to join us on Discord.

Join us on discord!

We love,
Open source!

All of our codebase can be found on Github. We hope that you may contribute to help us make our tools even better!

Discover our codebase!

Welcome on