Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp612735ybd; Sat, 22 Jun 2019 10:32:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI2JWykhbNBe9I3AjfFSEk4giIroVpQeU8Jn7dQE+JC5kBjNJaJvUbkTMBszGAk5Q7leV2 X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr62994928pls.134.1561224758804; Sat, 22 Jun 2019 10:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561224758; cv=none; d=google.com; s=arc-20160816; b=hIw2EpIu+Yh3Vdfk68ZWfuvGDh03N/eqCgU0la1MebIAR/k8eObVlmSYeGFxU//Bs5 kyotX5Oyto4CWLQ9zkyCaV4kpXpaXA5m4rWopn1HOeXgq9/NVTS1N0bDc+nWMOwi0YRv hXaqvCFyEaayRurnqBAuPUqqBjxXMJMAit88Gkmw04w9FJPqQFJ6XVanHsYcwh3kz3vD XJ2OFj8ogRfkWQuDL+ztHX6/5uAMxts6bh/IZf1uFwyr/S+MA6fdyyHbNEzr3GuDf6PE x6Zf2ktQORbJ2m+YhYko9fDhoRGLmJXQlJw33917ihbvvjJRUkGpBMtpflWe8K776FPG xh6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Zb/SASuRPcGdt/bTBUbecQLsS4IPsWmL3XCBWFftiQ0=; b=zQVS3Ih3YW2PuaGHpRX6GgZWUD7jxF8AeUft4q42dyflkQPOveuYp0IgraE2VrP3M2 AvKgmPFYf1/1HT6VxFMaT/CqTvcT26bfPo+PvIhO4WUwmo7iqqgfdrgGbtpE7VLZFFZp 2vCj6sg21dA64W3ojVdjxDd3XrgR0XIt85oojSfgx0UyVaUmNsFy1vuyEJOc6wNADKb6 jl5Ym+SMHxXjfAzzgfx1LfZqt2AedNVvgvChyFMYAFuPpZubA7tvdshCfpT07S8VRSNO 3VzlH5EcSPikRGvd1X3IZPh10e8vmETAs81GbRqFeQR9N320oH4+TPh3imSUdf+RPRAs Q8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Mm3JfBui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si6195240pfz.150.2019.06.22.10.32.10; Sat, 22 Jun 2019 10:32:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Mm3JfBui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbfFVRcC (ORCPT + 99 others); Sat, 22 Jun 2019 13:32:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45136 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbfFVRcA (ORCPT ); Sat, 22 Jun 2019 13:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Zb/SASuRPcGdt/bTBUbecQLsS4IPsWmL3XCBWFftiQ0=; b=Mm3JfBuikBs/yWj+iqqVmPLcc9 AMdbFdn3zaEGTe6f7Q4hfaF3Zqb5RzczrHmM+EP/AiY4TsS0MQwsegAoT+uKIxRa5omj+wu5/ygkR u99lqJDZtVAqnWmwbhnbb8ddz4aoh5v5N5HvL7qt+t+URRX1ahJ4Fi6OuwjBu+SUpIIwu6dXXKajd nujVZdJnqXaqjaHGo3x/grCcKKtfSkG0J/R2DFEf+ty0jKt/qnrVFyc3rMEjVV0E60wyEkV6L/923 mWtgYfa4FX8d2N6IcsSthrE0bkO6UD/ndjz38JeqBzGkCF4cihQ8/jXptZyle8Y2c86Dx0i1b9FZf 2zZK3L+g==; Received: from [179.95.45.115] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hejrs-00076i-CA; Sat, 22 Jun 2019 17:32:00 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hejrq-0001HN-8M; Sat, 22 Jun 2019 14:31:58 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , gregkh@linuxfoundation.org Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [RFC v2 4/8] docs: ABI: make it parse ABI/stable as ReST-compatible files Date: Sat, 22 Jun 2019 14:31:52 -0300 Message-Id: <1dab0a50592d4f0a91028438e58f7df9533cb305.1561224093.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the stable ABI files are compatible with ReST, parse them without converting complex descriptions as literal blocks nor escaping special characters. Please notice that escaping special characters will probably be needed at descriptions, at least for the asterisk character. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-stable.rst | 1 + Documentation/sphinx/kernel_abi.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/abi-stable.rst b/Documentation/admin-guide/abi-stable.rst index 7495d7a35048..70490736e0d3 100644 --- a/Documentation/admin-guide/abi-stable.rst +++ b/Documentation/admin-guide/abi-stable.rst @@ -11,3 +11,4 @@ Most interfaces (like syscalls) are expected to never change and always be available. .. kernel-abi:: $srctree/Documentation/ABI/stable + :rst: diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py index a417026ed690..a00eccfbafea 100644 --- a/Documentation/sphinx/kernel_abi.py +++ b/Documentation/sphinx/kernel_abi.py @@ -72,12 +72,13 @@ class KernelCmd(Directive): u"""KernelABI (``kernel-abi``) directive""" required_arguments = 1 - optional_arguments = 0 + optional_arguments = 2 has_content = False final_argument_whitespace = True option_spec = { - "debug" : directives.flag + "debug" : directives.flag, + "rst" : directives.unchanged } def run(self): @@ -91,6 +92,9 @@ class KernelCmd(Directive): cmd = "get_abi.pl rest --enable-lineno --dir " cmd += self.arguments[0] + if 'rst' in self.options: + cmd += " --rst-source" + srctree = path.abspath(os.environ["srctree"]) fname = cmd -- 2.21.0