Select an image by similarity if multiple images are globbed by `.. image:: filename.*`

Until this point, it is used the last image returned from glob.glob().
The order of glob.glob() is determined by filesystem.
After this, Sphinx uses filename similarity to determine the image.
This commit is contained in:
Takeshi KOMIYA
2016-01-28 00:39:04 +09:00
parent 208eb6e052
commit 46138ca605
4 changed files with 5 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ Features added
* #1853: support custom text splitter on html search with ``language='ja'``.
* #2320: classifier of glossary terms can be used for index entries grouping key.
The classifier also be used for translation. See also :ref:`glossary-directive`.
* Select an image by similarity if multiple images are globbed by ``.. image:: filename.*``
Bugs fixed
----------