[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87y1ew6n4x.fsf@meer.lwn.net>
Date: Fri, 17 Nov 2023 15:17:02 -0700
From: Jonathan Corbet <corbet@....net>
To: Breno Leitao <leitao@...ian.org>, netdev@...r.kernel.org,
donald.hunter@...il.com, kuba@...nel.org
Cc: leit@...a.com, linux-doc@...r.kernel.org, pabeni@...hat.com,
edumazet@...gle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] Documentation: Document each netlink family
Breno Leitao <leitao@...ian.org> writes:
> This is a simple script that parses the Netlink YAML spec files
> (Documentation/netlink/specs/), and generates RST files to be rendered
> in the Network -> Netlink Specification documentation page.
>
> Create a python script that is invoked during 'make htmldocs', reads the
> YAML specs located under Documentation/netlink/specs, parses one by one
> and generates a correspondent RST file for each YAML file.
>
> Create a new Documentation/networking/netlink_spec index page, and
> reference each Netlink RST file that was processed above in this main
> index.rst file.
>
> In case of any exception during the parsing, dump the error and skip
> the file.
>
> Suggested-by: Jakub Kicinski <kuba@...nel.org>
> Signed-off-by: Breno Leitao <leitao@...ian.org>
In principle I like this approach better. There is one problem, though:
- In current kernels, on my machine, "make htmldocs" when nothing has
changed takes about 6s to complete.
- With this patch applied, it takes a little over 5 *minutes*.
Without having delved into it too far, I am guessing that the
unconditional recreation of the netlink RST files is causing the rebuild
of much of the documentation. Even so, I don't quite get it.
That, clearly, would need to be fixed before this can go in.
Thanks,
jon
Powered by blists - more mailing lists