File tree 1 file changed +10
-1
lines changed
readthedocs/doc_builder/backends
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -395,21 +395,30 @@ def build(self):
395
395
# https://github.com/rtfd/readthedocs.org/issues/4454
396
396
if self .project .has_feature (Feature .USE_XELATEX_BINARY ):
397
397
latex_cmd = 'xelatex'
398
+ makeindex_cmd = 'xindy'
398
399
elif self .project .has_feature (Feature .USE_LUALATEX_BINARY ):
399
400
latex_cmd = 'lualatex'
401
+ makeindex_cmd = 'xindy'
400
402
elif self .project .has_feature (Feature .USE_PLATEX_BINARY ):
401
403
latex_cmd = 'platex'
404
+ makeindex_cmd = 'xindy'
402
405
else :
403
406
latex_cmd = 'pdflatex'
407
+ makeindex_cmd = 'makeindex'
404
408
405
409
latex_cmds = [
406
410
[latex_cmd , '-interaction=nonstopmode' , tex_file ]
407
411
for tex_file in tex_files
408
412
] # yapf: disable
409
413
414
+ if makeindex_cmd == 'xindy' :
415
+ makeindex_args = ['-C' , 'utf8' , '-M' , 'texindy' ]
416
+ else :
417
+ makeindex_args = ['-s' , 'python.ist' ]
418
+
410
419
makeindex_cmds = [
411
420
[
412
- 'makeindex' , '-s' , 'python.ist' , '{}.idx' .format (
421
+ makeindex_cmd , * makeindex_args , '{}.idx' .format (
413
422
os .path .splitext (os .path .relpath (tex_file , latex_cwd ))[0 ],
414
423
),
415
424
]
You can’t perform that action at this time.
0 commit comments