pencil-js/pencil.js

Find a good documentation generator

GMartigny opened this issue · 4 comments

Low level documentation could be generated from jsDoc. We need to find a good module able to handle this for each sub-packages.
Generated documentation should be easily readable, display all informations present in jsDoc and have links to other files (for types for example).

PS: High level documentation ("readme", "first steps", "changelog" ...) should still be written by hand.

I use a script to convert the jsDoc to JSON, then I have a js function that can parse the JSON and render the API.
The result is this:
https://genielabs.github.io/zuix/#/api
This is the script (gulp):
https://github.com/genielabs/zuix/blob/master/build/gulp/tasks/zuix/dox.js
And this is the js used to parse/render the JSON data.
https://github.com/genielabs/zuix/blob/4a70c750d244e4ea66cbf474b22744d76dd6d22e/source/app/content/api/api_loader.js

Can this be useful for the purpose?

I'm not planning on using Gulp or any task runner. Too bad that Dox only generate JSON.
Grazie comunque.

You don't have to use gulp.
Just use dox to generate JSON and then re-use the api_loader.js code or write your own code logic to fetch the JSON and render it (either statically or dynamically).

Fixed by 18fd232