Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to replace the logo? #21

Open
johnholliday opened this issue May 2, 2024 · 2 comments
Open

How to replace the logo? #21

johnholliday opened this issue May 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@johnholliday
Copy link

There does not seem to be a way to replace the logo with a custom image. Can you provide an example?

@luoyunchong
Copy link
Owner

upgrade version 0.0.8

          app.UseRapiDocUI(c =>
            {
                c.RoutePrefix = ""; // serve the UI at root
                c.SwaggerEndpoint("/v1/api-docs", "V1 Docs");
                //https://mrin9.github.io/RapiDoc/api.html
                //This Config Higher priority
                c.GenericRapiConfig = new GenericRapiConfig()
                {
                    ShowHeader = true,
                    RenderStyle = "read",
                    Theme = "light",//light | dark
                    SchemaStyle = "table",////tree | table
                };
                c.SlotsOptions = new SlotOptions()
                {
                    Logo = "https://rapidocweb.com/images/dog.png"
                }
     }

@luoyunchong luoyunchong added the enhancement New feature or request label May 3, 2024
@johnholliday
Copy link
Author

johnholliday commented May 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants