========================
A Hugo Shortcode to embed the Swagger Spec in a page. This repo is based on swagger yaml tp html python script.
========
Copy the following into your Hugo site's directory:
shortcodes/swagger-spec.html
to your layouts/shortcodes
directoryswagger-css
dir to your static/css/
directoryswagger-js
dir to your static/js
directory=======
swagger-css/swagger-ui.css
to your site, e.g to your layout/_default/baseof.html
<link href="https://github.com/rohitkoul/hugo-swagger-shortcode/blob/master/{{ "/css/swagger-css/swagger-ui.css" | relURL }}" rel="stylesheet" type="text/css">
{{< 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" >}}
=======
samples
directory.cors anywhere