I have created a Swagger documentation with a yaml file under:
api/swagger/swagger.yaml
Now I want to share a static HTML document with its definition, yet it was stated on the swagger project, that they don't plan to support HTML generation at all.
How can I generate a static HTML file from a Swagger project?
There is swagger2markup-cli that can generate a static
adocfile.Ensure that you have Java runtime installed. (I am using
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)).You fetch the jar:
And you can generate the a static
adocwith it via:That adoc file can then be converted into a
htmlfile viaasciidoctor:You may need to install it, as I am using Ubuntu, I could via: