Skip to content

Commit b081848

Browse files
authored
docs(installation): update unpkg usage instructions (#9489)
1 parent 4404857 commit b081848

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

docs/usage/installation.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ docker run -p 80:80 -e EMBEDDING=true swaggerapi/swagger-ui
111111

112112
For more information on controlling Swagger UI through the Docker image, see the Docker section of the [Configuration documentation](configuration.md#docker).
113113

114-
### unpkg
114+
### unpkg
115115

116116
You can embed Swagger UI's code directly in your HTML by using [unpkg's](https://unpkg.com/) interface:
117117

@@ -121,16 +121,13 @@ You can embed Swagger UI's code directly in your HTML by using [unpkg's](https:/
121121
<head>
122122
<meta charset="utf-8" />
123123
<meta name="viewport" content="width=device-width, initial-scale=1" />
124-
<meta
125-
name="description"
126-
content="SwaggerUI"
127-
/>
124+
<meta name="description" content="SwaggerUI" />
128125
<title>SwaggerUI</title>
129-
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui.css" />
126+
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" />
130127
</head>
131128
<body>
132129
<div id="swagger-ui"></div>
133-
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js" crossorigin></script>
130+
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js" crossorigin></script>
134131
<script>
135132
window.onload = () => {
136133
window.ui = SwaggerUIBundle({
@@ -151,17 +148,14 @@ Using `StandalonePreset` will render `TopBar` and `ValidatorBadge` as well.
151148
<head>
152149
<meta charset="utf-8" />
153150
<meta name="viewport" content="width=device-width, initial-scale=1" />
154-
<meta
155-
name="description"
156-
content="SwaggerUI"
157-
/>
151+
<meta name="description" content="SwaggerUI" />
158152
<title>SwaggerUI</title>
159-
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui.css" />
153+
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" />
160154
</head>
161155
<body>
162156
<div id="swagger-ui"></div>
163-
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js" crossorigin></script>
164-
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-standalone-preset.js" crossorigin></script>
157+
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js" crossorigin></script>
158+
<script src="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-standalone-preset.js" crossorigin></script>
165159
<script>
166160
window.onload = () => {
167161
window.ui = SwaggerUIBundle({
@@ -183,7 +177,7 @@ See [unpkg's main page](https://unpkg.com/) for more information on how to use u
183177

184178
### Static files without HTTP or HTML
185179

186-
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
180+
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
187181

188182
## Plain old HTML/CSS/JS (Standalone)
189183

0 commit comments

Comments
 (0)