Doc.js is a simple inline documentation parser written in javascript for javascript. It uses jscc to parse a custom javascript spec syntax from comments in source code.


Use the doc-jsml wrapper script and stylesheet to render documentation in-browser from a script document requested via ajax. This script uses jsml to render json output from the doc.js library script as DOM.

<!-- in head tag -->
<link rel="stylesheet" href="">

<div id="docs"></div>

<!-- before closing body tag -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
  doc('/doc-jsml.js', document.getElementById('docs'));