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

Can't get my logo to show up in the header #136

Open
larryc1200 opened this issue Jul 1, 2023 · 1 comment
Open

Can't get my logo to show up in the header #136

larryc1200 opened this issue Jul 1, 2023 · 1 comment

Comments

@larryc1200
Copy link

I am trying to get my logo to show up next to the title in the header, and it doesn't seem to work. I am using

html_logo = "xyz.png"

And no matter what I do it won't appear. The sphinx-build finds the file (I tested to ensure that it would give an error if I provide the wrong file or location), but the logo will not appear. In addition, it appears to create a blank link in the code, so you get:

image

And Sphinx also gives a 404 error. The 404 error shows up whether or not I use the "html_logo" option. So I'm not sure if it is related or not.

@larryc1200
Copy link
Author

larryc1200 commented Jul 1, 2023

I was playing around a bit, and if I take the header.html file and replace the logo variable check with a logo_url check, then replace the pathto with the variable logo_url, it works. Apparently the variable logo was replaced with logo_url in one of the recent updates to Sphinx. So the new template section looks like this:

image

I noticed that there is a similar issue with sidebar.html. For that one, I just commented out the logo reference so that it looks like this:

image

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

1 participant