Skip to content

Commit 88e0f76

Browse files
authored
Enable operation deep-linking in the admin API docs (#4013)
2 parents 906aad4 + 55325c1 commit 88e0f76

File tree

4 files changed

+52
-1619
lines changed

4 files changed

+52
-1619
lines changed

docs/api/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
<div id="swagger-ui"></div>
1111
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
1212
<script>
13-
window.onload = () => {
14-
window.ui = SwaggerUIBundle({
15-
url: './spec.json',
16-
dom_id: '#swagger-ui',
17-
presets: [
18-
SwaggerUIBundle.presets.apis,
19-
],
20-
});
21-
};
13+
window.ui = SwaggerUIBundle({
14+
url: './spec.json',
15+
dom_id: '#swagger-ui',
16+
deepLinking: true,
17+
presets: [
18+
SwaggerUIBundle.presets.apis,
19+
],
20+
});
2221
</script>
2322
</body>
2423
</html>

0 commit comments

Comments
 (0)