"Original" use Doxygen to manage project documents or annotations, Doxygen project
First, Doxygen application scenario:
Doxygen can be used to manage the annotations of the current mainstream programming language and form a document system. (includes C, C + +, C #, Objective-c, IDL, Java, VHDL, PHP, Python, TCL, FORTRAN, etc.). Doxygen official website address (http://www.doxygen.nl/) Most of the time recently spent on the maintenance of API interface, one of the more important part is how you write the interface to let callers understand the usage at a glance. The same is true for both the internal wireless server and the client, as well as the Open API interface. It took a couple of days to try to manage the interface document using Doxygen with SVN hooks, which is handy and practical. Doxygen official website itself is actually the use of Doxygen to do, if you want to see more specific effect, you can directly refer to http://www.doxygen.nl/.
The following first put out the part I made, the UI is very frustrated, you can really use the company UI department to beautify, because I am still mainly used in the intranet, so I do not think too much about the UI experience:
Second, installation:
Doxygen currently has a more comprehensive support for Windows, Mac Ox, Linux and other mainstream systems. and is basically used in all current mainstream programming languages. Here is a brief introduction of their own in the Ubuntu system under the source code compilation installation process. The remaining installation methods may refer to the official website.
Third, the configuration of using Doxygen configuration file:
The use of Doxygen can be said to configure the configuration file, that is, you just slightly configure the configuration file, and then execute the command: Xxxx/doxygen xxxx.conf can generate the document you want ( here Doxygen provides a variety of formats of the document, I mainly use HTML, so that we can configure a Web service to this HTML, you can use the web above the document. ), Doxygen provides more than 200 configuration items, the configuration file is already able to complete the rich functionality, the following are some common configuration instructions:
Iv. writing of notes after the completion of Doxygen configuration
When you've configured your Doxygen, you'll spend almost the rest of your time writing and maintaining notes in your code. Want to use Doxygen to manage documents. Then the code's comments are not strictly required.
/** * @brief here uses brief to illustrate the main function of the interface method * @date the creation time of the interface method * @author the creator of the interface method * @param : The parameters are described in the following table: * Name | type | Description of param *----------|-----------|--------------------* car_id | int | vehicle Source number * province | int | Clerk's Province * x | X | x * x | X | x * x | X | X * @return The return value is described as follows: * Name | type | description of value *--------|----------|----------------------* C ar_id | int | vehicle Source number * car_info | object | Source information in JSON object format * @warning the interface needs to tell the caller some warning * @attention the interface requires Some caveats that are told to callers * @note Some notes for this interface. This is typically used when the latter has significant changes to the interface. Note that some time someone changed something * @ Todo some unfinished todo content for this interface */public function Newsale () {do someting;}
In the project can be agreed in advance written rules, the rest as long as you follow this rule to maintain. Of course people are people after all, it is impossible to ensure that all the code can be written according to the expected annotation rules. The path to the log file can therefore be specified in the Doxygen configuration file. You can take advantage of this day file, write a small piece of code in the appropriate scripting language to analyze the log file, and then personalize the point to display on the Web page. The designated management staff periodically review the comment error log to instantly correct the incorrect comment.
The more commonly used characteristics of Doxygen
Doxygen function is far more than I described above, there are many colorful features, there are people who want to use this thing, you can go to the Doxygen official online study ha. This article can be reproduced at will, but please be sure to indicate the original source.
http://www.bkjia.com/PHPjc/922301.html www.bkjia.com true http://www.bkjia.com/PHPjc/922301.html techarticle "original" use Doxygen to manage project documents or annotations, Doxygen project one, Doxygen application scenario: Doxygen can be used to manage annotations in the current mainstream programming language to form a document System ...