Redocly / swagger-repo

CLI tool to help you manage your OpenAPI(fka Swagger) repo.
MIT License
18 stars 29 forks source link

use default HTML if no web/index.html #13

Closed frodeaa closed 5 years ago

frodeaa commented 5 years ago

support running swagger-repo serve without having an web/index.html template file

frodeaa commented 5 years ago

@frodeaa great idea! 👍 Could you just, please, put the default template into a separate file and load it if the web/index.html doesn't exist?

Use this file please: https://github.com/ReDoc-ly/create-openapi-repo/blob/master/template/web/index.html.

You can remove favicon but do not remove {{redocHead}} and style tag. They are important.

Thanks!

done

RomanHotsiy commented 5 years ago

Awesome! Thanks!