DevEco Studio makes it easy to create ArkTSDoc documentation using the Generate ArkTSDoc feature. With this feature, you can quickly generate reference documents for variables, methods, APIs, classes, and other information that you want to expose from your code.
Since DevEco Studio 6.1.0 Beta1, ArkTSDoc supports multi-module export and allows you to exclude specific directories from the export.
Click the drop-down arrow next to Modules to display all modules, and select one or more modules as the export scope. When there are many modules, you can use the search feature to quickly locate a module.

Since DevEco Studio 6.1.0 Release, the Command line arguments field supports Ant-style path patterns, where ? matches a single character, * matches a single directory or file name, and ** matches zero or more directories at any level.

The left panel of the generated ArkTSDoc mirrors your project's directory structure, while the right panel allows you to navigate to specific variables, methods, APIs, or classes in the documentation.

If the Open generated documentation in browser option is not selected, a notification will pop up in the lower right corner of DevEco Studio after the documentation is generated. You can click Go to Folder to navigate to the generated ArkTSDoc folder and open the index.html file in a browser to view the documentation.
/**
* Prints "log" logs.
*
* @param { string } message - Text to print.
* @myTag
* @since 11
*/ Sample code:
/**
* Defines the demo class
*
* @since 11
*/
export class Demo {
/**
* Prints "log" logs.
*
* @param { string } message - Text to print.
* @myTag
* @since 11
*/
static log(message: string): void {
}
} Example of generated ArkTSDoc
