Commit Graph
12100 Commits
Author SHA1 Message Date
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 6113261948 Merge pull request #5775 from tk0miya/5770_doctest_refers_highlight_language
Fix #5770: doctest: Follow highlight_language on highlighting doctest block
2018-12-16 00:56:55 +09:00
Takeshi KOMIYA c70e65fc6c Merge branch 'master' into 5770_doctest_refers_highlight_language 2018-12-16 00:32:10 +09:00
Takeshi KOMIYA 79eec90f36 Merge pull request #5773 from tk0miya/fix_typehints_for_unicode
Replace all "unicode" type by "str"
2018-12-16 00:24:21 +09:00
Takeshi KOMIYA 6bc357140d Replace all "unicode" type by "str" 2018-12-15 23:57:43 +09:00
Takeshi KOMIYA 0031c9b482 Merge pull request #5789 from tk0miya/remove_print_function
Remove print_function feature
2018-12-15 23:26:11 +09:00
Takeshi KOMIYA b56f4f9022 Remove print_function feature 2018-12-15 23:16:10 +09:00
Takeshi KOMIYA 415ebc15c5 Merge pull request #5784 from tk0miya/refactor_hack_for_py2
Refactor hack for py2
2018-12-15 22:40:46 +09:00
Takeshi KOMIYA 4d933716b8 Merge pull request #5785 from tk0miya/refactor_six.StringIO
refactor: Replace six.StringIO by io.StringIO
2018-12-15 22:03:16 +09:00
Takeshi KOMIYA 77e0139a26 Remove warnings for old python which does not support SNI 2018-12-15 22:02:12 +09:00
Takeshi KOMIYA 66fad4e22d Remove a hack for py2 from testcode 2018-12-15 22:01:22 +09:00
Takeshi KOMIYA 3408351636 Remove a hack for py2 from TextWrapper 2018-12-15 22:01:22 +09:00
Takeshi KOMIYA 2aa9e5ed3a Replace for-yield-loop by "yield from" 2018-12-15 22:01:22 +09:00
Takeshi KOMIYA 3f90794f22 Remove comments for py2 2018-12-15 21:44:17 +09:00
Takeshi KOMIYA 881cfbc82b Remove a hack for py2 from isclassmethod() 2018-12-15 21:44:17 +09:00
Takeshi KOMIYA 6b24c069c3 Deprecate sphinx.util.inspect.Parameter 2018-12-15 21:44:17 +09:00
Takeshi KOMIYA fd1dd13a50 refactor: Replace six.StringIO by io.StringIO 2018-12-15 21:00:38 +09:00
Takeshi KOMIYA a1e845d964 Merge pull request #5777 from tk0miya/5720_deprecate_abbreviation_node
Deprecate abbreviation node (refs: #5720)
2018-12-15 20:58:54 +09:00
Takeshi KOMIYA 41492066a3 Merge pull request #5782 from tk0miya/refactor_six.UserString
refactor: Replace six.UserString by collections.UserString
2018-12-15 20:58:16 +09:00
Takeshi KOMIYA 001a557fcf Merge pull request #5781 from tk0miya/refactor_six.PY2
refactor: Drop six.PY2
2018-12-15 20:57:51 +09:00
Takeshi KOMIYA 66cd2aa33d Merge pull request #5780 from tk0miya/refactor_six.zip_longest
refactor: Replace six.moves.zip_longest by itertools.zip_longest
2018-12-15 20:57:26 +09:00
Takeshi KOMIYA de043ac5ce Merge pull request #5779 from tk0miya/refactor_six.add_metaclass
refactor: Replace six.add_metaclass by __metaclass_ attribute
2018-12-15 20:24:11 +09:00
Takeshi KOMIYA cf5b3b61e9 Merge pull request #5778 from tk0miya/refactor_six.integer_types
refactor: Replace six.integer_types by int
2018-12-15 20:23:54 +09:00
Takeshi KOMIYA 08bc847964 Deprecate abbreviation node (refs: #5720) 2018-12-15 20:13:04 +09:00
Takeshi KOMIYA e789080b54 refactor: Drop six.PY2 2018-12-15 20:08:39 +09:00
Takeshi KOMIYA 485983684e refactor: Replace six.moves.zip_longest by itertools.zip_longest 2018-12-15 20:08:00 +09:00
Takeshi KOMIYA d2e5061136 refactor: Replace six.UserString by collections.UserString 2018-12-15 20:07:08 +09:00
Takeshi KOMIYA 5f8b1ede8e refactor: Replace six.add_metaclass by __metaclass_ attribute 2018-12-15 20:06:26 +09:00
Takeshi KOMIYA b911a39a81 refactor: Replace six.integer_types by int 2018-12-15 20:05:33 +09:00
Jean-François B 661fb1de59 LaTeX: use Bjarne option of fncychap also if language is set to 'en' (#5776)
Closes: #5772
2018-12-15 11:37:56 +01:00
Takeshi KOMIYA d6d4406ce9 Fix #5770: doctest: Follow highlight_language on highlighting doctest block 2018-12-15 18:35:12 +09:00
Takeshi KOMIYA a5dcca53f8 Merge pull request #5774 from cocoatomo/patch-1
Append my name and contribution
2018-12-15 18:02:13 +09:00
cocoatomo 2c26782795 Append my name and contribution 2018-12-15 13:58:35 +09:00
Takeshi KOMIYA aaf0046f44 Merge pull request #5760 from tk0miya/migrate_to_mypy-py3
Migrate to mypy py3 mode
2018-12-15 13:07:58 +09:00
Jean-François B ca2ce49830 Merge pull request #5768 from jfbu/latex_xelatex_fvset_small
LaTeX: use ``\small`` fontsize in code-blocks with xelatex and lualatex
2018-12-14 21:18:23 +01:00
Takeshi KOMIYA fe2975302a Add 'type: ignore' to avoid type errors 2018-12-15 02:42:43 +09:00
Takeshi KOMIYA 9dfc5e7efe Add docutils-stubs to test deps 2018-12-15 02:42:43 +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 f8a2e7aa8a Merge pull request #5769 from tk0miya/fix_typehints_for_writers
Use nodes.Element for visitor/departure methods
2018-12-15 02:42:24 +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
jfbu 022fc9d3b6 LaTeX: use `\small` fontsize in code-blocks with xelatex and lualatex 2018-12-13 15:00:38 +01:00
jfbu 6a40dd9272 Update CHANGES for PR #5645 2018-12-13 14:39:15 +01:00
Takeshi KOMIYA 1c8797479c Merge pull request #5767 from tk0miya/refactor_cpp_domain
Add super method; CPPObject.get_index_text()
2018-12-13 09:57:10 +09:00
Takeshi KOMIYA 28f26a429d Add super method; CPPObject.get_index_text() 2018-12-13 00:19:36 +09:00
Takeshi KOMIYA 4b4416834b Merge pull request #5765 from tk0miya/refactor_SphinxSmartQuotes
refactor SphinxSmartQuotes: Override smartquotes_action by str value (instaed of property)
2018-12-12 22:17:08 +09:00
Takeshi KOMIYA b35ea4edc3 Merge pull request #5764 from evgeni/patch-1
explicitly recommend to inherit CSS via @import
2018-12-12 21:50:30 +09:00
Takeshi KOMIYA 10b1a2fba2 refactor SphinxSmartQuotes: Override smartquotes_action by str value (instaed of property) 2018-12-12 21:48:06 +09:00
Takeshi KOMIYA 6d1b68230c Merge pull request #5763 from tk0miya/refactor_SphinxTranslator.get_settings
Remove SphinxTranslator.get_settings()
2018-12-12 18:19:39 +09:00
Evgeni Golov 1258128eca explicitly recommend to inherit CSS via @import
while `@import` is mentioned in the `stylesheet` section, it is not clear that `inherit` won't add the base themes stylesheet by default
2018-12-12 10:16:54 +01:00
Takeshi KOMIYA 05036b9578 Remove SphinxTranslator.get_settings()
It was introduced to fake its type information and make mypy silent.
But the warnings had came from wrong typing of docutils-stubs.
(see https://github.com/tk0miya/docutils-stubs/pull/28)

After the fix, the helper method is not needed for us. So this
removes it right away.
2018-12-12 17:32:04 +09:00