Commit Graph

13877 Commits

Author SHA1 Message Date
Takeshi KOMIYA
729ffa1fcd Add sphinx.pycode.ast.parse() and unparse() 2020-01-13 13:15:33 +09:00
Takeshi KOMIYA
4cecd700e0
Merge pull request #7009 from tk0miya/refactor_SphinxTranslator2
SphinxTranslator calls visitor/departure method for super node class
2020-01-11 21:42:20 +09:00
Takeshi KOMIYA
0fb3fe5fcc
Merge branch '2.0' into refactor_SphinxTranslator2 2020-01-11 21:33:54 +09:00
Takeshi KOMIYA
b6b2ebd756
Merge pull request #7012 from tk0miya/support_pep570
autodoc: Support Positional-Only Argument separator (PEP-570 compliant)
2020-01-11 11:32:47 +09:00
Takeshi KOMIYA
d82edef388
Merge pull request #7013 from tk0miya/refactor_signature3
refactor: Simplify stringify_signature()
2020-01-11 02:58:46 +09:00
Takeshi KOMIYA
f7c9049e9c
Merge pull request #7011 from tk0miya/refactor_glossary5
Fix node_id is not assigned on translation
2020-01-11 02:41:30 +09:00
Takeshi KOMIYA
adaa566cc5 refactor: Simplify stringify_signature() 2020-01-11 02:33:12 +09:00
Takeshi KOMIYA
9ed162921e autodoc: Support Positional-Only Argument separator (PEP-570 compliant) 2020-01-11 02:32:33 +09:00
Takeshi KOMIYA
6fa592f111
Merge pull request #7002 from tk0miya/refactor_Signature2
refactor: Add sphinx.util.inspect.signature()
2020-01-11 01:24:09 +09:00
Takeshi KOMIYA
3e0390720a
Merge pull request #7003 from tk0miya/6999_napoleon_tilde_in_exc_role
Fix #6999: napoleon: fails to parse tilde in :exc: role
2020-01-11 01:21:22 +09:00
Takeshi KOMIYA
a438191304 Fix node_id is not assigned on translation 2020-01-11 00:59:22 +09:00
Takeshi KOMIYA
35a092b7fe SphinxTranslator calls visitor/departure method for super node class 2020-01-10 22:50:43 +09:00
Takeshi KOMIYA
4d64cd1142
Merge pull request #6997 from tk0miya/refactor_glossary4
Update type annotations
2020-01-09 01:17:30 +09:00
Takeshi KOMIYA
1f6819ba42
Merge pull request #6995 from rgommers/download-role
Update documentation of download role for addition of hash in subdir
2020-01-09 00:34:53 +09:00
Takeshi KOMIYA
2f04fda809
Merge pull request #6996 from tk0miya/refactor_kwargs
refactor: Rename var keyword argument to "**kwargs"
2020-01-09 00:34:11 +09:00
Takeshi KOMIYA
6852aa4bf9 Update type annotations 2020-01-09 00:32:39 +09:00
Takeshi KOMIYA
5867416612 refactor: Add sphinx.util.inspect.signature()
As a successor of sphinx.util.inspect.Singnature, this adds
signature() function behaves like `inspect.signature()`.  It is
very similar to way of python's inspect module.

In addition, this also adds stringify_annotation() helper to
sphinx.util.inspect module.  With these two functions, we can move
to python's Signature object to represent function signatures
perfectly.  It's natural design for python developers than ever.
2020-01-09 00:32:07 +09:00
Takeshi KOMIYA
b14439ca48 Fix #6999: napoleon: fails to parse tilde in :exc: role 2020-01-09 00:15:27 +09:00
Takeshi KOMIYA
ae8fc43024 Update CHANGES for PR #6998 2020-01-08 23:31:30 +09:00
Takeshi KOMIYA
1eac74fa35
Merge pull request #6998 from Modelmat/adobe-illustrator-imgconverter
Adds support for Adobe Illustrator (.ai) to sphinx.ext.imgconverter
2020-01-08 23:27:45 +09:00
Takeshi KOMIYA
9efd806acb Merge branch '2.3.2' into 2.0 2020-01-08 13:45:08 +09:00
Takeshi KOMIYA
c07c618f1b
Merge pull request #7001 from tk0miya/stop_testing_with_nightly
Stop testing with nightly python
2020-01-08 13:44:30 +09:00
Takeshi KOMIYA
227df4ec7a Stop testing with nightly python
At present, latest typted_ast does not support python-3.9a1 or later.
As a result, nightly python in Travis CI gets errored in nearly running.
This stops to use nightly python for testing temporarily.

