diff --git a/docs/favicon.png b/docs/favicon.png index b5c1a2d..d2253fd 100644 Binary files a/docs/favicon.png and b/docs/favicon.png differ diff --git a/docs/index.html b/docs/index.html index 629fd22..e6d6d14 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,10 +16,45 @@ margin: 0; padding: 0; } + /* GBA Logo injected into Redocly sidebar */ + #gba-logo-container { + position: fixed; + top: 20px; + left: 20px; + z-index: 10000; + background: white; + padding: 10px; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + max-width: 200px; + } + #gba-logo-container img { + width: 100%; + height: auto; + display: block; + } + /* Adjust menu to avoid logo overlap */ + div[role="navigation"] { + padding-top: 80px !important; + } + @media screen and (max-width: 50rem) { + #gba-logo-container { + position: static; + margin: 10px; + max-width: 150px; + } + div[role="navigation"] { + padding-top: 20px !important; + } + } {{{redocHead}}} + +
+ Green Button Alliance +
{{{redocHTML}}} diff --git a/docs/logo.png b/docs/logo.png new file mode 100644 index 0000000..521e63c Binary files /dev/null and b/docs/logo.png differ diff --git a/scripts/build-swagger.js b/scripts/build-swagger.js index ab16305..f9bc440 100755 --- a/scripts/build-swagger.js +++ b/scripts/build-swagger.js @@ -27,6 +27,18 @@ fs.copyFileSync( path.join(swaggerDir, 'openapi.json') ); +// Copy GBA logo to swagger directory +const docsDir = path.join(__dirname, '..', 'docs'); +const logoPath = path.join(docsDir, 'logo.png'); +if (fs.existsSync(logoPath)) { + fs.copyFileSync(logoPath, path.join(swaggerDir, 'logo.png')); +} + +// Copy logo to root dist for easier reference +if (fs.existsSync(logoPath)) { + fs.copyFileSync(logoPath, path.join(__dirname, '..', 'dist', 'logo.png')); +} + // Create custom Swagger UI HTML with Green Button branding const html = ` @@ -34,7 +46,7 @@ const html = ` Green Button ESPI API - Swagger UI - +