[Doc] Try to fix the bug when importing python packages

This commit is contained in:
tangxifan 2021-02-07 12:00:48 -07:00
parent d96ffdc00c
commit 8f43ab6ca4
2 changed files with 8 additions and 8 deletions

View File

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

View File

@ -41,11 +41,11 @@ except ImportError:
#have_sphinxcontrib_svg2pdfconverter = True #have_sphinxcontrib_svg2pdfconverter = True
have_sphinx_ext_imgconverter = True have_sphinx_ext_imgconverter = True
try: try:
# import sphinxcontrib.svg2pdfconverter import sphinxcontrib.svg2pdfconverter
import sphinx.ext.imgconverter # import sphinx.ext.imgconverter
except ImportError: except ImportError:
# have_sphinxcontrib_svg2pdfconverter = False have_sphinxcontrib_svg2pdfconverter = False
have_sphinx_ext_imgconverter = False # have_sphinx_ext_imgconverter = False
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
@ -75,8 +75,8 @@ extensions = [
'sphinxcontrib.bibtex', 'sphinxcontrib.bibtex',
'sphinx.ext.autosectionlabel', 'sphinx.ext.autosectionlabel',
'sphinxcontrib.yt', 'sphinxcontrib.yt',
# 'sphinxcontrib.svg2pdfconverter', 'sphinxcontrib.svg2pdfconverter',
'sphinx.ext.imgconverter', # 'sphinx.ext.imgconverter',
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.