简体   繁体   English

nifi如何生成文档?

[英]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. 查看Apache nifi的源代码,我发现它们在代码的开头使用@符号生成了文档。 Here's an example for reference. 这是一个供参考的例子。 How is the documentation generated from these lines? 这些行如何生成文档? Is this possible using scala? 使用scala可以做到吗?

The @ symbols are syntax for Java Annotations , which Apache NiFi uses to mark up extension components for generating documentation. @符号是Java注释的语法,Apache NiFi使用该语法标记扩展组件以生成文档。

NiFi documentation is generated by the nifi-documentation sub-project, part of the NiFi framework. NiFi文档是由NiFi框架的一部分nifi-documentation子项目生成的。 You can follow the details in the DocGenerator.generate method. 您可以遵循DocGenerator.generate方法中的详细信息。 There are some unit tests in the nifi-documentation project that will help you run through it. nifi文档项目中有一些单元测试可以帮助您完成它。

I'm not very familiar with Scala, but I believe you can read/write Java annotations. 我对Scala不太熟悉,但是我相信您可以读写Java注释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 NIFI 中创建自定义 controller 服务时无法生成扩展的文档 - Could not generate extensions' documentation when creating custom controller service in NIFI 如何为没有源的类生成JavaDoc文档? - How to generate JavaDoc documentation for classes without source? 如何为RAML生成文档和客户端代码? - How to generate documentation and client code for RAML? 如何使用ant生成jfreechart的文档 - how to generate documentation of jfreechart using ant 如何为swagger REST API文档生成Java客户端代码 - How to generate java client code for swagger REST API documentation 如何使用maven-swagger-codegen-plugin生成文档? - How generate documentation with maven-swagger-codegen-plugin? 如何阐明引用现有XSD的生成文档 - How to have enunciate generate documentation referencing existing xsd 如何为SAHI脚本生成Javadoc样式文档? - How do I generate Javadoc Style Documentation for SAHI scripts? 如何配置 groovydoc(用于 gradle)为 java 和 groovy 源生成文档 - How to configure groovydoc (for gradle) to generate documentation for both java and groovy source ExtendedTableDataModel重置方法如何工作? 有文件吗? - How does ExtendedTableDataModel reset method work? Is there documentation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM