Commit Graph

11791 Commits

Author SHA1 Message Date
Takeshi KOMIYA
4fd14cf5e1
Merge pull request #5632 from jdufresne/super-json
Use super() in SphinxJSONEncoder
2018-11-14 20:02:04 +09:00
Takeshi KOMIYA
19b1078f6d
Merge pull request #5633 from jdufresne/js-test
Improve JS handling in test_search.py
2018-11-14 20:01:13 +09:00
Jon Dufresne
4cda774566 Improve JS handling in test_search.py
- Reuse jsload() in all tests to reduce duplication.
- Fix -2 index to -1, to include the entire JSON string. Was previously
  chopping off the final '}'.
- Assert the serialized string ends with a closing parenthesis
2018-11-13 21:25:46 -08:00
Jon Dufresne
8c46a94bca Use super() in SphinxJSONEncoder
This case was missed as part of
710ca3d7c3.
2018-11-13 21:22:30 -08:00
Takeshi KOMIYA
45ad2e41a5
Merge pull request #5610 from tk0miya/refactor_domains
Refactor std domain: Add add_object() and add_program_option()
2018-11-14 00:55:06 +09:00
Takeshi KOMIYA
c80b5fe58f
Merge pull request #5606 from sphinx-doc/fix_typehints3
Fix type annotations for RoleFunction
2018-11-14 00:53:28 +09:00
Takeshi KOMIYA
a6fc9259b0
Merge pull request #5620 from jdufresne/dep-force-decode
Deprecate and drop internal use of force_decode()
2018-11-14 00:47:41 +09:00
Jon Dufresne
555960d668 Deprecate and drop internal use of force_decode()
In the Python 3 only code base, this function is no longer necessary.
The type of values is well understood and deliberate. Code should avoid
arbitrary mixing of bytes & str.

By removing force_decode() calls from docstring values, can deprecate
the now unused 'encoding' arguments to various autodoc methods.
2018-11-13 07:16:39 -08:00
Takeshi KOMIYA
6b0e0fa3eb
Merge pull request #5613 from jdufresne/extras
Simplify tox configuration with 'extras' option
2018-11-13 22:41:17 +09:00
Takeshi KOMIYA
3abd705b35
Merge pull request #5626 from jdufresne/pycompat-u
Deprecate sphinx.util.pycompat.u
2018-11-13 22:38:16 +09:00
Takeshi KOMIYA
48e5b900ae
Merge pull request #5623 from jdufresne/comments
Remove commented out dead code in sphinx/testing/util.py
2018-11-13 21:52:05 +09:00
Takeshi KOMIYA
fddeab4c6d
Merge pull request #5624 from jdufresne/fix-ignore
Correct type annotation to remove 'type: ignore' comment
2018-11-13 21:50:08 +09:00
Takeshi KOMIYA
2f5b79b943
Merge pull request #5625 from jdufresne/unused
Remove dead code `or '.'`
2018-11-13 21:49:45 +09:00
Jon Dufresne
6fbf4a2f99 Deprecate sphinx.util.pycompat.u
It is now simply a constant equal to the empty string. Provides no
further utility.
2018-11-12 16:31:27 -08:00
Jon Dufresne
0137b0287a Remove dead code or '.'
The expression `os.path.dirname(__file__)` always evaluates as a truthy
value. The `or '.'` is never evaluated.
2018-11-12 14:31:29 -08:00
Jon Dufresne
1c9c9df68d Correct type annotation to remove 'type: ignore' comment 2018-11-12 13:26:21 -08:00
Jon Dufresne
88de460c43 Remove commented out dead code in sphinx/testing/util.py
Commented since d47a7587f9 (Sep 21, 2014).
2018-11-12 12:45:24 -08:00
Jon Dufresne
fc5aedd378 Simplify tox configuration with 'extras' option
https://tox.readthedocs.io/en/latest/config.html#conf-extras

> extras(MULTI-LINE-LIST)
>
> New in version 2.4.
>
> A list of “extras” to be installed with the sdist or develop install.
> For example, extras = testing is equivalent to [testing] in a pip
> install command.
2018-11-12 08:17:22 -08:00
Takeshi KOMIYA
b6fb808317
Merge pull request #5481 from jdufresne/binary-type
Remove use of six.binary_type; use bytes instead
2018-11-12 22:44:59 +09:00
Jon Dufresne
27a6787d63 Remove use of six.binary_type
Remove type checks for cases that don't apply to Python 3.

