I am currently writing a plugin for jQuery.
Now I'm wondering how can I create documentation for this plugin, since I assume there are better ways than writing HTML directly.
However, I do not want to put my documentation in the source code and thus invoke the correct lines when debugging is not possible. So I'm looking for a way to separate the documentation and the source code.
How is jQuery documentation created? Studying jQuery source code, I find no documentation annotations that make me hope that I can use the same system as they are. Are the tools that they use somehow documented?
I found the following XML file, looking for the answer http://api.jquery.com/api/ , which seems to be created sometime inside the โbuildโ jQuery process.
I would be happy to write my documentation to a similar file and run some tools above it to โprefixโ it to display it to the user.
How do you create your documentation for jQuery libraries (except for entering it in the source code)?
Does anyone know the tools used by the jQuery team (or at least in what format the source documentation is)?
Thank you very much in advance!
source share