mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Drop warning for nonlocal image URI
This commit is contained in:
parent
3c46c2f5ac
commit
a5d77a8f06
@ -228,7 +228,6 @@ General configuration
|
||||
* app.add_source_parser
|
||||
* download.not_readable
|
||||
* image.data_uri
|
||||
* image.nonlocal_uri
|
||||
* image.not_readable
|
||||
* ref.term
|
||||
* ref.ref
|
||||
|
@ -64,9 +64,6 @@ class ImageCollector(EnvironmentCollector):
|
||||
candidates['?'] = imguri
|
||||
continue
|
||||
elif imguri.find('://') != -1:
|
||||
logger.warning('nonlocal image URI found: %s' % imguri,
|
||||
location=node,
|
||||
type='image', subtype='nonlocal_uri')
|
||||
candidates['?'] = imguri
|
||||
continue
|
||||
rel_imgpath, full_imgpath = app.env.relfn2path(imguri, docname)
|
||||
|
@ -15,9 +15,6 @@ test-warnings
|
||||
.. an SVG image (for HTML at least)
|
||||
.. image:: svgimg.*
|
||||
|
||||
.. a non-local image URI
|
||||
.. image:: http://www.python.org/logo.png
|
||||
|
||||
.. should give a warning
|
||||
.. literalinclude:: wrongenc.inc
|
||||
:language: none
|
||||
|
@ -32,7 +32,6 @@ WARNING: Explicit markup ends without a blank line; unexpected unindent.
|
||||
%(root)s/index.rst:\\d+: WARNING: Encoding 'utf-8-sig' used for reading included \
|
||||
file u'%(root)s/wrongenc.inc' seems to be wrong, try giving an :encoding: option
|
||||
%(root)s/index.rst:\\d+: WARNING: image file not readable: foo.png
|
||||
%(root)s/index.rst:\\d+: WARNING: nonlocal image URI found: http://www.python.org/logo.png
|
||||
%(root)s/index.rst:\\d+: WARNING: download file not readable: %(root)s/nonexisting.png
|
||||
%(root)s/index.rst:\\d+: WARNING: invalid single index entry u''
|
||||
%(root)s/undecodable.rst:\\d+: WARNING: undecodable source characters, replacing \
|
||||
|
@ -40,8 +40,6 @@ def test_first_update():
|
||||
def test_images():
|
||||
assert ('image file not readable: foo.png'
|
||||
in app._warning.getvalue())
|
||||
assert ('nonlocal image URI found: http://www.python.org/logo.png'
|
||||
in app._warning.getvalue())
|
||||
|
||||
tree = env.get_doctree('images')
|
||||
htmlbuilder = StandaloneHTMLBuilder(app)
|
||||
|
Loading…
Reference in New Issue
Block a user