For remaining uses, use bytes instead
2018-11-11 19:09:47 -08:00
Takeshi KOMIYA
7ff3d1875a
Merge pull request #5612 from tk0miya/removal_six
Remove use six.move module
2018-11-12 11:13:58 +09:00
Takeshi KOMIYA
6d8dc3639d
Merge pull request #5615 from jdufresne/six-u
Remove use of six.u
2018-11-12 11:11:15 +09:00
Takeshi KOMIYA
e89b1d342e
Merge pull request #5617 from jdufresne/super
Use super() to call parent class's method
2018-11-12 11:03:42 +09:00
Jon Dufresne
710ca3d7c3 Use super() to call parent class's method 2018-11-11 13:07:12 -08:00
Jon Dufresne
6ada18b9a8 Remove use of six.u 2018-11-11 12:24:44 -08:00
Takeshi KOMIYA
8f9a76f476 Remove use six.move module 2018-11-12 01:02:14 +09:00
Takeshi KOMIYA
42d52d6a91
Merge pull request #5608 from tk0miya/refactor_test2
test: Replace call_autodoc() by do_autodoc()
2018-11-12 00:30:36 +09:00
Takeshi KOMIYA
ea07ae4db0 Add StandardDomain.add_program_option() 2018-11-11 21:50:31 +09:00
Takeshi KOMIYA
608ed677d7 Add StandardDomain.add_object() 2018-11-11 21:50:31 +09:00
Takeshi KOMIYA
9c4e5b244a test: Replace call_autodoc() by do_autodoc() 2018-11-11 21:22:11 +09:00
Takeshi KOMIYA
c46c61fa32 Fix type annotations for RoleFunction 2018-11-11 18:44:30 +09:00
Takeshi KOMIYA
4c96c6efce Merge branch '1.8' 2018-11-11 15:12:31 +09:00
Takeshi KOMIYA
345e96c374 Bump version 2018-11-11 15:12:10 +09:00
Takeshi KOMIYA
62a83e4960 Bump to 1.8.2 final 2018-11-11 15:07:44 +09:00
Takeshi KOMIYA
2810f77edd Merge branch '1.8' 2018-11-09 22:10:35 +09:00
Takeshi KOMIYA
f75f03c1cb
Merge pull request #5601 from tk0miya/tox_install_command
Give install_command to tox
2018-11-09 22:09:30 +09:00
Takeshi KOMIYA
b28ab1e103
Merge pull request #5600 from tk0miya/3080_invalid_texinfo
Fix #3080: multiline rubrics and citations are broken in texinfo builder
2018-11-09 22:08:51 +09:00
Takeshi KOMIYA
8adb20cc42 Give install_command to tox
Since tox-3.2.0, 'usedevelop' option and 'deps=.[test,websupport]'
option have been conflicted.  As a workaround, this adds
'install_command' option to avoid the situation.
2018-11-09 00:51:13 +09:00
Takeshi KOMIYA
feba53ff55 Fix #3080: texinfo: multiline citations are broken 2018-11-08 23:33:00 +09:00
Takeshi KOMIYA
84f781252f Fix #3080: texinfo: multiline rubric is broken 2018-11-08 23:33:00 +09:00
jfbu
994b0ea827 LaTeX: update date and version of sphinx.sty 2018-11-06 18:32:41 +01:00
jfbu
16f47cded9 Merge branch '1.8' 2018-11-06 18:30:21 +01:00
Jean-François B
c9999b1208
Merge pull request #5583 from jfbu/5579_style_index_entries
LaTeX: add styling to general index, similar to domain indices
2018-11-06 18:12:19 +01:00
Takeshi KOMIYA
63daf8c6e6
Merge pull request #5525 from eqvinox/revert-pickle-write-1.8
[1.8] Revert "Builder.build: save env also with only new documents"
2018-11-07 00:16:58 +09:00
Takeshi KOMIYA
c307787dc8
Merge pull request #5591 from tk0miya/fix_typehints
Fix type annotations
2018-11-06 23:34:17 +09:00
Takeshi KOMIYA
5fe0807e5a Fix mypy violation 2018-11-06 23:06:03 +09:00
Takeshi KOMIYA
4da03dc541 Fix typehints: sphinx.builders 2018-11-06 00:26:29 +09:00
Takeshi KOMIYA
babd33e388 Fix typehints: sphinx.directives 2018-11-06 00:26:29 +09:00
Takeshi KOMIYA
99bb07740e Fix typehints: sphinx.domains 2018-11-06 00:26:29 +09:00
Takeshi KOMIYA
67cbc7d96c Fix typehints: sphinx.environment.adapters.toctree 2018-11-06 00:26:29 +09:00