Skip to content

nep-0/swagger-gen

Repository files navigation

swagger-gen

Generate single-file HTML documentation from OpenAPI v3 specifications.

Installation

Download the latest binary for your platform from Releases.

Usage

swagger-gen -i openapi.yaml [output.html]

If no output file is specified, defaults to docs.html.

CDN Options

Use CDN for smaller output files (requires internet access):

swagger-gen -i openapi.yaml -jsdelivr docs.html    # jsdelivr
swagger-gen -i openapi.yaml -unpkg docs.html       # unpkg
swagger-gen -i openapi.yaml -staticfile docs.html  # staticfile (China)
swagger-gen -i openapi.yaml -cdn <URL> docs.html   # custom CDN

Defaults to embedded mode (self-contained, works offline).

License

MIT © 2026 Jeff

About

Generate single-file HTML documentation from OpenAPI v3 specifications.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages