- Use JSDoc for code documentation for following reasons:
JSDocparses code-tree, which means smart code analysis, internal linking and less comments verbosity in code,JSDocis extensible via JS plugins,JSDocpresentation is customizable via templates,- Existing code uses
JSDocformat mostly;
- Use either
JSDocor jsdoc-to-markdown to generate documentation HTML/md,- In case of
jsdoc-to-markdownwe will need to set up code linking (it is included byJSDocby default but not byjsdoc-to-markdown);
- In case of
- Create
JSDocplugin for handling Cordova-specific tags likesupported-platforms,quirks(orwindows-quirks,android-quirks, ...), etc.,- Investigate possibility: Link to quirks/examples (similar to tutorial tag) instead of inlining to reduce noise in the code (this will also help as existing docs will be moved as is);
- Use custom
JSDoctemplate to integrate withcordova-docssite,- The documentation will need to be rebuilt on each code change. Investigate a proper way to do this? (CI tools, precommit hook, prepackage hook for npm).
Upd: Prototype based on camera plugin - docs are generated by jsdoc-to-markdown command.
jsdoc-to-markdown currently does not support jsdoc configuration so that @partial plugin can't be used as is.
Are you proposing we use jsdoc or jsdoc-to-markdown? jsdoc-to-markdown looks quite promising as it has most of what we need - except perhaps some extensibility is that correct?