feat: swagger dark skin + Try-it-out host (v2.5.2) - #31
Merged
Merged
Conversation
gin-swagger has no theme switch — inject a dark CSS stylesheet into index.html. Opt out with ?theme=light.
Restyle stock Swagger UI with a custom dark skin (Outfit + JetBrains Mono, gradient panels, method accents, soft glow). Still CSS-only — no first-class theme in gin-swagger.
Shell-prompt topbar, phosphor code panels, scan grid, session banner, and corner tag — still CSS-only on top of stock Swagger UI.
Startup defaults for the public host Swagger calls, so you don't need ?host=&scheme= on every open. Query params still win per request; otherwise env; otherwise request Host / X-Forwarded-Proto.
Show current scheme://host in the Swagger info panel, with source (query/env/request) and ?host=&scheme= tip. Bump to 2.5.2, link the API repo next to the pair toolkit, refresh README/k8s notes.
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
?theme=lightfor stock?host=&scheme=query (common),SWAGGER_HOST/SWAGGER_SCHEMEenv, else request HostTest plan
/dark UI; hard-refresh CSS?theme=lightstock look?host=…&scheme=…updates Try-it-out + description targetSWAGGER_HOST/SWAGGER_SCHEMEenv defaultsBearer devstill works