Change the default setting of supported_remote_images

This commit is contained in:
Takeshi KOMIYA 2017-04-19 01:38:31 +09:00
parent ebdec70dfc
commit a43f7b47c2
4 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Builder(object):
#: The list of MIME types of image formats supported by the builder.
#: Image files are searched in the order in which they appear here.
supported_image_types = [] # type: List[unicode]
supported_remote_images = True
supported_remote_images = False
supported_data_uri_images = False
def __init__(self, app):

View File

@ -119,6 +119,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
copysource = False
supported_image_types = ['image/svg+xml', 'image/png', 'image/gif',
'image/jpeg']
supported_remote_images = False
# don't add links
add_permalinks = False

View File

@ -58,6 +58,7 @@ class Epub3Builder(EpubBuilder):
"""
name = 'epub'
supported_remote_images = False
template_dir = path.join(package_dir, 'templates', 'epub3')
doctype = DOCTYPE

View File

@ -103,6 +103,7 @@ class StandaloneHTMLBuilder(Builder):
html_scaled_image_link = True
supported_image_types = ['image/svg+xml', 'image/png',
'image/gif', 'image/jpeg']
supported_remote_images = True
supported_data_uri_images = True
searchindex_filename = 'searchindex.js'
add_permalinks = True