From 5184bfcc4a9fc6e2616e93f4974f18c8ecef37f2 Mon Sep 17 00:00:00 2001 From: Danb106632 Date: Mon, 20 Jul 2026 20:49:43 +0100 Subject: [PATCH] Fix RTD logo - added on subpages and change logo to magenta Closes AcademySoftwareFoundation#2036 - fixed double ../ on subpages due to pathto() computing another relative path on top of page-relative image path Signed-off-by: Danb106632 - Changed logo fill colour to #cc1e68 so it is visible both light and dark mode Signed-off-by: Danb106632 --- docs/_static/ocio_b.svg | 2 +- docs/_templates/util/navbar.html | 18 ++++++++++++++++++ docs/conf.py | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 docs/_templates/util/navbar.html diff --git a/docs/_static/ocio_b.svg b/docs/_static/ocio_b.svg index 7989b24321..3afb8c113c 100644 --- a/docs/_static/ocio_b.svg +++ b/docs/_static/ocio_b.svg @@ -1 +1 @@ -ocio_b \ No newline at end of file +ocio_b \ No newline at end of file diff --git a/docs/_templates/util/navbar.html b/docs/_templates/util/navbar.html new file mode 100644 index 0000000000..51539b34e6 --- /dev/null +++ b/docs/_templates/util/navbar.html @@ -0,0 +1,18 @@ + + + {% if logo_url %} + + {% elif logo %} + + {% else %} + {{ project|e }} + {% endif %} + + + + \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 13c20ad9d1..684379265e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -118,6 +118,7 @@ html_theme = "press" html_logo = "_static/ocio_b.svg" html_static_path = ["_static"] +templates_path = ["_templates"] html_theme_options = { "external_links": [