From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE63EA0579 for ; Thu, 1 Apr 2021 21:58:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7591140696; Thu, 1 Apr 2021 21:58:56 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8FA1740696 for ; Thu, 1 Apr 2021 21:58:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617307135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YrPjbFoxU5NnobkZeVfyTHLhl8rExkJQ/efJMyjaS2U=; b=N0eOX6T84p3JPcv8vXSIjIbp2sSlkHBrfN8kGO3qr0by0lhy1Vb+Ku5gFJciXO4rqXN2GP OpmWzl5zkOZbxTSFkLJizJsf/Q6YBlwA7dExv4LuhUSZhOVX/GgtNDoq6k6YWEnUBG2MjL ASHaPG5mBehgq7XpYsDBYFb7E/p4wYE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-160-5JOIi-gTNES_bZE-Y8z8Vg-1; Thu, 01 Apr 2021 15:58:52 -0400 X-MC-Unique: 5JOIi-gTNES_bZE-Y8z8Vg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 29DFE1005E42; Thu, 1 Apr 2021 19:58:51 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB0FB19C46; Thu, 1 Apr 2021 19:58:48 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, aconole@redhat.com, stable@dpdk.org, John McNamara Date: Thu, 1 Apr 2021 21:58:42 +0200 Message-Id: <20210401195842.13044-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-stable] [PATCH] doc: fix sphinx rtd theme import in GHA X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" If the rtd theme is available, passing it by name is enough to select it. Sphinx itself recognises the "sphinx_rtd_theme" name as a special case and tries to find its path automatically. On the other hand, passing a html_theme_path makes sphinx parse all themes availables in this path, which in some environment (like GHA) is /usr/share and makes sphinx error on the first zipfile it finds (in GHA, some Azure CLI thingy) that has no sphinx theme in it. Fixes: 46562be65094 ("doc: import sphinx rtd theme when available") Cc: stable@dpdk.org Signed-off-by: David Marchand --- doc/guides/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/guides/conf.py b/doc/guides/conf.py index aceeb62a4f..ec59aeae7e 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -20,7 +20,6 @@ import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] except: print('Install the sphinx ReadTheDocs theme for improved html documentation ' 'layout: https://sphinx-rtd-theme.readthedocs.io/', -- 2.23.0