Home > Database > Mysql Tutorial > body text

Generate MySQL Doxygen documentation content

WBOY
Release: 2023-09-20 23:29:02
forward
1485 people have browsed it

生成 MySQL Doxygen 文档内容

#MySQL’s source code contains extensive internal documentation, which is written using Doxygen. This Doxygen content is available at https://dev.mysql.com/doc/index-other.html. This Doxygen content can be generated locally from the MySQl source distribution. This can be done by following the steps -

Install Doxygen

The first step is to install Doxygen 1.8.11 or higher. These distributions are available at http://www.doxygen.nl/.

After installation, the version number must be verified. This can be done using the following command -

shell > doxygen −−version
1.8.13
Copy after login

Install PlantUML

The next step is to install PlantUML. When it is installed on Windows 10, it should be run as administrator at least once so that registry keys can be created.

The administrator console can be opened and the following code needs to be executed -< /p>

shell> java &minus;jar path&minus;to&minus;plantuml.jar
Copy after login

The above command will open a GUI window and the console will not display any errors.

After completing this step, you need to set the PLANTUML_JAR_PATH environment variable to the location of the PlantUML installation. Let’s see an example −

shell> export PLANTUML_JAR_PATH=path-to-plantuml.jar
Copy after login

Installing Graphviz

The next step is to install the Graphviz dot command.

After the installation is completed, you need to verify the availability of the dot command. This can be verified using the following command:

shell> which dot
/usr/bin/dot

shell> dot &minus;V
dot &minus; graphviz version 2.28.0 (20130928.0220)
Copy after login

The location of the top-level directory of the MySQL source code distribution must be changed. You can use the following command to make changes −

shell> cd your-mysql-source-directory
shell> mkdir bld
shell> cd bld
shell> cmake ..
Copy after login

First execute cmake.

Generate Doxygen documentation

The next step is to generate doxygen documentation. This can be done by executing the following command -

shell> make doxygen
Copy after login

Once you complete this step, you need to check the error log. The error log can be found in the doxyerror file in the top-level directory. Once the build executes successfully, the generated output can be viewed on the browser. This can be done using the following command −

shell> firefox doxygen/html/index.html
Copy after login

The above is the detailed content of Generate MySQL Doxygen documentation content. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template