docma
Version:
A powerful dev-tool to easily generate beautiful HTML documentation from Javascript (JSDoc), Markdown and HTML files.
24 lines (16 loc) • 450 B
JavaScript
/* global docma, $ */
// This is just a demonstration. Make sure this file is minified.
(function () {
'use strict';
docma.once('ready', function () {
// runs once when docma and document is ready
});
docma.on('render', function (currentRoute) {
if (!currentRoute) return;
if (currentRoute.type === 'api') {
// api route
} else {
// content route
}
});
})();