rohitkoul / hugo-swagger-shortcode

MIT License
4 stars 3 forks source link

hugo-swagger-shortcode

========================

A Hugo Shortcode to embed the Swagger Spec in a page. This repo is based on swagger yaml tp html python script.

Setup

========

Copy the following into your Hugo site's directory:

Usage

=======

{{< swagger-spec url="local_or_remote_path_to_my_yaml_file"  >}}

# e.g.
{{< swagger-spec url="http://myexample.com:1313/swagger/api.yaml"  >}}

# or

{{< swagger-spec url="/swagger/api.yaml"  >}}

Aside:

=======