Ram Rachum
19974ed017
Use chain.from_iterable in text.py
2020-06-17 11:58:32 +03:00
Takeshi KOMIYA
941bf951ac
Hello TYPE_CHECKING!
2020-03-07 19:36:41 +09:00
Takeshi KOMIYA
6532b1fc3e
refactor: Update type annotations in sphinx.writers.*
2020-02-23 18:55:47 +09:00
Takeshi KOMIYA
f6882d7466
Merge branch '2.x' into 3.x
2020-02-18 01:42:37 +09:00
Takeshi KOMIYA
97a3ddd2b8
Fix #7170 : text: Remove debug print
2020-02-18 00:15:28 +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
9d39b187c1
Fix flake8 violation
2019-12-01 11:22:41 +09:00
Takeshi KOMIYA
25f6eff6df
Merge branch '2.0'
2019-12-01 00:55:09 +09:00
Takeshi KOMIYA
5a05cabd6a
Fix #6867 : text: extra spaces are inserted to hyphenated words on folding lines
2019-11-30 22:44:13 +09:00
Takeshi KOMIYA
15c266c445
Merge branch '2.0'
2019-11-30 21:52:42 +09:00
Takeshi KOMIYA
67c133aa77
Migrate to py3 style type annotation: sphinx.writers.text
2019-11-26 01:36:00 +09:00
Takeshi KOMIYA
a498960de9
Merge branch '2.0'
2019-07-13 11:17:35 +09:00
Takeshi KOMIYA
fd74594f53
Fix mypy violations (for mypy-0.720)
2019-07-13 10:55:13 +09:00
Takeshi KOMIYA
224d247ca0
Fix mypy violations (for mypy-0.710)
2019-06-21 11:07:27 +09:00
Takeshi KOMIYA
61098a0ae2
Drop features and APIs deprecated in 1.8
2019-03-30 14:50:37 +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
a3ab764a5b
Reorder the arguments for translators
2018-12-17 23:20:01 +09:00
Takeshi KOMIYA
d8b69c7f98
Merge pull request #5819 from jdufresne/coding-comment
...
Remove unnecessary encoding cookie from Python source files
2018-12-17 19:15:00 +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
Jon Dufresne
2b0096fba9
Remove redundant coerce to str in string formatting
...
When an object is passed to a string format placeholder '%s', Python
will implicitly call str() on the object. This applies to print() and
logging as well.
2018-12-16 10:03:45 -08: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
3408351636
Remove a hack for py2 from TextWrapper
2018-12-15 22:01:22 +09:00
Takeshi KOMIYA
53917f228f
Move to py3 mode for mypy (and remove many "type: ignore" comments)
2018-12-15 02:42:42 +09:00
Takeshi KOMIYA
f1bf847726
Use nodes.Element for visitor/departure methods
...
To follow docutils-stubs rule, we use nodes.Element for
visitor/departure methods.
2018-12-15 01:39:50 +09:00
Takeshi KOMIYA
a06ab0f8e9
Fix annotations for footnotes
2018-12-10 00:08:50 +09:00
Takeshi KOMIYA
97615beda2
refactor TextTranslator; Replace _make_depart_admonition()
2018-12-04 01:40:14 +09:00
Takeshi KOMIYA
3863256cb6
Add SphinxTranslator as an abstract class
2018-12-03 22:30:56 +09:00
Takeshi KOMIYA
fd73a169c7
Fix annotations (minor fixes)
2018-12-03 01:11:06 +09:00
Takeshi KOMIYA
31c4d06a22
refactor: Use super() to call methods of superclass
2018-11-28 01:58:32 +09:00
Takeshi KOMIYA
670c8a6173
Fix annotations for writers
2018-11-28 00:54:53 +09:00
Takeshi KOMIYA
3c99d00605
Add sphinx.util.typing:unicode to help mypy-3 migration
2018-11-24 23:19:51 +09:00
Takeshi KOMIYA
f128be573b
Update type hints to text writer
2018-11-21 01:37:48 +09:00
Stephen Finucane
ac9f6a8b05
Fix two nits with the TextBuilder class
...
- 'logger' was unused and can be removed
- 'TextTranslator.sectionchars' was overridden in '__init__' and doesn't
need to be defined
Signed-off-by: Stephen Finucane <stephen@that.guru >
2018-11-16 11:15:05 +01:00
Jon Dufresne
710ca3d7c3
Use super() to call parent class's method
2018-11-11 13:07:12 -08:00
Julien Palard
e6067d675d
Use generator.
2018-10-23 18:47:25 +02:00
Julien Palard
512c885011
Looks like sphinx docstring uses rst, ok.
2018-10-23 18:45:55 +02:00
Julien Palard
83703c6a5e
fix flake8
2018-10-23 18:10:31 +02:00
Julien Palard
9e1fd5f343
FIX: mypy
2018-10-23 16:51:48 +02:00
Julien Palard
d5e408e57e
Comments, maybe.
2018-10-23 00:03:39 +02:00
Julien Palard
9b30fc938d
Working on text colspan and rowspan.
2018-10-22 23:38:01 +02:00
Takeshi KOMIYA
4f296c5e67
Refactor: Run highlightlang on resolving phase
2018-07-21 13:54:09 +09:00
Takeshi KOMIYA
e675ad2ec9
Enable math_block node rendering by default (without HTML builders)
2018-05-17 00:42:22 +09:00
Takeshi KOMIYA
4e04bff4f5
Enable math node rendering by default (without HTML builders)
...
Nowadays, math elements (inline and block level equations) are
integrated into reST spec by default. But, in Sphinx, they are
not enabled by default. For this reason, users have to enable
one of math extensions even if target builder supports math
elements directly.
This change starts to enable them by default. As a first step,
this replaces math node and its structure by docutils based one.
2018-05-15 22:27:49 +09:00
Takeshi KOMIYA
d8d1c7ac63
Remove unused visitor methods
2018-04-15 02:35:26 +09:00
Takeshi KOMIYA
af4647c492
Merge branch '1.7'
2018-04-14 15:43:38 +09:00
Takeshi KOMIYA
4546c8a1b1
Fix #4817 : wrong URLs on warning messages
2018-04-08 22:32:49 +09:00