Jsdocx - 文档自动化生成工具

jopen 12年前
     这是一款用java写的文档生成工具。可以自动扫描JS源代码,抽取所有类的方法与属性生成完整的项目API文档。    <br />    <br /> 示例代码生成的HTML文档可以看这里:    <a href="/misc/goto?guid=4959499615381801130" target="_blank">http://jsdocx.sourceforge.net/example/sanguo/js/jsdocx/index.html</a>    <br /> Jsdocx的项目首页:    <a href="/misc/goto?guid=4959499615469913783" target="_blank">http://jsdocx.sourceforge.net/</a>    <br /> Jsdocx的注释规范文档:    <a href="/misc/goto?guid=4959499615553679916" target="_blank">http://jsdocx.sourceforge.net/Jsdocx_Annotation_Specification.html</a>    <br />    <br /> 你可以下载jar。    <br /> 在命令行中执行:    <br />    <span style="color:blue;">java -cp org.dragonfly.jsdocx-<version>.jar org.dragonfly.jsdocx.JsdocCreator -Souredir=<js source's directory></span>    <br />    <br /> Arguments:    <br /> -Charset=<charset>: the generating html document's charset    <br /> -Souredir=<directoryPath>: the javascript source's directory    <br /> -Docdir=<directoryPath>: the generating html document's directory    <br /> -Clean: clean the html document's directory before generating    <br />    <br /> 或者在Java代码中执行:    <br />    <span style="color:blue;">JsdocConfig config = new JsdocConfig();<br /> config.setSourceDir("the javascript source's directory");<br /> new JsdocCreator(config).generate();</span>