From patchwork Wed Mar 11 23:01:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 66557 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49BB2A056D; Thu, 12 Mar 2020 00:01:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B7B21BFFE; Thu, 12 Mar 2020 00:01:48 +0100 (CET) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id CC896FEB for ; Thu, 12 Mar 2020 00:01:46 +0100 (CET) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 12C3E198C; Wed, 11 Mar 2020 19:01:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 11 Mar 2020 19:01:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=mpBov1sPlz GoXC4k5uBrLcFv4SvkID6a9Wx7VaDgHfo=; b=ff1AsMi4x1Wl1VjOMlviMgM8LM Dr6HiO0Kud714dEqIww2/M9EHLD9iNfoZ/iM5Yn+l4PFq/oQpeOrcxszu+xxJx5U tB94q/WVZOhEUqU5J0TTkIrzxavyRNUUkMYB+uh422eIFIxxCkVRVJ5kUFmnILMX xgVAk1ApTWQLOgpRE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=mpBov1sPlzGoXC4k5uBrLcFv4SvkID6a9Wx7VaDgHfo=; b=L2aMRwKu muSeQQXvbWSJzIgPJAKi9Fb5IOP0Ur//auHhInJHE4Rg+Lb6yB8Rdh4LJYGG9/5M c209+pNNp5KH6/J+tr5VBS/2QXBuzwkD1QvfQN/kG1DDn+YLPxwapOoPWcOMPcpX Q+XyJ+Vym7Sb8bX35njF4xOcHp7eLVXiBx6DMJ8G2ScBEhsW+Qknrj8SHcwy3aL9 g4E2STEUv2l9IaYqS/GiNHhykFfRERI+tjMpS/AE5cG1Juc3PMCXC3Ex+3GH1kga lWA/bhGQqTGck7i1DBYyo80cOQH/nMUPHumMxOhrLRy88a6NYAHgHH2ZzHSDna49 icAH0EJO9GrbuA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvgedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 B8E69328005A; Wed, 11 Mar 2020 19:01:43 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: rahul.lakkireddy@chelsio.com, qi.z.zhang@intel.com, xiao.w.wang@intel.com, xavier.huwei@huawei.com, beilei.xing@intel.com, wenzhuo.lu@intel.com, qiming.yang@intel.com, konstantin.ananyev@intel.com, ferruh.yigit@intel.com, jerinj@marvell.com, rmody@marvell.com, shshaikh@marvell.com, maxime.coquelin@redhat.com, xiaolong.ye@intel.com, John McNamara , Marko Kovacevic Date: Thu, 12 Mar 2020 00:01:34 +0100 Message-Id: <20200311230136.63452-2-thomas@monjalon.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200311230136.63452-1-thomas@monjalon.net> References: <20200311230136.63452-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 1/3] doc: fix matrix CSS for recent sphinx X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" It seems sphinx >= 2.0 is inserting a

tag in each table cell. The feature table (matrix) style needs to be updated to avoid cells being too big. The margin, padding and line height are overriden. The font size in percentage is replaced with an equivalent pixel size. The border is explicit because it disappeared for th. Signed-off-by: Thomas Monjalon --- doc/guides/conf.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/guides/conf.py b/doc/guides/conf.py index c368fa51d4..804c4aa74f 100644 --- a/doc/guides/conf.py +++ b/doc/guides/conf.py @@ -314,16 +314,22 @@ def print_table_css(outfile, table_id): cursor: default; overflow: hidden; } + table#idx p { + margin: 0; + line-height: inherit; + } table#idx th, table#idx td { text-align: center; + border: solid 1px #ddd; } table#idx th { - font-size: 72%; + padding: 0.5em 0; + } + table#idx th, table#idx th p { + font-size: 11px; white-space: pre-wrap; vertical-align: top; - padding: 0.5em 0; min-width: 0.9em; - width: 2em; } table#idx col:first-child { width: 0; @@ -332,9 +338,11 @@ def print_table_css(outfile, table_id): vertical-align: bottom; } table#idx td { - font-size: 70%; padding: 1px; } + table#idx td, table#idx td p { + font-size: 11px; + } table#idx td:first-child { padding-left: 1em; text-align: left;