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

Fix sidebar logo not loading in HTML docs #12939

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

h4l
Copy link
Contributor

@h4l h4l commented Jun 4, 2022

Description

The mypy logo wasn't loading on https://mypy.readthedocs.io/ because
it's referenced via an http:// (not https) URL. The logo's URL is
http://mypy-lang.org/static/mypy_light.svg; that server is not
accessible via https, so I've moved mypy_light.svg into docs/source and
referenced it from there.

The project README also referenced the logo via the same URL, so for
consistency, the README now points at the same logo file in docs/source.
(Although the README's logo did load because GitHub proxies external
resources referenced in markdown files).

Test Plan

I've rebuilt the HTML docs after this change, and verified the HTML correctly references the logo file via a relative path. So it should load correctly on readthedocs, as the logo will be available via https from their server, alongside the HTML.

The mypy logo wasn't loading on https://mypy.readthedocs.io/ because
it's referenced via an http:// (not https) URL. The logo's URL is
http://mypy-lang.org/static/mypy_light.svg; that server is not
accessible via https, so I've moved mypy_light.svg into docs/source and
referenced it from there.

The project README also referenced the logo via the same URL, so for
consistency, the README now points at the same logo file in docs/source.
(Although the README's logo did load because GitHub proxies external
resources referenced in markdown files).
@h4l
Copy link
Contributor Author

h4l commented Jun 4, 2022

mypy's readthedocs page currently looks like this:

image

Edit: And after rebuilding:

image

@97littleleaf11 97littleleaf11 merged commit 9611e2d into python:master Jun 5, 2022
@97littleleaf11
Copy link
Collaborator

Thanks!

@h4l h4l deleted the fix-docs-logo-image branch June 5, 2022 07:23
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

Successfully merging this pull request may close these issues.

3 participants