Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2188557yba; Fri, 19 Apr 2019 14:05:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmB4noTqAxY36aqeoVM9HPYSVV2P2ruz506loGfSSVgcMcLIbFtRvKGnJ76XbSvr1Vt/8o X-Received: by 2002:a17:902:7084:: with SMTP id z4mr6084441plk.305.1555707945979; Fri, 19 Apr 2019 14:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555707945; cv=none; d=google.com; s=arc-20160816; b=sK3LX/e9tpkISItPfWR9Kos7PtZsqdaGNLY0zXNVpeq1hTqhDQ6D7YYoUmUdnaK674 CDmKOgl2WwET+/nNiJYPvys6nOYfzYNtFDJoUZajCOwAzU29rQPce+ywTcAXvJTqlXLf a0E6iyfDvKkTQRu17u5SHKBoMOdj4y6y6woJ7135ghaTt/hQqrD6jAWiG+pswCWhKFjg NU1nmU+8NWOhakpYKQVLuQKwaGde/BDtWUi6jF6bkBNolVJVervPLjPXG7loIQHF6Jr6 TiBBjGaJnJDhJRtohVqrrPMiGWfH3OftFEgvDGpps5zI1iRgmgvyqDC5Bmw16PZbpOQI TnBQ== 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:subject:cc:to:from:date :dkim-signature; bh=dDrxAUUvc5Q4f0yIwKXkRg7UB952CWQTSWzHKE2sH8g=; b=xqgV3gFr3ZwLopWnSdZN3PT2mNymTi6aYgcwmCJfUdRB6aB0E7aKzhS0loI4qLHIR+ vaU/qJlj3caHrwXjaneAePcy2w8FJOp6OOcgwApX2P5BKwPzQDxQaiUWSXOFqUBb7Uli vuNSCsVR9WwVOP6gmw+4Mw51LnJppo8ofFRnCgYz4H1m3n3057ybo3F9/VrAR7s0oKot f942k5ZnWRQsz36RI575lW0KfhPKWdmQG7qdi6aSHDVg4kT2iIlQdo7xP5ogd4/AGRXV F4FD7SQSPbyHcrXGOJQpfc8svoiNcoDnG8SXc5fcvVKtcrE75iHRTUGanju4XOkcXX2/ ZeTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=casper.20170209 header.b="u9E/KHxx"; 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 v186si5606775pgd.466.2019.04.19.14.05.21; Fri, 19 Apr 2019 14:05:45 -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=neutral (body hash did not verify) header.i=@infradead.org header.s=casper.20170209 header.b="u9E/KHxx"; 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 S1727367AbfDSVD6 (ORCPT + 99 others); Fri, 19 Apr 2019 17:03:58 -0400 Received: from casper.infradead.org ([85.118.1.10]:39858 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfDSVD6 (ORCPT ); Fri, 19 Apr 2019 17:03:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To: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=AQ19LFwVTjtH/+6i4GAAIQgmeJLnXakChake00M6d3E=; b=u9E/KHxxrDNXuAgARNyTWdqYQZ PvqYcYCK489DM67JjEGQq0JY/mEmWSD1fv0JgaMubtBFzKXz+vvaMy5OgIIWPyJUx+5Jj6JS8SJoh su0DC3164wWvPusfOk84evgU0MnZlR4liClnCOKPvJQ2A5Y2gChGGzd97GGUwfg8S4q0jgsC0LxJt jhKTXnLuRU1y7SvTs/VLS1U89q9nB6h2wBYMpmCTQEeFGVotwuL/u64cZxQOeQ8PryZ7eH9l7cCSv A0vhL71Iuh3hK92iwfE70fBHnMsVUUz+l1kHCXsT+3qzO9MppFPAqewVGd6JbaZ/dTfd+eAfAzfF0 CyqO/vLw==; Received: from 177.18.24.91.dynamic.adsl.gvt.net.br ([177.18.24.91] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHQk9-0004qq-Lt; Fri, 19 Apr 2019 10:27:42 +0000 Date: Fri, 19 Apr 2019 07:27:35 -0300 From: Mauro Carvalho Chehab To: Jani Nikula Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH] docs: hwmon: convert three docs to ReST format Message-ID: <20190419072735.46f26b87@coco.lan> In-Reply-To: <877ebqgv79.fsf@intel.com> References: <287cf72fc213656c1593f8bd42feb62f7a5f26e7.1555580417.git.mchehab+samsung@kernel.org> <87k1frgysq.fsf@intel.com> <20190418151028.341723f7@coco.lan> <877ebqgv79.fsf@intel.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 19 Apr 2019 13:12:26 +0300 Jani Nikula escreveu: > On Thu, 18 Apr 2019, Mauro Carvalho Chehab wrote: > > Em Thu, 18 Apr 2019 17:42:29 +0300 > > Jani Nikula escreveu: > > > >> On Thu, 18 Apr 2019, Mauro Carvalho Chehab wrote: > >> > Those three new drivers were missed on the initial conversion > >> > to ReST format. So: > >> > > >> > - Rename them to .rst; > >> > - Add them to the hwmon index.rst index; > >> > - add some blank lines at the "Supported systems:" part, in > >> > order to allow Sphinx to properly identify new lines, > >> > suppressing warnings and avoid it to output some random > >> > lines in bold; > >> > - When multiple authors are involved, change the authors > >> > part to a list, in order to avoid adding blank lines. > >> > - adjust the table cells (one of the tables seemed to be > >> > assuming that tab is 4 positions instead of 8) and add > >> > the table markup. > >> > - be sure that the section markups have the same number of > >> > characters as the section title. > >> > > >> > Signed-off-by: Mauro Carvalho Chehab > >> > --- > >> > Documentation/hwmon/index.rst | 3 +++ > >> > Documentation/hwmon/{ir38064 => ir38064.rst} | 21 ++++++++++++------- > >> > .../hwmon/{isl68137 => isl68137.rst} | 16 ++++++++++---- > >> > .../hwmon/{lochnagar => lochnagar.rst} | 7 +++++-- > >> > 4 files changed, 33 insertions(+), 14 deletions(-) > >> > rename Documentation/hwmon/{ir38064 => ir38064.rst} (76%) > >> > rename Documentation/hwmon/{isl68137 => isl68137.rst} (85%) > >> > rename Documentation/hwmon/{lochnagar => lochnagar.rst} (93%) > >> > > >> > diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst > >> > index 893804414510..3fa14fe7b49c 100644 > >> > --- a/Documentation/hwmon/index.rst > >> > +++ b/Documentation/hwmon/index.rst > >> > @@ -65,6 +65,8 @@ Hardware Monitoring Kernel Drivers > >> > ina2xx.rst > >> > ina3221.rst > >> > ir35221.rst > >> > + ir38064.rst > >> > + isl68137.rst > >> > >> Didn't notice it on the first patch adding index.rst, but I don't think > >> it's customary to add .rst suffix to the toctree. > > > > Provided that all documents are at the same time, I guess it > > doesn't matter having a .rst there or not. > > Parse error. No other index.rst has the suffixes. Actually, there are a few that has, including the doc-guide $ git grep \\.rst $(find Documentation/ -name index.rst)|cut -d: -f1|sort|uniq Documentation/admin-guide/mm/index.rst Documentation/doc-guide/index.rst Documentation/filesystems/ext4/index.rst Documentation/filesystems/index.rst Documentation/hwmon/index.rst Documentation/translations/it_IT/doc-guide/index.rst Documentation/translations/it_IT/kernel-hacking/index.rst Documentation/translations/it_IT/process/index.rst Documentation/translations/zh_CN/process/index.rst (I'm looking at linux-next). Clearly, the Documentation/doc-guide/index.rst has it: ================================= How to write kernel documentation ================================= .. toctree:: :maxdepth: 1 sphinx.rst kernel-doc.rst parse-headers.rst Anyway I'll send a patch removing the extra .rst from hwmon, to be applied after this one, and another one for the doc-guide. > > > Btw, newer versions of Sphinx build can work with other formats > > like markdown. I suspect that, if we end mixing markdown documents, > > it would be worth having the extension there. > > > > FYI, someone recently added a markdown file at the tree: > > > > commit e453fa60e086786fe89ba15ee8fef80bc2e6ecc3 > > Author: Sascha Hauer > > Date: Fri Sep 7 14:36:46 2018 +0200 > > > > Documentation: ubifs: Add authentication whitepaper > > > > Documentation/filesystems/ubifs-authentication.md > > > > IMO, the best would be to just run pandoc into it and convert > > to .rst, than to mix different markup languages. > > Agreed. I'd rather we keep it all rst. > > BR, > Jani. > > Thanks, Mauro