Add script documentation to development docs

This commit is contained in:
Kyle Shockey
2017-12-05 20:31:36 -08:00
parent fc3e0b224a
commit c23b884d9a
4 changed files with 34 additions and 27 deletions

View File

@@ -70,16 +70,6 @@
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
const MyComponentPlugin = function(system) {
return {
components: {
// components can just be functions
// HelloWorld: () => "Hello World"
}
}
}
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
@@ -92,8 +82,7 @@
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl,
MyComponentPlugin
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})