summaryrefslogtreecommitdiff
path: root/sphinx/builders/_epub_base.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Support and prefer ``.jinja`` to ``_t`` for static templates ↵James Addison2023-04-231-3/+2
| | | | | (#11165)" (#11329) This reverts commit 5d13215b58f93c6be8255ef2e3e20836508c7d47.
* Support and prefer ``.jinja`` to ``_t`` for static templates (#11165)James Addison2023-04-071-2/+3
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Ensure arguments to ``PIL.Image.resize()`` are integers (#11288)James Reinders2023-04-061-1/+1
| | | | | | | Update ``copy_image_files_pil`` so that the computation of ``nh`` is always an integer, as otherwise some calls to ``PIL.Image.resize()`` fail as floats are not allowed Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Fix COM812Adam Turner2023-02-181-6/+6
|
* Collapse ``.startswith`` and ``.endswith`` testsAdam Turner2023-02-091-4/+2
|
* Undo parallel image changesAdam Turner2023-01-101-7/+4
|
* Fix copying images under parallel execution (#11100)Adam Turner2023-01-071-4/+7
|
* Move console output utilities to ``sphinx.util.display``Adam Turner2023-01-031-1/+2
| | | | | - Merge `old_status_iterator` into ``status_iterator``. ``old_status_iterator`` was deprecated in version 1.6.
* Use PEP 604 typesAdam Turner2023-01-011-2/+2
|
* Use PEP 595 typesAdam Turner2023-01-011-22/+22
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* remove blanket 'noqas'Daniel Eades2022-12-161-1/+3
|
* URI-escape image filenames (#10268)Eric Wieser2022-10-131-1/+2
| | | | | | | | Without this change, local images with `#` in their name result in incorrect URLs There is already a similar call to `urllib.parse.quote` for file downloads, suggesting this is a sensible approach. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
* Remove unneeded `noqa` lint suppression comments (#10772)danieleades2022-08-281-1/+1
|
* Improve static typing strictness (#10569)danieleades2022-07-181-2/+2
|
* Epub: Add WebP mime typeAaron Carlisle2022-05-101-0/+1
| | | | | | | When building docs with WebP images using the EPUB builder results in this warning: `WARNING: unknown mimetype for _images/<image_name>.webp, ignoring` This commit fixes this by adding the mapping for webp-files to the correct mime type.
* Address warnings in test_util_i18n.pyAdam Turner2022-04-221-1/+1
|
* 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
|
* address some unused loop control variables (B007)Daniel Eades2022-01-121-3/+3
|
* simplify some set comparisons (SIM109)Daniel Eades2022-01-101-1/+1
|
* Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-8/+8
| | | | | | | | 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
|
* Support docutils-0.18: Consume iterator of Element.traverse()Takeshi KOMIYA2021-10-271-4/+4
| | | | | | | Since 0.18, Element.traverse() returns an iterator instead of intermediate object. As a result, the return value is always considered as truthy value. And it becomes fragile when the caller modifies the doctree on the loop.
* Fix typos discovered by codespellChristian Clauss2021-09-081-1/+1
|
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-04-081-1/+1
|
* refactor: Use PEP-526 based variable annotation (sphinx.builders)Takeshi KOMIYA2021-03-131-8/+8
|
* Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-7/+7
| | | | | | To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
* Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\
| * 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
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-3/+2
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-3/+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.
* | Merge branch '3.x' into masterTakeshi KOMIYA2020-10-281-1/+6
|\ \ | |/
| * Fix #8289: Allow to suppress "duplicated ToC entry found" warnings from epub ↵Thomas Grainger2020-10-051-1/+6
| | | | | | | | builder
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-1/+1
|\ \ | |/
| * fix typoTetsuo Koyama2020-07-191-1/+1
| |
| * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-72/+24
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-061-11/+12
|\ \ | |/
| * Fix #7301: epub: duplicated node_ids are generatedTakeshi KOMIYA2020-03-291-11/+12
| |
* | Use typing.NamedTuple instead of collections.namedtuple as possibleTakeshi KOMIYA2020-03-071-7/+26
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Fix #5070: epub: Wrong internal href fragment linksTakeshi KOMIYA2019-10-201-1/+1
|
* Migrate to py3 style type annotation: sphinx.builders._epub_baseTakeshi KOMIYA2019-06-101-70/+36
|
* Deprecate EpubBuilder.esc() in favor of stdlib html.escape()Jon Dufresne2019-04-231-37/+40
| | | | | | Available since Python 3.2. https://docs.python.org/3/library/html.html#html.escape
* Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+0
|
* HTML builder outputs HTML5 by defaultTakeshi KOMIYA2019-02-111-2/+0
|