My idea is we adding new configuration field something to be something like this:
type Config struct {
// The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`.
URL string
DocExpansion string
InstanceName string
Title string
DefaultModelsExpandDepth int
DeepLinking bool
PersistAuthorization bool
Oauth2DefaultClientID string
IsDarkMode bool
}
Then we can tweak the logic for css file creation to be something like this:
Reference --> https://github.com/Amoenus/SwaggerDark/
My idea is we adding new configuration field something to be something like this:
Then we can tweak the logic for css file creation to be something like this:
Add new function for modify the Dark Mode:
Finally, we can call it like this:
Wdyt?