Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6671570iob; Wed, 11 May 2022 02:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxapKKo2RL0VUOM/b8C2QNz5XA6aYFoHgLkoxngMOH/Lp/wQsTtzwn64VepEtod/gog7eQ0 X-Received: by 2002:a05:6a00:1687:b0:4e1:45d:3ded with SMTP id k7-20020a056a00168700b004e1045d3dedmr24517258pfc.0.1652262534125; Wed, 11 May 2022 02:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262534; cv=none; d=google.com; s=arc-20160816; b=smUlpfMlcHA20ZNWotD4oOlJuy8GVwuCHXrDeM29dZaBuIYBN68tX/vvw0zCOxakbP mNvtigs3TSF7ZKKUop8wPd9ul5GZ0iOHEQlB4RNZjeG75DISyW4yftLdmUBBxFWdL+C6 8pSluIiaW1PW/3nadbzaQnR1qrQpCiy4l/I7et1J7sz0/wFWbqsI75X0o6Gs1QDxyW+N o815pLT2i7tW1r7hzKoDLBG3xh+wDDyc3Rz0V+zxbjYgnGBl9LrezP9be6ztiUWzS2YY pzRl5M6RmX2+5KzDClve3bAs2ng0Y3rnZOrVeJZDVFuHzqh6S+VgeyY7ZBSvHmlfekSh aGCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from:dkim-signature; bh=noksS6avucQChdNExBN5UJBtftQ5wnHW8uU3NUv5UFE=; b=EGZx8ZvT5jBXsyvjwiMP42rm2+BktXUDzdIxt2EHuZXa3wSPbTtdjqvh1iWhW0sXw1 kwAsB3s+V+7aCaRoq8atHJqahIu+LyXaD0BqJpW7qEL4DpPbpE7YSmxineICAuT+xH3g cbpCseI/Lc71oXl5TsAr03QFVT/ajL+Yp2qo5WNCC/gl2Q4xL/GUhEU+2x2b7PYOXlez CNYxb4sy9bvcSaCXGXJlljgPRw2RNDc1h401AHES4mSApr09XvpfuprnyvFpqRl2SZmv yoe97oDZZtVzQAMu+OTvLPjUtCzNelDJLPtFrAZwlsUcCZnfXX5+B0s3pDRyL9BsWqq/ G4pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmp.felk.cvut.cz header.s=felkmail header.b=PE6+UwTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a63ea09000000b003c627110b5bsi2331038pgi.810.2022.05.11.02.48.40; Wed, 11 May 2022 02:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmp.felk.cvut.cz header.s=felkmail header.b=PE6+UwTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242882AbiEKHYd (ORCPT + 99 others); Wed, 11 May 2022 03:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242867AbiEKHY3 (ORCPT ); Wed, 11 May 2022 03:24:29 -0400 Received: from mailgw.felk.cvut.cz (mailgw.felk.cvut.cz [147.32.82.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FFCD1C0F25; Wed, 11 May 2022 00:24:27 -0700 (PDT) Received: from mailgw.felk.cvut.cz (localhost.localdomain [127.0.0.1]) by mailgw.felk.cvut.cz (Proxmox) with ESMTP id D7A8930322EA; Wed, 11 May 2022 09:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= cmp.felk.cvut.cz; h=cc:cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=felkmail; bh=noksS 6avucQChdNExBN5UJBtftQ5wnHW8uU3NUv5UFE=; b=PE6+UwTWyGs26TfPsDLKq a0T3t7uh5yN/A69uWtzKAAaKnjZwpSreGL3ooSQLpImH/Uq9EFSpkudO9f9JlK4Z Vw13M+68LotaYaytGCnuqQSzvAnHL7POSZfEEolfyz2VBRDobJNVqyqZMf0sObk0 RB8ij9cnj+qfE4wKYZA2hMVS6J7YiXw72OMBPoCABD3U6fkOHjHobBv98lI4VS0r FgnbwlVq0Eqmv4oFfdGqIzihd6gH81+QF22iwFdWMXbiUTy+wAKZLQR/vEoeFd8a qBUQoB8AwFxOKGHq0iJW33FiEvNUQ9yJJtxDwm+0xKi8Gh23e88N3w5ECgQQVn2r Q== Received: from cmp.felk.cvut.cz (haar.felk.cvut.cz [147.32.84.19]) by mailgw.felk.cvut.cz (Proxmox) with ESMTPS id DDF8F30322D3; Wed, 11 May 2022 09:23:54 +0200 (CEST) Received: from haar.felk.cvut.cz (localhost [127.0.0.1]) by cmp.felk.cvut.cz (8.14.0/8.12.3/SuSE Linux 0.6) with ESMTP id 24B7NsBG027064; Wed, 11 May 2022 09:23:54 +0200 Received: (from pisa@localhost) by haar.felk.cvut.cz (8.14.0/8.13.7/Submit) id 24B7Nshg027063; Wed, 11 May 2022 09:23:54 +0200 X-Authentication-Warning: haar.felk.cvut.cz: pisa set sender to pisa@cmp.felk.cvut.cz using -f From: Pavel Pisa To: Akira Yokosawa Subject: Re: [PATCH net-next] docs: ctucanfd: Use 'kernel-figure' directive instead of 'figure' Date: Wed, 11 May 2022 09:23:24 +0200 User-Agent: KMail/1.9.10 Cc: "Marc Kleine-Budde" , Martin Jerabek , Ondrej Ille , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <05d491d4-c498-9bab-7085-9c892b636d68@gmail.com> <202205101825.15126.pisa@cmp.felk.cvut.cz> <268372a9-2f6a-74f3-29ea-c51536a73dba@gmail.com> In-Reply-To: <268372a9-2f6a-74f3-29ea-c51536a73dba@gmail.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <202205110923.24202.pisa@cmp.felk.cvut.cz> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Akira, On Wednesday 11 of May 2022 01:34:58 Akira Yokosawa wrote: > On Tue, 10 May 2022 18:25:15 +0200, > > Pavel Pisa wrote: > > Hello Akira, =2E.. > > I have not noticed that there is kernel-figure > > option. We have setup own Sphinx 1.4.9 based build for driver > > documentation out of the tree compilation, I am not sure if that > > would work with this option but if not we keep this version > > modified. There are required modification for sources location anyway... > > > > https://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/doc/linux_driver/buil= d/ > >ctucanfd-driver.html > > You might want to see kernel's doc-guide at > > https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html > > , or its source > > Documentation/doc-guide/sphinx.rst I think I have read it in 2019 when I have managed to switch to kernel format documentation in out of the tree driver build https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core/-/commit/09983d11ab34977= 104d2be0b1376d4c93d9a01cb Then I have enhanced documentation text and picture from Martin Jerabek's thesis etc.. > >> The directive of "code:: raw" causes a warning from both > >> "make htmldocs" and "make pdfdocs", which reads: > >> > >> [...]/can/ctu/ctucanfd-driver.rst:75: WARNING: Pygments lexer name > >> 'raw' is not known > > > > Strange I have not seen any warning when building htmldocs > > in my actual linux kernel tree. I have cleaned docs to be warnings > > free, but it is possible that I have another tools versions. > > Well, I don't think "make htmldocs" runs with Sphinx 1.4.9. This is Sphinx version reported by out of tree documentation build. It can be hidden in one of dockers which are used by gitlabrunner for CI. When I find some time I can look for update. > You mean 1.7.9? My local net-next make htmldocs generated pages report Sphinx version 1.8.4. So this seems to be a mix, but I agree that it is important to clean docs in the state when it works for each not totally archaic setup. Thanks for the feedback, Pavel =2D-=20 Pavel Pisa phone: +420 603531357 e-mail: pisa@cmp.felk.cvut.cz Department of Control Engineering FEE CVUT Karlovo namesti 13, 121 35, Prague 2 university: http://control.fel.cvut.cz/ personal: http://cmp.felk.cvut.cz/~pisa projects: https://www.openhub.net/accounts/ppisa CAN related:http://canbus.pages.fel.cvut.cz/ Open Technologies Research Education and Exchange Services https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home =20 > Then the above mentioned warning is not shown. > I see the warning with Sphinx versions 2.4.4. and 4.5.0. > > I'll amend the changelog to mention the Sphinx versions and > post as v2. > > Thanks, Akira > > > Anyway thanks for cleanup. > > > >> A plain literal-block marker should suffice where no syntax > >> highlighting is intended. > >> > >> Fix the issues by using suitable directive and marker. > >> > >> Signed-off-by: Akira Yokosawa > >> Fixes: c3a0addefbde ("docs: ctucanfd: CTU CAN FD open-source IP core > >> documentation.") Cc: Pavel Pisa > >> Cc: Martin Jerabek > >> Cc: Ondrej Ille > >> Cc: Marc Kleine-Budde > > > > Acked-by: Pavel Pisa > > > >> --- > >> .../networking/device_drivers/can/ctu/ctucanfd-driver.rst | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git > >> a/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > >> b/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > >> index 2fde5551e756..40c92ea272af 100644 > >> --- > >> a/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst > >> +++ > >> b/Documentation/networking/device_drivers/can/ctu/ctucanfd-driver.rst = @@ > >> -72,7 +72,7 @@ it is reachable (on which bus it resides) and its > >> configuration =E2=80=93 registers address, interrupts and so on. An ex= ample of > >> such a device tree is given in . > >> > >> -.. code:: raw > >> +:: > >> > >> / { > >> /* ... */ > >> @@ -451,7 +451,7 @@ the FIFO is maintained, together with priority > >> rotation, is depicted in > >> > >> > >> > >> -.. figure:: fsm_txt_buffer_user.svg > >> +.. kernel-figure:: fsm_txt_buffer_user.svg > >> > >> TX Buffer states with possible transitions =2D-=20 Yours sincerely Pavel Pisa phone: +420 603531357 e-mail: pisa@cmp.felk.cvut.cz Department of Control Engineering FEE CVUT Karlovo namesti 13, 121 35, Prague 2 university: http://control.fel.cvut.cz/ personal: http://cmp.felk.cvut.cz/~pisa projects: https://www.openhub.net/accounts/ppisa CAN related:http://canbus.pages.fel.cvut.cz/ Open Technologies Research Education and Exchange Services https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home