docs: load_config.py: ensure subdirs end with "/"
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 18 Jul 2019 19:13:48 +0000 (16:13 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 19 Jul 2019 11:49:27 +0000 (08:49 -0300)
commitd6f0f2f19a9e41bd0bcd5757f68500ed29352509
treeb4f2ec34273e2892cc000901069c5eb3811261cc
parent518b7d55f80eb548595c7940b6975ba350e5255d
docs: load_config.py: ensure subdirs end with "/"

The logic with seeks for a subdir passed via SPHINXDIRS is
incomplete: if one uses something like:

make SPHINXDIRS=arm pdfdocs

It will find both "arm" and "arm64" directories. Worse than
that, it will convert "arm64/index" to "4/index".

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/sphinx/load_config.py