diff --git a/tasks.py b/tasks.py index 6a2105b5a..45c67d649 100644 --- a/tasks.py +++ b/tasks.py @@ -391,6 +391,13 @@ def build(ctx: Context): readme_content = readme_file.read() with open("README.rst", "w") as readme_file: + # Adding the *Colour* logo as the first content line because the *raw* + # directive to support light and dark theme is later trimmed. + readme_content = ( + ".. image:: https://raw.githubusercontent.com/colour-science/" + "colour-branding/master/images/Colour_Logo_001.png\n" + + readme_content + ) readme_file.write( re.sub( (