mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Change the default setting of supported_remote_images
This commit is contained in:
parent
ebdec70dfc
commit
a43f7b47c2
@ -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):
|
||||
|
@ -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
|
||||
|
@ -58,6 +58,7 @@ class Epub3Builder(EpubBuilder):
|
||||
"""
|
||||
name = 'epub'
|
||||
|
||||
supported_remote_images = False
|
||||
template_dir = path.join(package_dir, 'templates', 'epub3')
|
||||
doctype = DOCTYPE
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user