Commit Graph

18684 Commits

Author SHA1 Message Date
Takeshi KOMIYA
b22134dcd3
Merge pull request #10031 from tk0miya/9555_ImportExceptionGroup_for_autosummary
Close #9555: autosummary: Improve error messages on failure to load target object
2022-01-01 19:00:10 +09:00
Takeshi KOMIYA
b84771dcd2 A happy new year! 2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
3fc98a2b3d Fix #10027: autodoc_typehints_format does not work with :show-inheritance: 2022-01-01 18:06:57 +09:00
Takeshi KOMIYA
6df45e0ead Add mode parameter to sphinx.util.typing:restify()
To make the typehints in "Bases" field simple, this adds a new parameter
`mode` to sphinx.util.typing:restify() to suppress the leading module
name from typehints in "Bases" field.
2022-01-01 14:24:43 +09:00
Takeshi KOMIYA
9039991a3b Close #9555: autosummary: Improve error messages on failure to load target object 2021-12-30 23:51:15 +09:00
Takeshi KOMIYA
eed0730b4b
Merge pull request #10021 from tk0miya/10015_typehints_format_with_typehints_in_description
Fix #10015: autodoc: autodoc_typehints_format='short' does not work when autodoc_typehints='description'
2021-12-29 02:09:35 +09:00
Takeshi KOMIYA
be84da0ee0
Merge pull request #10011 from tk0miya/10009_exception_on_getdoc
Fix #10009: autodoc: Crashes if subject raises an error on getdoc()
2021-12-29 02:07:46 +09:00
Takeshi KOMIYA
8600f438e6
Merge pull request #10022 from tk0miya/fix_non_translated_messages
Fix some messages are still not translated
2021-12-29 02:07:15 +09:00
Takeshi KOMIYA
b1c99e8ff1 Merge branch '4.x' into 10009_exception_on_getdoc 2021-12-27 02:33:31 +09:00
Takeshi KOMIYA
10efd31c46 Fix autodoc: Update error message on filtering members 2021-12-27 02:32:48 +09:00
Takeshi KOMIYA
a284aa6571
Merge pull request #10018 from tk0miya/10013_add_async_js_file
Close #10013: html: Allow to change the loading method of JavaScript
2021-12-27 02:30:00 +09:00
Takeshi KOMIYA
59cb7466b5 Fix some messages are still not translated 2021-12-27 02:28:45 +09:00
Takeshi KOMIYA
1f71f85fd6 Fix #10015: autodoc: autodoc_typehints_format='short' does not work when autodoc_typehints='description' 2021-12-27 02:23:02 +09:00
Takeshi KOMIYA
5da68c3de3 Fix py domain: "typing" types are not hyperlinked in info-field-list 2021-12-27 02:23:02 +09:00
Takeshi KOMIYA
f7d9ea2aaf refactor: py domain: Separate parse_reftarget() from type_to_xref() 2021-12-27 02:03:10 +09:00
Takeshi KOMIYA
8ddf3f09c6
Merge pull request #9997 from tk0miya/9194_Literal_type_not_hyperlinked
Fix #9194: autodoc: types in typing module are not hyperlinked
2021-12-27 00:19:30 +09:00
Takeshi KOMIYA
f3a098d4e9
Merge branch '4.x' into 9194_Literal_type_not_hyperlinked 2021-12-26 20:34:38 +09:00
Takeshi KOMIYA
7da429924e Fix testcase in py36 case 2021-12-26 20:34:05 +09:00
Takeshi KOMIYA
31ed71dfb3
Merge pull request #10020 from sphinx-doc/bot/pull-translations
Update message catalogs
2021-12-26 20:24:35 +09:00
tk0miya
082c876619 Update message catalogs 2021-12-26 00:13:06 +00:00
Takeshi KOMIYA
2ea9118181 refactor: Merge arguments of sphinx.util.typing:stringify() 2021-12-26 03:11:39 +09:00
Takeshi KOMIYA
bdbad40f57 Fix #9194: autodoc: Prepend the "typing" module name on the signature
To create hyperlinks to container types automatically, this prepends the
module names for the types under "typing" module.
2021-12-26 01:04:40 +09:00
Takeshi KOMIYA
b5bf745f68 Close #10013: html: Allow to change the loading method of JavaScript 2021-12-25 23:41:02 +09:00
Takeshi KOMIYA
3f8cc41754
Merge pull request #10017 from tk0miya/update_docs
refactor: docs: Use :param: fields for add_js_file() and add_css_file()
2021-12-25 23:38:36 +09:00
Takeshi KOMIYA
4f36d645f5
Merge pull request #10019 from tk0miya/update_docs2
Fix docs: docs for show_return_annotation param for stringify_signature() is not explained
2021-12-25 23:38:18 +09:00
Takeshi KOMIYA
287dd515e2 Fix docs: docs for show_return_annotation param for stringify_signature() is not explained 2021-12-25 19:57:52 +09:00
Takeshi KOMIYA
71e4f37f2d
Merge pull request #10012 from tk0miya/9931_autodoc_typehints_format
autodoc: Rename autodoc_unqualified_typehints to autodoc_typehints_format (refs: #9931)
2021-12-25 19:39:45 +09:00
Takeshi KOMIYA
e8b3c9cf18 refactor: docs: Use :param: fields for add_js_file() and add_css_file() 2021-12-25 18:42:36 +09:00
Takeshi KOMIYA
4f9b4c2124 Update CHANGES for PR #10007 2021-12-25 12:56:15 +09:00
Takeshi KOMIYA
bc17cd4602
Merge pull request #10007 from takluyver/importlib-metadata
Replace pkg_resources with importlib.metadata
2021-12-25 12:51:11 +09:00
Thomas Kluyver
b27228cf08 Merge remote-tracking branch 'origin/4.x' into importlib-metadata 2021-12-24 18:13:23 +00:00
Thomas Kluyver
c7e34936ff Rename variables for clarity 2021-12-24 18:13:17 +00:00
Takeshi KOMIYA
0a5783f75b py domain: Suppress the leading "typing." module from typehints
To support creating hyperlinks to container types naturally, py domain
should take fully-qualified typehints for them.  But nobody wants to
show "typing." module name on the signature. So this suppresses them
automatically.
2021-12-25 02:50:31 +09:00
Takeshi KOMIYA
94cbce69da Fix #9194: autodoc: types in typing module are not hyperlinked
This converts types in typing module to valid references when
`autodoc_unqualified_typehints` option enabled.
2021-12-25 02:50:31 +09:00
Takeshi KOMIYA
49f576569c Fix autodoc: Failed to parse Literal type in py36 and py37 2021-12-25 02:41:38 +09:00
Takeshi KOMIYA
a87153c018 autodoc: Rename autodoc_unqualified_typehints to autodoc_typehints_format (refs: #9931) 2021-12-24 10:14:19 +09:00
Takeshi KOMIYA
048fd80cb4
Merge pull request #9943 from jdknight/drop-translator-specific-unknown_visit-calls
drop translator-specific unknown_visit calls
2021-12-24 02:09:16 +09:00
Takeshi KOMIYA
b5a9a05602 Merge branch '4.x' into drop-translator-specific-unknown_visit-calls 2021-12-24 01:54:35 +09:00
Takeshi KOMIYA
f2dc8a999a Fix flake8 warnings 2021-12-24 01:54:30 +09:00
Takeshi KOMIYA
6c6fed5e55 Fix #10009: autodoc: Crashes if subject raises an error on getdoc() 2021-12-24 01:48:22 +09:00
Takeshi KOMIYA
6ad6594ec7
Merge pull request #10010 from tk0miya/mypy-0.930
Fix mypy violations (with mypy-0.930)
2021-12-24 00:29:07 +09:00
Takeshi KOMIYA
565152301f Fix mypy violations (with mypy-0.930) 2021-12-24 00:21:23 +09:00
Thomas Kluyver
71b3e2c822 Run isort 2021-12-22 18:27:13 +00:00
Thomas Kluyver
e257533ea7 Add comment about import options 2021-12-22 18:18:22 +00:00
Thomas Kluyver
6c5c66bbb1 Replace pkg_resources with importlib.metadata 2021-12-22 18:13:19 +00:00
Takeshi KOMIYA
94acb1921c
Merge pull request #9998 from tk0miya/9993_inline_target
Close #9993: std domain: Allow to refer an inline target via ref role
2021-12-23 03:01:05 +09:00
Takeshi KOMIYA
7d59c40608
Merge pull request #9990 from tk0miya/9961_nested_kbd_in_html_related_builders
Close #9961: html: Support nested <kbd> HTML elements in other HTML builders
2021-12-23 02:59:51 +09:00
Takeshi KOMIYA
e3ee8b378a Close #9993: std domain: Allow to refer an inline target via ref role 2021-12-21 02:51:59 +09:00
Takeshi KOMIYA
40db5694fa
Merge pull request #9992 from tk0miya/debug_print
test: Remove debug print
2021-12-19 18:31:52 +09:00
Takeshi KOMIYA
627d73a683 test: Remove debug print 2021-12-19 18:15:56 +09:00