{"id":18903,"url":"https://patchwork.libcamera.org/api/1.1/patches/18903/?format=json","web_url":"https://patchwork.libcamera.org/patch/18903/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230728193957.19723-1-laurent.pinchart@ideasonboard.com>","date":"2023-07-28T19:39:57","name":"[libcamera-devel] Documentation: theme: Fix compilation with Sphinx >= 7.0.0","commit_ref":"6cb92b523bd60bd7718df134cc5b1eff51cf42e5","pull_url":null,"state":"accepted","archived":false,"hash":"ed1dc9571de3da955ee1e437d1ef1bef33643311","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/18903/mbox/","series":[{"id":3995,"url":"https://patchwork.libcamera.org/api/1.1/series/3995/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3995","date":"2023-07-28T19:39:57","name":"[libcamera-devel] Documentation: theme: Fix compilation with Sphinx >= 7.0.0","version":1,"mbox":"https://patchwork.libcamera.org/series/3995/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/18903/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/18903/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 86929BDB13\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 28 Jul 2023 19:39:54 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DFC91627E7;\n\tFri, 28 Jul 2023 21:39:53 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 60D1E627E6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 28 Jul 2023 21:39:52 +0200 (CEST)","from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi\n\t[213.243.189.158])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9FC4E2B3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 28 Jul 2023 21:38:51 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1690573193;\n\tbh=JkFiyTTYynOLdBqE7vtfhE7oB3xy9yuW8qP1nK4yzSU=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=Ok+8D/Jgz8w24zy+hejViKqPTKBZIXS7GxkgtEEH7YxyuqYkvB2ax2weFypiIR3qy\n\tRAW03hs2r3i1CCiq1mV4gGO25bNnfUZyg4EU4mrYmJOLJbM8sR/Tc2a8wSaoDuYuND\n\tm+KgTKxpVqFzALdeNUBXB73yF1WbKFgi0C0pZjqC7wNuHl9a+do8Os7QX0DJwvV3WQ\n\tZiBK2z+6Etk58KAjR8KTw5wCsKUa/mA22/gy/DiHIv4wJkt5JSCSrwgX6RzmoQ4tCq\n\t1dprl247dxwWQsluSAw4slivEEAbs1C7y7H1idsEIcpAFu367C5Bipkk0Fuq4k6AnN\n\tWhgmfD3KBxNwA==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1690573131;\n\tbh=JkFiyTTYynOLdBqE7vtfhE7oB3xy9yuW8qP1nK4yzSU=;\n\th=From:To:Subject:Date:From;\n\tb=OY7NHS4oiihILyEc6fGAdi6eVq4Ef318+DOs7k4DrG6hOL+3qXQVROLkEkW3YGwd1\n\td6DubPYOYsXWy/exD9rhlUDBKBzcSb7OxVuFGkkz24GsBqRsPhYIWzZwqhjdgiCk8p\n\tMsC+ljZJ+7bEaWxOIwkzej3rtREHET7FG873bpxQ="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"OY7NHS4o\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 28 Jul 2023 22:39:57 +0300","Message-ID":"<20230728193957.19723-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.41.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] Documentation: theme: Fix compilation\n\twith Sphinx >= 7.0.0","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Sphinx 7.0.0 has dropped support for the deprecated 'style' variable\n(https://github.com/sphinx-doc/sphinx/pull/11381). This breaks\ncompilation of the documentation:\n\n  /usr/bin/sphinx-build -D release=v0.1.0+16-eed6a079 -q -W -b html Documentation Documentation/html\n\n  Theme error:\n  An error happened in rendering the page api-html/index.\n  Reason: UndefinedError(\"'style' is undefined\")\n\nThe recommended replacement is 'styles[-1]'. However, this resolves to\n'_static/css/theme.css', which is part of the 'css_styles' variable, and\nresults in the stylesheet being included twice. To avoid that and fix\nthe compilation error, simply drop the first reference.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\nI've tested this change with Sphinx 7.0.1. If anyone can test with\nearlier versions of Sphinx, that would be appreciated. Please verify in\nthe index.html that _static/css/theme.css is correctly referenced.\n---\n Documentation/theme/layout.html | 5 -----\n 1 file changed, 5 deletions(-)","diff":"diff --git a/Documentation/theme/layout.html b/Documentation/theme/layout.html\nindex fcc6d221870c..4fffefab62eb 100644\n--- a/Documentation/theme/layout.html\n+++ b/Documentation/theme/layout.html\n@@ -33,11 +33,6 @@ SPDX-License-Identifier: CC-BY-SA-4.0\n \n   {% endif %}\n \n-  {# RTD hosts this file, so just load on non RTD builds #}\n-  {% if not READTHEDOCS %}\n-    <link rel=\"stylesheet\" href=\"{{ pathto('_static/' + style, 1) }}\" type=\"text/css\" />\n-  {% endif %}\n-\n   {% for cssfile in css_files %}\n     <link rel=\"stylesheet\" href=\"{{ pathto(cssfile, 1) }}\" type=\"text/css\" />\n   {% endfor %}\n","prefixes":["libcamera-devel"]}