diff options
| author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2026-05-09 08:56:43 +0200 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-05-15 08:01:48 -0600 |
| commit | 84a9658e842b86b949f39e42f26f5400ba972ab0 (patch) | |
| tree | 8120a975a07a791d8ddcb386c0fe14fb137a5c1c /scripts/Makefile.thinlto | |
| parent | 247cb381a5a474aee3865980404e33403cb6d10a (diff) | |
docs: maintainers_include: better handle directories
The TOC tree needs to use paths relative to the document containing
the maintainers-profile-toc directive. Fix it.
While here, address a warning from sashiko-bot, which points
that using partition can be problematic if the root Linux path
ends being something like:
foo/Documentation/linux/
causing the documentation dir to be at:
foo/Documentation/linux/Documentation
Very unlikely, but fixing it is trivial: just use regex to
pick the last one.
Notice that I dropped the comment about using os.fspath() as
the logic already uses os.path.abspath() which should work
equally well.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <2b07e12eaa07bf81824ad427335783b170e01dba.1778309595.git.mchehab+huawei@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
