nifi如何生成文档?
How does nifi generate documentation?
查看 Apache nifi 的源代码,我看到他们在代码开头使用 @ 符号生成文档。 Here's an example for reference. 这些行是如何生成文档的?这可能使用 scala 吗?
@
符号是 Java Annotations 的语法,Apache NiFi 使用它来标记扩展组件以生成文档。
NiFi 文档由nifi-documentation sub-project, part of the NiFi framework. You can follow the details in the DocGenerator.generate 方法生成。 nifi-documentation 项目中有一些单元测试可以帮助你 运行 通过它。
我对Scala不是很熟悉,但是我相信你可以read/write Java注解。
查看 Apache nifi 的源代码,我看到他们在代码开头使用 @ 符号生成文档。 Here's an example for reference. 这些行是如何生成文档的?这可能使用 scala 吗?
@
符号是 Java Annotations 的语法,Apache NiFi 使用它来标记扩展组件以生成文档。
NiFi 文档由nifi-documentation sub-project, part of the NiFi framework. You can follow the details in the DocGenerator.generate 方法生成。 nifi-documentation 项目中有一些单元测试可以帮助你 运行 通过它。
我对Scala不是很熟悉,但是我相信你可以read/write Java注解。