Skip to content

Commit

Permalink
Add comment explaining one of the build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Mar 18, 2019
1 parent 98f0f55 commit d9ccf27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readthedocs/doc_builder/backends/sphinx.py
Expand Up @@ -417,6 +417,10 @@ def _build_latexmk(self, cwd, latex_cwd):
# ``latex_engine`` is ``platex``
pdfs = []
if self.project.language == 'ja':
# Japanese language is the only one that requires this extra
# step. I don't know exactly why but most of the documentation that
# I read differentiate this language from the others. I suppose
# it's because it mix kanji (Chinese) with its own symbols.
pdfs = latex_path.glob('*.pdf')

for image in itertools.chain(images, pdfs):
Expand Down

0 comments on commit d9ccf27

Please sign in to comment.