Improve documentation for Standalone plain HTML installation (#6605)

* Plain old HTML instructions

* Add sites for Standalone HTML installation
This commit is contained in:
Eneko Alonso
2020-11-18 19:18:39 -08:00
committed by GitHub
parent 24225e47bf
commit 5b70866f7c
2 changed files with 12 additions and 0 deletions

View File

@@ -99,3 +99,13 @@ See [unpkg's main page](https://unpkg.com/) for more information on how to use u
### Static files without HTTP or HTML
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
## Plain old HTML/CSS/JS (Standalone)
The folder `/dist` includes all the HTML, CSS and JS files needed to run SwaggerUI on a static website or CMS, without requiring NPM.
1. Download the [latest release](https://github.com/swagger-api/swagger-ui/releases/latest).
1. Copy the contents of the `/dist` folder to your server.
1. Open `index.html` in your HTML editor and replace "https://petstore.swagger.io/v2/swagger.json" with the URL for your OpenAPI 3.0 spec.