OSDN Git Service

docs: pdfdocs: Refactor config for CJK document
authorAkira Yokosawa <akiyks@gmail.com>
Mon, 9 Aug 2021 01:12:05 +0000 (10:12 +0900)
committerJonathan Corbet <corbet@lwn.net>
Thu, 12 Aug 2021 15:13:32 +0000 (09:13 -0600)
commit659653c9e5468809a83901f833cefed1b04c5922
tree41d8e7d0ddd57a8e61a013efa8850773276a45c2
parentbed4ed3057e495dc91ac4049770319f23c579b32
docs: pdfdocs: Refactor config for CJK document

To make generated LaTeX code portable across systems with different sets
of available fonts, convert font-availability check in python code to
LaTeX code by using a conditional command provided by the "fontspec"
package.

This will help those who run Sphinx on one machine/container and run
latexmk on other machines/containers.

Remove import of check_output as it is unused any more.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Link: https://lore.kernel.org/r/4baf88af-316d-8aee-240f-6ccbc20907d7@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/conf.py