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
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
Peter Bell
0000239776
Preserve backwards compatibility
2020-07-16 15:48:51 +01:00
Peter Bell
bedc00faa6
Require canonical name to be specified when calling deprecated_alias
2020-07-15 00:12:31 +01:00
Takeshi KOMIYA
fb7b0ee571
Fix #7619 : Duplicated node IDs are generated if node has multiple IDs
2020-07-09 23:15:56 +09:00
Takeshi KOMIYA
5290578256
Fix sphinx crashes with ImportError on python3.5.1
...
typing.Type was added since python 3.5.2. So it should be imported
only on type checking.
2020-04-19 16:34:54 +09:00
Takeshi KOMIYA
e628afd5cd
Merge branch '2.0'
2020-01-01 11:39:46 +09:00
Takeshi KOMIYA
fc523c3ccf
A happy new year!
2020-01-01 11:15:42 +09:00
Takeshi KOMIYA
ab184ac20d
mypy: Enable disallow_incomplete_defs flag for type checking
2019-12-30 17:22:56 +09:00
Takeshi KOMIYA
3bf39be471
Fix flake8 violations
2019-12-25 11:46:50 +09:00
Takeshi KOMIYA
d717f5ae31
Merge branch '2.0'
2019-12-25 11:41:54 +09:00
Takeshi KOMIYA
16d4ee2582
Migrate to py3 style type annotation: sphinx.io
2019-12-25 01:57:08 +09:00
Takeshi KOMIYA
ea2d5281bf
Fix flake8 violation
2019-12-21 13:53:15 +09:00
Takeshi KOMIYA
d47f38e22d
Merge branch '2.0'
2019-12-21 12:21:49 +09:00
Takeshi KOMIYA
00c30679cf
Deprecate sphinx.io.FiletypeNotFoundError and get_filetype()
2019-12-16 01:45:02 +09:00
James McKinney
2f768cf5a7
Fix #6855 : Non-RST translated text should be parsed by the appropriate parser
2019-12-16 01:38:22 +09:00
Takeshi KOMIYA
b47458332a
Fix merge error
2019-10-06 19:29:57 +09:00
Takeshi KOMIYA
e73ab4a4cb
Fix merge error
2019-10-06 19:16:24 +09:00
Takeshi KOMIYA
e8925e78ca
Merge branch '2.0'
2019-10-06 18:41:32 +09:00
Takeshi KOMIYA
73a93f897e
Merge branch '2.2.1' into 2.0
2019-10-06 18:40:36 +09:00
Takeshi KOMIYA
af09cd0e35
Fix mypy violations (for mypy-0.730)
2019-10-06 18:21:27 +09:00
Takeshi KOMIYA
21cd1c2ef5
refactor: SphinxStandaloneReader should not hold an application object
2019-08-20 21:45:50 +09:00
jfbu
685e3fdb49
Merge branch '2.0'
2019-08-01 17:49:24 +02:00
Takeshi KOMIYA
0c48a28ad7
Fix type annotation for python 3.5.1
2019-07-13 23:46:17 +09:00
Takeshi KOMIYA
f63abac2ca
Merge branch '2.0'
2019-05-13 22:03:26 +09:00
Takeshi KOMIYA
ab668396fc
Fix #6351 : "Hyperlink target is not referenced" message is shown even if referenced
2019-05-12 16:07:04 +09:00
Takeshi KOMIYA
61098a0ae2
Drop features and APIs deprecated in 1.8
2019-03-30 14:50:37 +09:00
Jon Dufresne
f210475489
Python-3-only clean ups discovered by pyupgrade
...
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
2019-03-17 12:58:03 -07:00
Takeshi KOMIYA
23f7b3a6e7
refactor: Remove lists of transforms from SphinxStandalonReader
2019-03-17 13:55:02 +09:00
Takeshi KOMIYA
c0755bf582
refactor CitationReferences transform
2019-03-09 22:26:35 +09:00
Takeshi KOMIYA
dbefc9865d
Clean up import for annotations
2019-03-06 23:44:44 +09:00
Takeshi KOMIYA
25027945f5
Close #4550 : All tables and figures without `align
` option are displayed to center
2019-02-08 01:39:41 +09:00
shimizukawa
dc6b586c5d
Publisher requires destination parameter.
...
This change fixes a bug that introduced at de49b991f6
.
2019-01-13 22:41:58 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Takeshi KOMIYA
f3350b8b7d
Deprecate SphinxFileInput.supported
2018-12-17 22:26:29 +09:00
Takeshi KOMIYA
636ca67528
Deprecate SphinxBaseFileInput
2018-12-17 22:08:00 +09:00
Takeshi KOMIYA
de49b991f6
refactor: Use simple Input class
2018-12-17 22:07:56 +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
608246b0fa
Move source-read
event to SphinxStandaloneReader
2018-12-16 21:59:26 +09:00
Jon Dufresne
ade973f4e3
Use Python 3 super() argument-less syntax
...
The form is less verbose and more idiomatic for Python 3 only code.
https://docs.python.org/3/library/functions.html#super
2018-12-15 08:35:55 -08:00
Takeshi KOMIYA
6bc357140d
Replace all "unicode" type by "str"
2018-12-15 23:57:43 +09:00
Takeshi KOMIYA
9dfc5e7efe
Add docutils-stubs to test deps
2018-12-15 02:42:43 +09:00
Takeshi KOMIYA
ac5cbfc618
Remove SphinxBaseFileInput.decode() because it is not used in py3
2018-12-07 23:24:39 +09:00
Takeshi KOMIYA
534583cfa6
Skip meaningless publisher.set_components() call
...
"parser" component is already passed on initialization. So it is
not needed to call `set_components()` method.
2018-12-07 23:24:39 +09:00
Takeshi KOMIYA
4493d7bf07
Merge pull request #5729 from tk0miya/refactor_io
...
Add UnicodeDecodeErrorHandler as a error_handler for open()
2018-12-07 23:22:15 +09:00
Takeshi KOMIYA
c62b1c1f7a
Add UnicodeDecodeErrorHandler as a error_handler for open()
2018-12-07 22:53:12 +09:00
Takeshi KOMIYA
c8ce761a73
deprecate SphinxRSTFileInput
2018-12-05 23:11:16 +09:00
Takeshi KOMIYA
5fa8ca492b
Add prepend_prolog() and append_epilog()
2018-12-05 23:10:23 +09:00
Takeshi KOMIYA
31c4d06a22
refactor: Use super() to call methods of superclass
2018-11-28 01:58:32 +09:00