[英]How do I auto generate documentation of Yii based web application
I have been developing a web app on Yii framework which has around 60% of the codes in javascript.我一直在用 Yii 框架开发一个 web 应用程序,它有大约 60% 的 javascript 代码。 During the development I could not create a simultaneous document of the functionality/code etc., but it just has unstructured comments written alongside the code.在开发过程中,我无法创建功能/代码等的同步文档,但它只是在代码旁边编写了非结构化的注释。
I would like to auto-generate a documentation of my web app in HTML document that displays the comments intermingled with code.我想在 HTML 文档中自动生成我的 Web 应用程序的文档,该文档显示与代码混合的注释。
If anyone can provide some direction on auto-generating documentation from source-code and comments that would be of great help.如果有人可以提供有关从源代码和注释自动生成文档的一些指导,那将有很大帮助。
Big thanks !!非常感谢!!
我的建议是phpdoc .phpDocumentor 是一个可以从 PHP 源代码生成文档的工具。
I finally used Natural Docs because it is simple, efficient and supports many languages.我最终使用了Natural Docs,因为它简单、高效并且支持多种语言。 All that is required is a very minimal structure in comments ie所需要的只是注释中的一个非常小的结构,即
/*
Function: Multiply
Multiplies two integers.
Parameters:
x - The first integer.
y - The second integer.
Returns:
The two integers multiplied together.
See Also:
<Divide>
*/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.