Re: [PATCH v2 00/10] Collect documentation-related tools under /tools/docs

From: Jani Nikula
Date: Fri Oct 24 2025 - 09:05:41 EST


On Thu, 23 Oct 2025, Jonathan Corbet <corbet@xxxxxxx> wrote:
> Our documentation-related tools are spread out over various directories;
> several are buried in the scripts/ dumping ground. That makes them harder
> to discover and harder to maintain.
>
> Recently, the idea of creating a dedicated directory for documentation tools
> came up; I decided to see what it would look like. This series creates a
> new directory, tools/docs, and moves various utilities there, hopefully
> fixing up all of the relevant references in the process.
>
> At the end, rather than move the old, Perl kernel-doc, I simply removed it.

FWIW,

Acked-by: Jani Nikula <jani.nikula@xxxxxxxxx>

> The big elephant lurking in this small room is the home for Python modules;
> I left them under scripts/lib, but that is an even less appropriate place
> than it was before. I would propose either tools/python or lib/python;
> thoughts on that matter welcome.

I think lib is for kernel code, so lib/python seems out of place.

I don't think tools/python emphasizes lib enough, and gut feeling says
it'll end up containing random python tools, which I think is the wrong
way to organize things.

tools/lib/python?

In any case, I think either tools/python or tools/lib/python is better
than, say, tools/docs/lib, because the python libraries should be geared
at being more generally useful than just for docs.


BR,
Jani.


--
Jani Nikula, Intel