From 9611e2d0b1d9130ca1591febdd60a3523cf739eb Mon Sep 17 00:00:00 2001 From: Hal Blackburn Date: Sun, 5 Jun 2022 07:57:38 +0100 Subject: [PATCH] Fix sidebar logo not loading in HTML docs (#12939) 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). --- README.md | 2 +- docs/source/conf.py | 2 +- docs/source/mypy_light.svg | 99 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 docs/source/mypy_light.svg diff --git a/README.md b/README.md index c40a224ea0420..e9f11833d0d19 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -mypy logo +mypy logo Mypy: Static Typing for Python ======================================= diff --git a/docs/source/conf.py b/docs/source/conf.py index 5c3bf94c2f8c0..6f6b8b276d60a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -122,7 +122,7 @@ # The name of an image file (relative to this directory) to place at the top # of the sidebar. -html_logo = "http://mypy-lang.org/static/mypy_light.svg" +html_logo = "mypy_light.svg" # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 diff --git a/docs/source/mypy_light.svg b/docs/source/mypy_light.svg new file mode 100644 index 0000000000000..4eaf65dbf3445 --- /dev/null +++ b/docs/source/mypy_light.svg @@ -0,0 +1,99 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + +