Change the default setting of supported_remote_images

This commit is contained in:
Takeshi KOMIYA committed 2017-04-19 01:40:49 +09:00
1 parent ebdec70dfc
commit a43f7b47c2
4 files changed
+4 -1

No files matched your search

+1 -1
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):
+1
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
+1
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
+1
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