From 6492d8f3a8ea90e52578cdb8f050cf375c25fee9 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sun, 7 Feb 2021 12:27:45 -0700 Subject: [PATCH] [Doc] Try to use imgconverter rather than cairo --- docs/requirements.txt | 2 +- docs/source/conf.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index f3c4a9c9e..807e56865 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -12,7 +12,7 @@ sphinxcontrib-bibtex<2.0.0 sphinxcontrib-yt # Package required to convert svg for pdf builder -sphinxcontrib-svg2pdfconverter[CairoSVG] +#sphinxcontrib-svg2pdfconverter[CairoSVG] #sphinx-ext-imgconverter #Work-around bug "AttributeError: 'Values' object has no attribute 'character_level_inline_markup'" with docutils 0.13.1 diff --git a/docs/source/conf.py b/docs/source/conf.py index 257dcd399..6691f1626 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -38,14 +38,14 @@ except ImportError: have_sphinxcontrib_youtube = False # Import sphinxcontrib.svg2pdfconverter -have_sphinxcontrib_svg2pdfconverter = True -#have_sphinx_ext_imgconverter = True +#have_sphinxcontrib_svg2pdfconverter = True +have_sphinx_ext_imgconverter = True try: - import sphinxcontrib.svg2pdfconverter -# import sphinx.ext.imgconverter +# import sphinxcontrib.svg2pdfconverter + import sphinx.ext.imgconverter except ImportError: - have_sphinxcontrib_svg2pdfconverter = False -# have_sphinx_ext_imgconverter = False +# have_sphinxcontrib_svg2pdfconverter = False + have_sphinx_ext_imgconverter = False # -- Project information ----------------------------------------------------- @@ -75,8 +75,8 @@ extensions = [ 'sphinxcontrib.bibtex', 'sphinx.ext.autosectionlabel', 'sphinxcontrib.yt', - 'sphinxcontrib.cairosvgconverter', -# 'sphinx.ext.imgconverter', +# 'sphinxcontrib.cairosvgconverter', + 'sphinx.ext.imgconverter', ] # Add any paths that contain templates here, relative to this directory.