docs: pdf: add all Documentation/*/index.rst to PDF output
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 9 Jul 2019 09:52:36 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 17 Jul 2019 09:57:51 +0000 (06:57 -0300)
commit9d42afbe6bd4ce6d424159715e4abf3ea3ddb789
tree15e19797a384b293645562b9ddb009c2ed6cee41
parentbff9e34c678552eb172916d9288913e8bd8cc9d1
docs: pdf: add all Documentation/*/index.rst to PDF output

Currently, all index files should be manually added to the
latex_documents array at conf.py.

While this allows fine-tuning some LaTeX specific things, like
the name of the output file and the name of the document, it
is not uncommon to forget adding new documents there.

So, add a logic that will seek for all Documentation/*/index.rst.
If the index is not yet at latex_documents, it includes using
a reasonable default.

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