-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: refactor: Refine the EdgeX MessageBus docs (#1224)
Signed-off-by: edgex-jenkins <collab-it+edgex@linuxfoundation.org>
- Loading branch information
1 parent
8e5c34a
commit d90eabf
Showing
30 changed files
with
1,578 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
3.1/api/applications/Ch-APIAppFunctionsSDK/swagger-d42c7740.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Swagger UI</title> | ||
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" /> | ||
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" /> | ||
|
||
</head> | ||
|
||
<body style="overflow:hidden;background: ;"> | ||
<div id="swagger-ui"></div> | ||
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script> | ||
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script> | ||
<script> | ||
window.onload = function () { | ||
window.ui = SwaggerUIBundle({ | ||
dom_id: "#swagger-ui", | ||
onComplete: onComplete, | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIStandalonePreset | ||
], | ||
|
||
url: "https://raw.githubusercontent.com/edgexfoundry/app-functions-sdk-go/main/openapi/v3/app-functions-sdk.yaml", | ||
|
||
|
||
"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href, | ||
|
||
"validatorUrl": "none", | ||
|
||
"docExpansion": "list", | ||
"filter": false, | ||
"tryItOutEnabled": false, | ||
"supportedSubmitMethods": [ | ||
"get", | ||
"put", | ||
"post", | ||
"delete", | ||
"options", | ||
"head", | ||
"patch", | ||
"trace" | ||
], | ||
"validatorUrl": "none", | ||
"extra_css": [], | ||
"dark_scheme_name": "slate", | ||
"syntaxHighlight.theme": "agate" | ||
|
||
}) | ||
|
||
|
||
|
||
const scheme = parent.scheme | ||
if (scheme === "slate") { | ||
enable_dark_mode(); | ||
} | ||
} | ||
|
||
enable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "" | ||
} | ||
|
||
disable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "none" | ||
} | ||
|
||
const resize_ob = new ResizeObserver(function(entries) { | ||
parent.update_swagger_ui_iframe_height("d42c7740"); | ||
}); | ||
|
||
// start observing for resizing | ||
resize_ob.observe(document.querySelector("body")); | ||
|
||
// authorize modal position | ||
var modal_top = 0; | ||
|
||
const mutation_ob = new MutationObserver(function (mutations) { | ||
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){ | ||
update_modal_top() | ||
} | ||
}); | ||
|
||
onComplete = function(){ | ||
// start observing for auth-wrapper after Swagger UI loaded | ||
const div = document.querySelector("div.auth-wrapper"); | ||
if(div){ | ||
mutation_ob.observe(div, { | ||
childList: true, | ||
}); | ||
} | ||
} | ||
|
||
update_top_val = function(top){ | ||
modal_top = top | ||
update_modal_top() | ||
} | ||
|
||
update_modal_top = function(){ | ||
let modal_list = document.getElementsByClassName('modal-ux') | ||
if(modal_list.length > 0){ | ||
let modal = modal_list.item(0) | ||
const modal_height = modal.offsetHeight | ||
const padding = 60 | ||
min = parseInt(modal_height/2 + padding) | ||
max = document.body.scrollHeight - min + padding | ||
if (modal_top < min) { | ||
modal.style.top = `${min}px` | ||
} else if (modal_top > max) { | ||
modal.style.top = `${max}px` | ||
} else { | ||
modal.style.top = `${modal_top}px` | ||
} | ||
} | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Swagger UI</title> | ||
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" /> | ||
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" /> | ||
|
||
</head> | ||
|
||
<body style="overflow:hidden;background: ;"> | ||
<div id="swagger-ui"></div> | ||
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script> | ||
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script> | ||
<script> | ||
window.onload = function () { | ||
window.ui = SwaggerUIBundle({ | ||
dom_id: "#swagger-ui", | ||
onComplete: onComplete, | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIStandalonePreset | ||
], | ||
|
||
url: "https://raw.githubusercontent.com/edgexfoundry/edgex-go/main/openapi/v3/core-command.yaml", | ||
|
||
|
||
"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href, | ||
|
||
"validatorUrl": "none", | ||
|
||
"docExpansion": "list", | ||
"filter": false, | ||
"tryItOutEnabled": false, | ||
"supportedSubmitMethods": [ | ||
"get", | ||
"put", | ||
"post", | ||
"delete", | ||
"options", | ||
"head", | ||
"patch", | ||
"trace" | ||
], | ||
"validatorUrl": "none", | ||
"extra_css": [], | ||
"dark_scheme_name": "slate", | ||
"syntaxHighlight.theme": "agate" | ||
|
||
}) | ||
|
||
|
||
|
||
const scheme = parent.scheme | ||
if (scheme === "slate") { | ||
enable_dark_mode(); | ||
} | ||
} | ||
|
||
enable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "" | ||
} | ||
|
||
disable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "none" | ||
} | ||
|
||
const resize_ob = new ResizeObserver(function(entries) { | ||
parent.update_swagger_ui_iframe_height("a43219d5"); | ||
}); | ||
|
||
// start observing for resizing | ||
resize_ob.observe(document.querySelector("body")); | ||
|
||
// authorize modal position | ||
var modal_top = 0; | ||
|
||
const mutation_ob = new MutationObserver(function (mutations) { | ||
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){ | ||
update_modal_top() | ||
} | ||
}); | ||
|
||
onComplete = function(){ | ||
// start observing for auth-wrapper after Swagger UI loaded | ||
const div = document.querySelector("div.auth-wrapper"); | ||
if(div){ | ||
mutation_ob.observe(div, { | ||
childList: true, | ||
}); | ||
} | ||
} | ||
|
||
update_top_val = function(top){ | ||
modal_top = top | ||
update_modal_top() | ||
} | ||
|
||
update_modal_top = function(){ | ||
let modal_list = document.getElementsByClassName('modal-ux') | ||
if(modal_list.length > 0){ | ||
let modal = modal_list.item(0) | ||
const modal_height = modal.offsetHeight | ||
const padding = 60 | ||
min = parseInt(modal_height/2 + padding) | ||
max = document.body.scrollHeight - min + padding | ||
if (modal_top < min) { | ||
modal.style.top = `${min}px` | ||
} else if (modal_top > max) { | ||
modal.style.top = `${max}px` | ||
} else { | ||
modal.style.top = `${modal_top}px` | ||
} | ||
} | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Swagger UI</title> | ||
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" /> | ||
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" /> | ||
|
||
</head> | ||
|
||
<body style="overflow:hidden;background: ;"> | ||
<div id="swagger-ui"></div> | ||
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script> | ||
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script> | ||
<script> | ||
window.onload = function () { | ||
window.ui = SwaggerUIBundle({ | ||
dom_id: "#swagger-ui", | ||
onComplete: onComplete, | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIStandalonePreset | ||
], | ||
|
||
url: "https://raw.githubusercontent.com/edgexfoundry/edgex-go/main/openapi/v3/core-data.yaml", | ||
|
||
|
||
"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href, | ||
|
||
"validatorUrl": "none", | ||
|
||
"docExpansion": "list", | ||
"filter": false, | ||
"tryItOutEnabled": false, | ||
"supportedSubmitMethods": [ | ||
"get", | ||
"put", | ||
"post", | ||
"delete", | ||
"options", | ||
"head", | ||
"patch", | ||
"trace" | ||
], | ||
"validatorUrl": "none", | ||
"extra_css": [], | ||
"dark_scheme_name": "slate", | ||
"syntaxHighlight.theme": "agate" | ||
|
||
}) | ||
|
||
|
||
|
||
const scheme = parent.scheme | ||
if (scheme === "slate") { | ||
enable_dark_mode(); | ||
} | ||
} | ||
|
||
enable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "" | ||
} | ||
|
||
disable_dark_mode = function(){ | ||
document.getElementById("slate-css").media = "none" | ||
} | ||
|
||
const resize_ob = new ResizeObserver(function(entries) { | ||
parent.update_swagger_ui_iframe_height("a8b24ee4"); | ||
}); | ||
|
||
// start observing for resizing | ||
resize_ob.observe(document.querySelector("body")); | ||
|
||
// authorize modal position | ||
var modal_top = 0; | ||
|
||
const mutation_ob = new MutationObserver(function (mutations) { | ||
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){ | ||
update_modal_top() | ||
} | ||
}); | ||
|
||
onComplete = function(){ | ||
// start observing for auth-wrapper after Swagger UI loaded | ||
const div = document.querySelector("div.auth-wrapper"); | ||
if(div){ | ||
mutation_ob.observe(div, { | ||
childList: true, | ||
}); | ||
} | ||
} | ||
|
||
update_top_val = function(top){ | ||
modal_top = top | ||
update_modal_top() | ||
} | ||
|
||
update_modal_top = function(){ | ||
let modal_list = document.getElementsByClassName('modal-ux') | ||
if(modal_list.length > 0){ | ||
let modal = modal_list.item(0) | ||
const modal_height = modal.offsetHeight | ||
const padding = 60 | ||
min = parseInt(modal_height/2 + padding) | ||
max = document.body.scrollHeight - min + padding | ||
if (modal_top < min) { | ||
modal.style.top = `${min}px` | ||
} else if (modal_top > max) { | ||
modal.style.top = `${max}px` | ||
} else { | ||
modal.style.top = `${modal_top}px` | ||
} | ||
} | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.