Skip to content

Commit

Permalink
fix: update spec and branding
Browse files Browse the repository at this point in the history
  • Loading branch information
morris-j committed Feb 28, 2025
1 parent e873c42 commit 261057b
Show file tree
Hide file tree
Showing 10 changed files with 262 additions and 2,522 deletions.
520 changes: 242 additions & 278 deletions K4P_OpenAPI_Spec.yaml

Large diffs are not rendered by default.

1,107 changes: 0 additions & 1,107 deletions K4P_OpenAPI_Spec2.yaml

This file was deleted.

1,107 changes: 0 additions & 1,107 deletions K4P_OpenAPI_Spec3.yaml

This file was deleted.

Binary file added api-docs/Kochava-White-Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api-docs/favicon-32x32.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed api-docs/favicon-icon.png
Binary file not shown.
8 changes: 4 additions & 4 deletions api-docs/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body {
.swagger-ui .topbar svg:not(:root) {
display: none;
}
/* Can enable this to get a logo at the top, need to sort out current branding. */
/*.topbar-wrapper .link:before {*/
/* content: url('kochava_horizontal.png');*/
/*}*/

.topbar-wrapper .link:before {
content: url('Kochava-White-Logo.png');
}
2 changes: 1 addition & 1 deletion api-docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Kochava Ads Measurement API Spec</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="./favicon-icon.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-32x32.gif" sizes="32x32" />
</head>

<body>
Expand Down
Binary file removed api-docs/kochava_horizontal.png
Binary file not shown.
40 changes: 15 additions & 25 deletions api-docs/swagger-initializer.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
window.onload = function() {
//<editor-fold desc="Changeable Configuration Block">

// const LogoPlugin = () => {
// return {
// components: {
// Logo: () => (
// <img alt="My Logo" height="40" src="kochava_horizontal.png"/>
// )
// }
// }
// }

// the following lines will be replaced by docker/configurator, when it runs in a docker-container
window.ui = SwaggerUIBundle({
//url: "../K4P_OpenAPI_Spec.yaml",
urls: [
{
url: "../K4P_OpenAPI_Spec.yaml",
name: "Primary"
},
{
url: "../K4P_OpenAPI_Spec2.yaml",
name: "Secondary"
},
{
url: "../K4P_OpenAPI_Spec3.yaml",
name: "Another"
},
],
url: "../K4P_OpenAPI_Spec.yaml",
// urls: [
// {
// url: "../K4P_OpenAPI_Spec.yaml",
// name: "Primary"
// },
// {
// url: "../K4P_OpenAPI_Spec2.yaml",
// name: "Secondary"
// },
// {
// url: "../K4P_OpenAPI_Spec3.yaml",
// name: "Another"
// },
// ],
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
Expand Down

0 comments on commit 261057b

Please sign in to comment.