Open micuat opened 2 years ago
Oooh cool! I definitely think we should add a documentation generator, i.e. a set of scripts that process multiple resources into the resulting documentation.
Some questions and thoughts about YUIdoc / jsdoc annotations:
how does this fit in with the docsify documentation? I can imagine a script that parses the jsdoc comments from hydra-synth into markdown that gets used within the interactive documentation. i.e. https://github.com/jsdoc2md/jsdoc-to-markdown
The jsdoc/yuidoc notation seems really useful for documenting the additional functions (i.e. s0.initCam, render(), setFunction(), etc.), so I would love to start adding that in to the other parts of hydra-synth. For this specific example, isn't it possible to auto-generate js-doc formatting from the existing glsl-functions.js? (If necessary, we could also add a description field for each input parameter). But maybe this way is more readable.
I want to make sure this stays in sync with the ideas at: https://github.com/ojack/hydra/issues/109 , specifically around using the function reference as part of Intellisense / autocomplete and adding type definitions.
@ojack
currently testing here: https://naotohieda.com/hydra-yuidoc-test/classes/GlslFunctions.html
repo: https://github.com/micuat/hydra-yuidoc-test
annotated code looks like