summaryrefslogtreecommitdiff
path: root/sphinx/transforms/post_transforms/images.py
Commit message (Collapse)AuthorAgeFilesLines
* Consider duplicate names when using image post transforms (#11113)aaron-cooper2023-04-031-1/+2
| | | Closes: #11110
* Resolve Ruff SIM114 violationsAdam Turner2023-02-151-9/+7
|
* Move HTTP-date formatting utils to `utils.http_date`Adam Turner2023-01-031-1/+2
|
* Address SIM103 lints (#11052)danieleades2023-01-021-4/+1
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Use PEP 604 typesAdam Turner2023-01-011-2/+2
|
* Use PEP 595 typesAdam Turner2023-01-011-5/+5
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Merge pull request #10118 from mgeier/image-converter-ignore-questionmarkTakeshi KOMIYA2022-03-241-3/+2
|\ | | | | ImageConverter: ignore '?' image URIs
| * ImageConverter: ignore '?' image URIsMatthias Geier2022-01-181-3/+2
| |
* | Collapse single line docstringsAdam Turner2022-02-201-2/+1
| |
* | Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| |
* | Fix module docstring indentationAdam Turner2022-02-201-2/+2
| |
* | Fix module docstring first lineAdam Turner2022-02-201-2/+1
| |
* | Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|/
* Skip "data:" URIs in ImageConverterMatthias Geier2022-01-131-0/+3
|
* Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-1/+1
| | | | | | | | Node.traverse() was marked as deprecated since docutils-0.18. Instead of it, Node.findall() has been added as successor of traverse(). This applies a patch to docutils-0.17 or older to be available Node.findall() and use it.
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Improve sphinx.transforms.post_transforms.images docstringsLouis Maddox2021-07-181-7/+7
|
* Fix #9103: LaTeX: imgconverter: conversion runs even if not neededTakeshi KOMIYA2021-04-171-1/+1
| | | | | | The imgconverter unexpectedly goes to convert even if the given image is supported by the target builder when the image globbing is not used. This enables format guess-ing on not globbed.
* refactor: Use PEP-526 based variable annotation (sphinx.transforms)Takeshi KOMIYA2021-03-241-3/+3
|
* Skip imgconverter availability check if builder supports the image typeStefan Wiehler2021-01-041-3/+3
| | | | | Close #7973: ImgConverter runs is_available in HTML builder Close missinglinkelectronics/sphinxcontrib-svg2pdfconverter#8: Extension should only run on LaTeX builder
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* Deprecate sphinx.util.osutil.movefile() in favor of os.replace()Jon Dufresne2020-12-131-2/+2
| | | | | | | The utility function movefile() was added in 677d096393bca948eea8fad252bd859ed8142309 to handle existing files on Windows. Since Python 3.3, the stdlib function os.replace() fills this role.
* Sort imports with isortFrançois Freitag2020-11-111-4/+2
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* Fix #7973: imgconverter: Check availability of imagemagick only onceTakeshi KOMIYA2020-10-041-5/+10
| | | | | | | To prevent checking the availability of image converters times and times again, this stores the result to the class variable. It is not a good design to have a state globally. So this should be refactored in the future.
* Fix #7628: imgconverter: runs imagemagick unnecessaryTakeshi KOMIYA2020-05-091-1/+3
|
* Introduce fips safe sha1, see issue #7611Lars Hupfeldt2020-05-051-2/+1
|
* Merge branch '2.3.2' into 2.0Takeshi KOMIYA2020-02-091-0/+4
|\
| * Also added sanitizing to 'ImageDownloader's-weigand2020-02-041-0/+1
| |
| * Added code to replace problematic characters in filenames when usings-weigand2020-02-041-0/+3
| | | | | | ImageConverter
* | Adds Adobe Illustrator (.ai) to sphinx.ext.imgconverterModelmat2020-01-081-1/+0
| |
* | A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
* | mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-1/+1
|/
* Merge branch '2.0' into 6655_data_URL_causes_crashTakeshi KOMIYA2019-10-121-39/+19
|\
| * Migrate to py3 style type annotation: sphinx.transforms.post_transforms.imagesTakeshi KOMIYA2019-08-211-39/+19
| |
* | Fix #6655: image URLs containing data: causes gettext builder crashedTakeshi KOMIYA2019-08-201-1/+1
|/
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-3/+1
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-2/+2
| |
* | Merge pull request #5803 from jdufresne/encoding-utf8Takeshi KOMIYA2018-12-161-2/+2
|\ \ | | | | | | Avoid respecifying default encoding for .encode()/.decode() calls
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
* | | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-1/+1
|/ / | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-8/+7
| |
* | Fix annotations for transformsTakeshi KOMIYA2018-11-291-10/+10
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Adjust type annotations for transforms to docutils'Takeshi KOMIYA2018-11-231-2/+2
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-1/+1
|/
* doc: Remove meaningless spacesTakeshi KOMIYA2018-04-221-1/+1
|