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 C569CA0579; Thu, 1 Apr 2021 21:58:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 97448140FBE; Thu, 1 Apr 2021 21:58:58 +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 39A85140FBD for ; Thu, 1 Apr 2021 21:58:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617307136; 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=IVZLP9Ttqac9+WFf6Pzi50Ah88trrmRrYskiZM6K8SOCBEbV1O7MuYPrrFOtQ0i2B1WfZ7 hsl8MDOlufWLcWDELtx3hVLKUGvjgGVOz+9+OqHO7LhOT5ccwXv2kDyLoB6AHETtN6ppO/ eRVrM5TEdBq7w1bdCElCEz372XOUfS4= 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-dev] [PATCH] doc: fix sphinx rtd theme import in GHA X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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