[Doc] Try use image converter instead of svg2pdf which requires more dependencies

This commit is contained in:
tangxifan 2021-02-07 11:40:18 -07:00
parent 05fea49b87
commit 6b6f4bc763
2 changed files with 8 additions and 4 deletions

View File

@ -12,7 +12,8 @@ sphinxcontrib-bibtex<2.0.0
sphinxcontrib-yt
# Package required to convert svg for pdf builder
sphinxcontrib-svg2pdfconverter
#sphinxcontrib-svg2pdfconverter
sphinxcontrib-ext-imgconverter
#Work-around bug "AttributeError: 'Values' object has no attribute 'character_level_inline_markup'" with docutils 0.13.1
#See:

View File

@ -38,11 +38,14 @@ except ImportError:
have_sphinxcontrib_youtube = False
# Import sphinxcontrib.svg2pdfconverter
have_sphinxcontrib_svg2pdfconverter = True
#have_sphinxcontrib_svg2pdfconverter = True
have_sphinxcontrib_ext_imgconverter = True
try:
import sphinxcontrib.svg2pdfconverter
# import sphinxcontrib.svg2pdfconverter
import sphinxcontrib.ext.imgconverter
except ImportError:
have_sphinxcontrib_svg2pdfconverter = False
# have_sphinxcontrib_svg2pdfconverter = False
have_sphinxcontrib_ext_imgconverter = False
# -- Project information -----------------------------------------------------