refs: https://github.com/python/typed_ast/issues/129
2020-01-08 13:14:20 +09:00
Modelmat
8db96431e4 Adds Adobe Illustrator (.ai) to sphinx.ext.imgconverter 2020-01-08 10:39:22 +11:00
Takeshi KOMIYA
a6a1721de6 refactor: Rename var keyword argument to "**kwargs" 2020-01-08 01:39:07 +09:00
Ralf Gommers
659c66ad98 Update documentation of download role for addition of hash in subdir
This was changed in gh-5377, but that forget the (now slightly
misleading) documentation.

Discovered in https://github.com/numpy/numpy.org/pull/14, where
we were relying on download links being stable.
2020-01-07 13:06:16 +01:00
Takeshi KOMIYA
8e1cbd24c6
Merge pull request #6992 from tk0miya/stringify_type_hints
Add sphinx.util.typing:stringify() to represent annotations as string
2020-01-07 01:34:24 +09:00
Takeshi KOMIYA
05daa3c7ce Add sphinx.util.typing:stringify() to represent annotations as string 2020-01-05 01:13:27 +09:00
Takeshi KOMIYA
2f7823e1a6
Merge pull request #6985 from tk0miya/6696_scale_not_working_for_SVG
Fix #6696: html: scale option of image/figure directive not working for SVG
2020-01-04 22:36:42 +09:00
Takeshi KOMIYA
5541561490
Merge pull request #6987 from tk0miya/6986_apidoc_wrong_modname_inside_module
Fix #6986: apidoc: misdetects module name for .so file inside module
2020-01-04 22:35:28 +09:00
Takeshi KOMIYA
e339c39e88 Fix #6986: apidoc: misdetects module name for .so file inside module 2020-01-03 09:44:01 +09:00
Takeshi KOMIYA
9cc25367b8 Fix #6696: html: scale option of image/figure directive not working for SVG
Note: imagesize-1.2.0 or above is required
2020-01-03 00:20:05 +09:00
Takeshi KOMIYA
577b80cb8e
Merge pull request #6977 from tk0miya/refactor_glossary2
Fix #6559: Wrong node-ids are generated in glossary directive
2020-01-02 22:16:21 +09:00
Takeshi KOMIYA
1c5a5bbbe5 Add sphinx.util.nodes:make_id() to generate better node_id 2020-01-02 22:03:39 +09:00
Takeshi KOMIYA
7123f4038a Fix #6559: Wrong node-ids are generated in glossary directive 2020-01-02 22:03:39 +09:00
Takeshi KOMIYA
efe18663b2
Merge pull request #6980 from tk0miya/6583_improve_NoUri
Be precise about which document is missing.
2020-01-01 21:53:41 +09:00
Takeshi KOMIYA
ef257f40fd Be precise about which document missing (cpp, post_transform) 2020-01-01 17:58:57 +09:00
Takeshi KOMIYA
6c29dfc639 Add "typ" to NoUri 2020-01-01 17:58:57 +09:00
Julien Palard
9f4c7a1101 More NoUri details. 2020-01-01 17:53:45 +09:00
Julien Palard
11558aba8b Be precise about which document is missing. 2020-01-01 17:53:45 +09:00
Takeshi KOMIYA
2e8dea1a3d
Merge pull request #6978 from tk0miya/update_copyright2
A happy new year!
2020-01-01 14:38:35 +09:00
Takeshi KOMIYA
eaf495c3c4 A happy new year! 2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
2f36d792f3 Update CHANGES for PR #5230 2020-01-01 12:59:20 +09:00
Takeshi KOMIYA
c5b653433d
Merge pull request #6976 from tk0miya/update_copyright
A happy new year!
2020-01-01 11:28:58 +09:00
Takeshi KOMIYA
fc523c3ccf A happy new year! 2020-01-01 11:15:42 +09:00
Takeshi KOMIYA
0355d57fc1
Merge pull request #6972 from tk0miya/refactor_type_annotation2
mypy: Enable disallow_incomplete_defs flag for type checking
2019-12-30 17:33:52 +09:00
Takeshi KOMIYA
ab184ac20d mypy: Enable disallow_incomplete_defs flag for type checking 2019-12-30 17:22:56 +09:00
Takeshi KOMIYA
7a4bbf372a
Merge pull request #6971 from tk0miya/refactor_index_domain
Move index directive and role to sphinx.domains.index
2019-12-29 21:25:33 +09:00
Takeshi KOMIYA
8dc3315ce5 Deprecate sphinx.roles:Index and make a copy to sphinx.domains.index 2019-12-29 19:12:58 +09:00
Takeshi KOMIYA
4f83793fd0 Move sphinx.directives.other:Index to sphinx.domains.index 2019-12-29 18:21:26 +09:00