The A-Frame site uses Markdown (.md) docs and renders them to HTML in the build step. We will be slurping up aframe-core's .md docs from this repo's docs/ directory (and same goes for the aframe repo's).
I was able to get JS Doc doc comments generated to Markdown using jsdoc2md:
Issue by cvan Friday Dec 04, 2015 at 03:41 GMT Originally opened as https://github.com/aframevr/aframe-core/issues/594
The A-Frame site uses Markdown (
.md
) docs and renders them to HTML in the build step. We will be slurping upaframe-core
's.md
docs from this repo'sdocs/
directory (and same goes for theaframe
repo's).I was able to get JS Doc doc comments generated to Markdown using jsdoc2md:
https://gist.github.com/cvan/f50ae50fd4cfb2101b9c#file-all-md
Research
https://github.com/jsdoc2md/jsdoc-to-markdown – not great, but the most promising https://github.com/tj/dox – decent output, but returns JSON not Markdown https://github.com/tjchaplin/mox – no https://github.com/cbou/markdox – no https://github.com/sutoiku/jsdox – no http://jashkenas.github.io/docco/ – nouseful for only inline docs, not API reference docs https://github.com/jamesramsay/hercule#advanced-use-default-placeholders – meh, but interesting https://github.com/jsdoc3/jsdoc – nope, doesn't properly support Markdown (lots of bugs, tables don't work, and a bunch of other useful Markdown syntax)
Relevant examples of JS Doc for modules
http://usejsdoc.org/howto-commonjs-modules.html https://github.com/olivernn/lunr.js/blob/master/lunr.js