如何在swagger-github-pages等github-pages中发布AsyncApi?

问题描述

我想知道如何在github页面中发布(如果可能)AsyncApi项目,就像我们对swagger-github-pages做的事情一样。

我的最终目标是为消费者提供一个Swagger Petstore示例之类的Asyncapi文档

解决方法

您可以使用AsyncAPI社区提供的generator with the HTML template

基本上,它是通过AsyncAPI文档生成的intex.html文件。然后,您可以按照swagger-github-pages中所述的相同方式发布此intex.html