From 380e4b2d83d35828c97fc0d7c6c03fc31dbff2af Mon Sep 17 00:00:00 2001 From: georgeruizkit Date: Sun, 16 Aug 2026 02:08:08 -0400 Subject: [PATCH 1/2] docs: restore magenta RTD logo and fix Press nested-page path Signed-off-by: georgeruizkit --- docs/conf.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 13c20ad9d1..546b858d8b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -125,6 +125,19 @@ ] } +def _fix_press_logo_url(app, pagename, templatename, context, doctree): + # Sphinx 7 resolves logo_url with pathto(); sphinx-press-theme 0.9.1 then + # calls pathto(logo_url) again, which breaks the image on nested pages + # (alt text "logo"). Reset to a root-static path so Press's pathto is correct. + logo_url = context.get("logo_url") + if not logo_url or logo_url.startswith(("http://", "https://", "data:")): + return + name = logo_url.replace("\\", "/").rsplit("/", 1)[-1] + context["logo_url"] = "_static/" + name + +def setup(app): + app.connect("html-page-context", _fix_press_logo_url, priority=1000) + # -- Options for LaTeX output ------------------------------------------------- latex_documents = [( From b94c45deecf57c3854bb1b2683a1dd0ac283f26c Mon Sep 17 00:00:00 2001 From: georgeruizkit Date: Sun, 16 Aug 2026 02:08:10 -0400 Subject: [PATCH 2/2] docs: restore magenta RTD logo and fix Press nested-page path Signed-off-by: georgeruizkit --- docs/_static/ocio_b.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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