From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2877A0597 for ; Thu, 9 Apr 2020 23:03:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A54D61C2BC; Thu, 9 Apr 2020 23:03:34 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id A4A4B1C24B; Thu, 9 Apr 2020 23:03:31 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 8D9A462A; Thu, 9 Apr 2020 17:03:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 09 Apr 2020 17:03:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=a4TPpONscoMc3/k/CWz2ebx TEbDiTH6c9Z7xcz2vCLk=; b=fb8eRt4QrvWzK9lEaTcLTby5Gm1ZacOrvLmNa1C aqo6ZKsiHlunt3X/C/2Jg7RniEfET377y8pA0IuXbayhGanyNgQDYDjslSdlg02T B5XdZfUZm/QpVcxceAZpZu17bHAAflmgDg6Nn7YO2qMB9aP4WI/8U/yw+W33eUyH 4hZE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=a4TPpONscoMc3/k/C Wz2ebxTEbDiTH6c9Z7xcz2vCLk=; b=UQUrKAGHSFhCHbCdpQVN2rJZoikzfF5x/ HnsGFlNITvS3Z+9U7iXJfJzu6jKKD3DBsYBxc603S/mJiShm106RrUR9FzjcAbLy Bxv1I6t8MYXhJmGx0Nlbtg5AEeUPzVaS1sHiPg9V6r7B2MvCUpVP0wM9oapd7YwE nPaK+3bvxxuR3injFcuLWJWGtXHixIdqDBkQAeHQ6t+LyceU9NE42t2wxxaWs2S/ 7CnSt8jg7N5pw2oV+WOsTbTaZDuIG1d0sbuBOu3ztrzl3N+KCKa1viI33xr9VkQ8 MbIaaIl06m6CgFPp6w426dKulhuZbmMNWkPWZgs1GnSJ/IwAqnUww== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvddtgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfo ohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkphepje ejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id BE3DD328005D; Thu, 9 Apr 2020 17:03:28 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org, John McNamara , Marko Kovacevic Date: Thu, 9 Apr 2020 23:03:22 +0200 Message-Id: <20200409210322.1099662-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] doc: fix sphinx compatibility X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" The function add_stylesheet() is deprecated since sphinx 1.8. It will be removed in sphinx 4.0. It is replaced by add_css_file(). Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- doc/guides/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/guides/conf.py b/doc/guides/conf.py index c368fa51d4..6974f0fd2f 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -415,4 +415,7 @@ def setup(app): # Process the numref references once the doctree has been created. app.connect('doctree-resolved', process_numref) - app.add_stylesheet('css/custom.css') + try: + app.add_css_file('css/custom.css') + except: + app.add_stylesheet('css/custom.css') -- 2.26.0