Adam Turner
e010e24728
Fix B904 (raise exceptions with `raise ... from ...
`)
2023-08-13 22:11:15 +01:00
Martin Liška
f25a36d056
Fix instability in `test_build_epub
` ( #11296 )
...
Some tests need ``app.builder.build_all`` in order to have complete rebuild.
2023-04-06 22:33:20 +01:00
Adam Turner
9df3b59e00
Resolve lint errors from Ruff 0.0.259
2023-03-23 21:58:49 +00:00
Adam Turner
c8f4a03dac
Fix COM812
2023-02-18 01:58:05 +00:00
Adam Turner
2a7c40d07f
Undo parallel image changes
2023-01-10 14:53:17 +00:00
Adam Turner
a1cd19e601
Fix copying images under parallel execution ( #11100 )
2023-01-07 17:35:21 +00:00
Adam Turner
f4ab9adf77
Move XML Name pattern to `epub3
`
2023-01-03 22:36:54 +00:00
Adam Turner
920828fe35
Run the `pyupgrade
` tool
2022-10-17 22:39:09 +01:00
danieleades
25d379fb53
Lint with flake8-bugbear
( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-07-12 22:55:57 +01:00
Adam Turner
24e3b7c8c8
.read_text()
-> .read_text(encoding='utf8')
2022-04-27 03:04:19 +01:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Christian Clauss
86583c578c
Fix typos discovered by codespell
2021-09-08 02:15:25 +02:00
Takeshi KOMIYA
4b452338f9
Merge branch '3.x'
2021-01-01 13:57:19 +09:00
Takeshi KOMIYA
f996859420
A happy new year!
...
.. 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
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
279e547860
Merge branch '3.x'
2020-11-12 02:50:43 +09:00
François Freitag
0949735210
Sort imports with isort
...
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.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
327c187284
Merge branch '3.x'
2020-07-24 23:49:45 +09:00
Takeshi KOMIYA
000328f7fd
test: Decode stdout and stderr of epubcheck
2020-07-18 16:38:22 +09:00
Takeshi KOMIYA
4860b451f2
Merge branch '3.x'
2020-04-06 00:23:29 +09:00
Takeshi KOMIYA
32b256dc2f
Fix #7301 : epub: duplicated node_ids are generated
2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
7aa5584a47
Fix #7301 : capital characters are not allowed for node_id
2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
90fb44ee43
Merge branch '3.x'
2020-03-23 00:07:51 +09:00
Takeshi KOMIYA
7bbf79c313
Fix #7301 : Allow . and _ for node_id
...
In development of 3.0, Sphinx starts to obey to the rule of
"Identifier Normalization" of docutils. This extends it to allow
dots(".") and underscores("_") for node identifier.
It allows Sphinx to generate node identifier from source string as
possible as it is (bacause dots and underscores are usually used in
many programming langauges).
This change will keep not to break hyperlinks as possible.
2020-03-22 16:39:00 +09:00
Takeshi KOMIYA
3e0618ba3a
Deprecate codes for docutils-0.13 or 0.14
2020-03-07 19:36:41 +09:00
Takeshi KOMIYA
fbfaf41e83
std domain: Generate node_id for generic objects in the right way
2020-03-02 01:28:01 +09:00
Takeshi KOMIYA
4dd8b1022f
test: Use read_text() and read_bytes()
2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
93d659568d
Fix #5070 : epub: Wrong internal href fragment links
2019-10-20 14:32:08 +09:00
Takeshi KOMIYA
1ece29597e
Merge branch 'master' into simplify_conf.py
2019-02-16 21:25:21 +09:00
Takeshi KOMIYA
1a96f2b2cb
Do test with docutils-0.12
2019-02-09 15:48:33 +09:00
Takeshi KOMIYA
d08903d9b9
quickstart: Simplify generated conf.py (EPUB)
2019-02-09 15:00:27 +09:00
Takeshi KOMIYA
b950480218
Fix #4611 : epub: Show warning for duplicated ToC entries
2019-02-03 22:53:30 +09:00
Takeshi KOMIYA
46334a2b00
Use subprocess.run() instead of Popen()
...
Since python3.5, subprocess.run() has been introduced. It works a
wrapper of Popen, and it looks much simple and better. This uses it
instead of Popen to make our code simple.
2019-01-13 23:25:54 +09:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
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.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Jon Dufresne
490e4aed41
Remove unnecessary object from class definitions
...
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Takeshi KOMIYA
d1eecb1307
Merge branch '1.7' into 1.8
2018-09-09 19:22:35 +09:00
Takeshi KOMIYA
973986cfdb
Add $DO_EPUBCHECK envvar as a workaround for #4611
2018-09-09 19:09:56 +09:00
Takeshi KOMIYA
aee5fd04d4
Fix #5348 : download reference to remote file is not displayed
2018-08-26 22:25:35 +09:00
Takeshi KOMIYA
3d180f9385
Merge branch '1.7'
2018-06-21 23:23:30 +09:00
Takeshi KOMIYA
d7bf78f3ff
Fix #5070 : epub: Wrong internal href fragment links
2018-06-19 23:37:37 +09:00
Takeshi KOMIYA
bd2967f1d2
Add :confval:epub_css_files
2018-04-06 13:11:24 +09:00
Takeshi KOMIYA
cd08872cc0
Fix existence check for JRE was broken
2018-03-20 23:35:42 +09:00
Takeshi KOMIYA
9891924485
epub: Fix docTitle elements of toc.ncx is not escaped
2018-03-20 20:28:02 +09:00
Takeshi KOMIYA
11fa47769b
Fix filename of epub (refs: #4611 )
2018-03-07 10:53:01 +09:00
Takeshi KOMIYA
2523979d26
test: Run epubcheck as a testing
2018-02-19 00:27:45 +09:00