简体   繁体   中英

How does nifi generate documentation?

Looking through Apache nifi's source, I see that they generate their documentation using @ symbols at the beginning of the code. Here's an example for reference. How is the documentation generated from these lines? Is this possible using scala?

The @ symbols are syntax for Java Annotations , which Apache NiFi uses to mark up extension components for generating documentation.

NiFi documentation is generated by the nifi-documentation sub-project, part of the NiFi framework. You can follow the details in the DocGenerator.generate method. There are some unit tests in the nifi-documentation project that will help you run through it.

I'm not very familiar with Scala, but I believe you can read/write Java annotations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM