Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3861663pxf; Mon, 29 Mar 2021 13:42:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxsRn0P8Yd1+g9z2/fDdcH3O7ISjCgaOAZZRSsOO0rghgivHqON+7dRL5EpxsUg+5tCrsU X-Received: by 2002:a05:6402:14cc:: with SMTP id f12mr31522454edx.19.1617050560155; Mon, 29 Mar 2021 13:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617050560; cv=none; d=google.com; s=arc-20160816; b=FXqInsVx3R6fHuSmVrf2f/fXTNC56kuEh7/BdyncBJHeqBdrMJZARr/1WHuKfqc2JJ FI4mJQEzxhtFunO1nDQnIySSavB7pxIdKcES3rlGedAwn5PKBFoSut6xiR9ECfmnPPsn GgidxqcQ8GrECwv8xY7jGbdlwZ4ukEX1uf23C6fCdoLPal/rz7g06vpQ0Co+G0+13C7B B1E5rsycQjoXLs4mGkcJjAC6grqDMdnAsU0QI37gh/oE8IB6/2wuNCQXYv9Vkpn3WGmk hlBpqYptSKSFx0pZMeT/8MwN7bcttrIlUyOzlGVlIizz59+iG36UVRgLcfJ+WfmuWEzi Ruuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FaMnHKrcqRFdMgIooSwMY251zpzffov2Wa1tFMgJcQc=; b=sz1YqNNqAySr32DCBG3kRFu8yTnq89kZ+QTSclA1bO9kgV9Wxhqw2ZYueyrGbQgBGc nx2NBKl8o6aBSf1TWcitjvOoziEIcE3ajOYkiqvj5sxb7YDwC7TVdp9vzcmXSrHGuS7w FFwHY6wD9xPw5LqwIq2VaWE+DV+p0rPFVSy9rG/IIOkaLQhjfZka6Wy19XF+rt3+PIxi 87i2u4vXhT0zi9xmxpPLPD+G8C3Xk9jX7Y81+i3ye9RpMX1tYaLoOejZljOqrSvd3aHI ibWsS/gTvg+sRnl0T+C18w2fpMEfJLeGsUGjVq+rigRlX5+wXPiaLo1S7Mb4EVHfJZec iGbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NWXHP647; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi6si13811130edb.419.2021.03.29.13.42.17; Mon, 29 Mar 2021 13:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NWXHP647; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbhC2UlH (ORCPT + 99 others); Mon, 29 Mar 2021 16:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbhC2Ukg (ORCPT ); Mon, 29 Mar 2021 16:40:36 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A03FEC061574; Mon, 29 Mar 2021 13:40:35 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id a143so15104748ybg.7; Mon, 29 Mar 2021 13:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FaMnHKrcqRFdMgIooSwMY251zpzffov2Wa1tFMgJcQc=; b=NWXHP647lLp0tz5ggRDWXJq++xmMGdJxHith+p2+CT8rtTIE3Kc5v+GunTZ0NLkjpO kxBSJ0NewzcpCyz0O5WQ2HcGBjSG3dKZdUXKBfQ3LrOQ7LGKtOgkjbLvbGBbkj1KYudF WLfyVYA6bNmkhq+Ctwz8j08d4Qy8FqP8l+3fHiAk+dtu2jK2Xlx2EJMqf2aumEBOFb5s 3+tgZ7kLhoMZR9Ao3ursAVSaWWCxMstpk+F3JmrrOF1k/jwTjIlOb7UWxEPgdRzIGv0t nIk0s6SQvbon3jahll/0VZ0UbnVoM+W+ImpLuQkBMn6tA5P2cYcfJ3j8coGeKw8xz/Ai 704Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FaMnHKrcqRFdMgIooSwMY251zpzffov2Wa1tFMgJcQc=; b=OKwEcN1kx/qlfqhvwAzNFeqxmnK7cdp/Sg5NpEaPIa1nEuPQnGBkhvrGRIdXgJkooO tsNMpzu/2roEotUiZe42IYdSemIJB+opfw9sG5tsE+Jr+7FfggyUtlDxVp3MskrOvP/c TOpDq2x6lOrLscWQu0dw3tjRdzTGwE8vaiMh4x8pWUxgfi3XFHYzm8SFIiqClFJTcl9r WQETDFMmT3MR1JivPm2dOu4BJwwclQ+3wLU5xx5C6lx5xi5mKvVou7WfY8TvidumUTez OdWyjhwha7pPjyPA7PxZgXLvbnkaGzfttsNx+1S3xkcZ27EBWCoxCbtP/AmkRIqxDwoY e2Nw== X-Gm-Message-State: AOAM530hR+rnnvLt3tkXA53zkg2Sd89LbPEgsvMntBV3L4tTpH2rjO5A mUMcdgPThdWxZj4Fpl+11fwix6wWVcnDfy7p+HQ= X-Received: by 2002:a25:3b55:: with SMTP id i82mr43295469yba.422.1617050434956; Mon, 29 Mar 2021 13:40:34 -0700 (PDT) MIME-Version: 1.0 References: <20210325184615.08526aed@coco.lan> <2cf44cf1fa42588632735d4fbc8e84304bdc235f.1616696051.git.mchehab+huawei@kernel.org> <87tuozyslu.fsf@meer.lwn.net> <20210325191435.GZ1719932@casper.infradead.org> <87a6qrx7wf.fsf@meer.lwn.net> <20210325221437.GA1719932@casper.infradead.org> In-Reply-To: <20210325221437.GA1719932@casper.infradead.org> From: Miguel Ojeda Date: Mon, 29 Mar 2021 22:40:24 +0200 Message-ID: Subject: Re: [PATCH] kernel-doc: better handle '::' sequences To: Matthew Wilcox Cc: Jonathan Corbet , Mauro Carvalho Chehab , Linux Doc Mailing List , Rob Herring , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 11:18 PM Matthew Wilcox wrote: > > The rust code is alredy coming though ... > > rust/kernel/buffer.rs:/// A pre-allocated buffer that implements [`core::fmt::Write`]. > > so now we have three formats. Markdown and RST are _very_ similar, but > not identical [1]. Oh, and even better we now have three distinct tools -- > kerneldoc, rustdoc and sphinx. Have the rust people reached out to you > about integrating the various docs? Yeah, I reached out to Jonathan a few weeks ago to discuss how we will approach this, because I knew using `rustdoc` and Markdown could be contentious ;-) This is the solution we decided to go for the RFC but, of course, nothing is set in stone: 1. The "out-of-line" docs in `Documentation/rust/`: these will be in RST as usual [*]. However, please note this does not include APIs or anything like that, as it is done in the C side. Only a few "general documents" that don't fit anywhere else are kept here. 2. The "inline" docs in Rust source files: these will be parsed by `rustdoc` and written in Markdown. These will contain the majority of the Rust documentation. `rustdoc` is designed for Rust code, and internally uses the Rust compiler, which comes with a number of advantages. The generated HTML docs will be showcased in the RFC. It is my hope that this way we get feedback on them and see if people agree this approach is worth keeping. We have put an effort (and I have been annoying contributors enough to that end :-) to provide high-quality documentation from the get-go. Please note that we chose this way knowing well that inconsistency and adding "yet one more tool" needs to come with big advantages to offset. We think it is the best approach nevertheless! [*] I discussed with Jonathan using Markdown since Sphinx supports it. The main advantage would be easier refactoring of comments between the out- and inline docs. But this is very minor, thus mixing two formats inside `Documentation/` does not seem like worth it. Cheers, Miguel