This repositry contains an effort to create a JSDoc template and plugins that work well with AMD and C3MRO-based multiple class inheritance.
First you need to:
Then you can use the template/plugins by:
$ cd /path/to/jsdoc-amddcl
$ jsdoc -c ./conf.json /path/to/yourproject /path/to/yourproject/README.md /path/to/yourproject/package.json
The conf.json file contains the pointer to our template/plugins, as well as the typical usage pattern using our template/plugins.
You can try a sample project in this repo:
$ cd /path/to/jsdoc-amddcl
$ jsdoc -c ./conf.json ./sampleprojects/sampleproject/ ./sampleprojects/sampleproject/README.md ./sampleprojects/sampleproject/package.json
First you export doclets of the dependant projects by JSDoc's -X
option:
$ cd /path/to/jsdoc-amddcl
$ mkdir out/dependantproject
$ jsdoc -X -c ./conf.json /path/to/dependantproject /path/to/dependantproject/package.json >! out/dependantproject/doclets.json
All doclets.json files under JSDoc output directory is searched by our plugin to import doclets.
You can try a sample project in this repo:
$ cd /path/to/jsdoc-amddcl
$ mkdir out/sampleframework
$ jsdoc -X -c ./conf.json ./sampleprojects/sampleframework ./sampleprojects/sampleframework/package.json > out/sampleframework/doclets.json
dcl()
returns.This project is distributed by the Dojo Foundation and licensed under the "New" BSD License. All contributions require a Dojo Foundation CLA.
This is a derivative work of JSDoc 3 which is copyright (c) 2011-2014 Michael Mathews micmath@gmail.com and the contributors to JSDoc.
JSDoc 3 is free software, licensed under the Apache License, Version 2.0. See
the file LICENSE-jsdoc.md
in this distribution for more details.