OSDN Git Service

scripts: documentation-file-ref-check: improve :doc: handling
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 22 Feb 2020 09:00:01 +0000 (10:00 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 25 Feb 2020 10:01:05 +0000 (03:01 -0700)
commit290d5388993eb40b9d5632aefb864cf1012a2bcc
treea722324effb16cf0e9d7419f0effb5e68c03a12f
parent43e96ef8b70c50f6054f20b8c357ee5881592082
scripts: documentation-file-ref-check: improve :doc: handling

There are some issues at the script with regards to :doc:
tags:

- It doesn't escape files under Documentation/sphinx,
  leading to false positives;
- It doesn't handle root URLs, like :doc:`/x86/boot`;
- It doesn't output the file with a bad reference.

Address those things, in order to remove false positives
from the list of problems.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/documentation-file-ref-check