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

Logo from spec (x-logo) not being rendered. #334

Closed
ksiczek opened this issue Mar 4, 2024 · 3 comments
Closed

Logo from spec (x-logo) not being rendered. #334

ksiczek opened this issue Mar 4, 2024 · 3 comments

Comments

@ksiczek
Copy link

ksiczek commented Mar 4, 2024

Hi there,

I configured a logo using the x-logo in the spec but it is getting rendered. I noticed that since the #123, if the logo is defined in the spec, the very first item is hidden

.redocusaurus-has-logo .menu-content > div:first-child {
  display: none;
}

However, the thing is that the hidden item itself is the logo. Does the code say if there is a logo, hide the logo? Or do I miss something?

@rohit-gohri
Copy link
Owner

Hi, that was intentional since docusaurus website headers usually have logos of it's own so to avoid double logos the api docs hides the logo. If it's needed I'll be happy to accept a PR that puts the feature behind an option

@ksiczek
Copy link
Author

ksiczek commented Mar 4, 2024

Does it mean the x-logo is redundant and using it is pointless? I'm docusaurus noob and I was just confused. Anyway, I'm ok with using the general logo ☺️

@rohit-gohri
Copy link
Owner

Does it mean the x-logo is redundant and using it is pointless?

x-logo is a redoc feature, which is what we use to render the api docs, if you use just that directly then it is quite useful.
But docusaurus provides site wide logo so we hide the logo in the api docs, otherwise it will be shown twice.

Anyway, I'm ok with using the general logo ☺️

Cool, I'll close this then. But feel free to open a discussion for questions or issue for bugs/features.

@rohit-gohri rohit-gohri closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants