Adam Turner
490a8a9162
Add include_patterns as the opposite of exclude_patterns ( #10518 )
2022-07-17 21:44:33 +01:00
Takeshi KOMIYA
e7fc03bce2
Allow specifying multiple CSS files in themes ( #10465 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2022-07-17 12:27:43 +01:00
danieleades
25d379fb53
Lint with flake8-bugbear ( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-07-12 22:55:57 +01:00
Jeremy Maitin-Shepard
66f9ee4afd
Make -P (pdb) work better with exceptions triggered from events
...
Previously, if an exception was raised from an event listener, and the
`-P` option was specified, the debugger would be started not for the
original error but for the `ExtensionError` wrapping it that was
raised by `EventManager.emit`. That made it difficult to debug the
error.
With this change, when `-P` is specified, wrapping of errors in
`ExtensionError` is disabled, which allows pdb to debug the original
error.
2022-07-04 18:48:44 -07:00
danieleades
12e86ff0e1
Use the flake8-comprehensions lint plugin ( #10601 )
2022-06-26 14:43:05 +01:00
Joachim Jablon
663a5b7781
py domain: Ignore aliases for resolving :any: cross-references ( #10089 )
...
Co-authored-by: Joachim Jablon <joachim.jablon@people-doc.com >
2022-06-26 13:04:15 +01:00
Antony Lee
03c1e1b15c
Replace napoleon.iterators by simpler stack implementation ( #9856 )
2022-06-26 12:40:42 +01:00
Jeremy Maitin-Shepard
1198fbe7f9
Ensure ObjectDescription signature nodes include line numbers ( #10249 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-06-23 21:48:32 +01:00
Martin Liška
ea46202565
Fix parsing of options with enabled option_emphasise_placeholders ( #10565 )
2022-06-19 22:51:48 +01:00
marxin
3a269ee590
Fix usage of enable_search_shortcuts theme config value.
...
The option value is not properly propagated to Java script.
2022-06-17 21:21:27 +02:00
Adam Turner
70f950cae0
Remove traces of Python 2 and 3.5 ( #10560 )
2022-06-16 21:37:46 +01:00
Ezio Melotti
1a1491b8a7
Show the repr of the value in some warnings ( #10439 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2022-06-16 21:07:25 +01:00
Martin Liška
f789148fa2
Allow emphasising placeholders in option directives ( #10366 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-06-16 20:46:01 +01:00
Doug Hellmann
9c9a52d92b
logging: always show source locations as absolute paths ( #10460 )
2022-06-16 19:51:49 +01:00
Adam Turner
6ef22d2613
Increase static typing strictness ( #10530 )
2022-06-16 19:50:01 +01:00
Takeshi KOMIYA
1031175418
Merge pull request #10551 from AA-Turner/fix-extra-whitespace
...
Remove extra space from the unparser
2022-06-17 03:02:48 +09:00
Takeshi KOMIYA
4d7558e968
Merge branch '5.0.x' into 5.x
2022-06-17 02:19:33 +09:00
Adam Turner
b8a38f037b
Special case **
2022-06-15 10:15:53 +01:00
Adam Turner
3dc6ed166f
Add higher level test
2022-06-15 09:29:35 +01:00
Adam Turner
b58ef001ac
Remove extra space from the unparser
2022-06-14 09:54:01 +01:00
Takeshi KOMIYA
29edce9243
test: Add testcase for autodoc_inherit_docstring and attributes (refs: #10539 )
2022-06-14 02:49:07 +09:00
Daniel Eades
89210fc275
remove unnecessary list comprehension (C416)
2022-06-03 13:15:43 +01:00
Daniel Eades
55a0143df7
remove unnecessary list calls around 'sorted' (C413)
2022-06-03 13:15:42 +01:00
Takeshi KOMIYA
4a9d80b008
Merge branch '5.0.x' into 5.x
2022-06-03 02:19:28 +09:00
Takeshi KOMIYA
ab58bbaed7
Merge pull request #10502 from AA-Turner/ifconfig-fix
...
`ifconfig`: Add a meta node to fix iteration
2022-06-03 02:15:50 +09:00
Adam Turner
efdbe06eea
Review comments
2022-06-01 18:10:55 +01:00
Adam Turner
91f90a5fb5
Fix test
2022-06-01 00:50:41 +01:00
Adam Turner
23a4b61415
Add a test
2022-06-01 00:35:28 +01:00
Adam Turner
9fad9d98c2
Fix fake link in test
2022-05-31 17:15:19 +01:00
Adam Turner
d066d23067
Add a test
2022-05-31 17:14:01 +01:00
Adam Turner
41ac59ef6b
Spelling (language)
2022-05-30 12:35:08 +01:00
Takeshi KOMIYA
a904ab563a
test: Change URL of testcase
2022-05-30 02:06:30 +09:00
Adam Turner
200414982c
Update test
2022-05-28 19:55:30 +01:00
Adam Turner
78c478a579
Merge remote-tracking branch 'upstream/5.0.x' into lang-none-en
2022-05-28 19:21:44 +01:00
Adam Turner
479e48266c
Update warning, revert my original warning patch
2022-05-28 19:17:46 +01:00
Adam Turner
a3d0983552
Add warning
2022-05-28 19:06:48 +01:00
Adam Turner
57e4a2f4cc
Fix case where language isn't set
2022-05-28 00:06:29 +01:00
Adam Turner
20a1775c83
Add test
2022-05-27 23:51:40 +01:00
Takeshi KOMIYA
c28b464a8f
Merge pull request #10466 from tk0miya/10104_gettext_duplicated_locations
...
Fix sphinx-doc#10104: gettext: Duplicated locations are output to pot file
2022-05-26 09:25:35 +09:00
Anselm Kruis
336885c4e2
Add test cases for #8180
...
The test checks, if ":meta private:" and ":meta public:" have an effect
in attributes of a class. Currently the new test cases fail.
The fix is in the next commit.
2022-05-23 02:04:03 +09:00
Takeshi KOMIYA
51c84e041f
Fix #10104 : gettext: Duplicated locations are output to pot file
...
When 3rd party extension does not provide line number for each message,
duplicated locations are output to pot file unexpectedly. This filters
duplicated locations before generationg pot file.
2022-05-23 01:50:41 +09:00
Takeshi KOMIYA
d3af85c809
Merge branch '5.0.x' into 9648_autodoc_typehints_description_and_stared_args
2022-05-22 13:37:57 +09:00
Takeshi KOMIYA
b36eaafef1
Merge pull request #10457 from scVENUS/fix#10456
...
closes #10456 : test and fix for sphinx.domain.python.filter_meta_fields()
2022-05-22 13:26:35 +09:00
Anselm Kruis
6ffe881f55
Test for issue #10456 : removing meta-fields
...
Add two meta-fields to an appropriate test case.
Currently the test fails, because of bug #10456 .
The next commit fixes the issue.
2022-05-16 15:45:32 +02:00
Takeshi KOMIYA
06a9139308
Fix #9648 : autodoc: *args and **kwargs entries are duplicated
...
In basic usage of autodoc (docstring), `args` and `kwargs` arguments
are marked up without stars. But numpydoc style recommends to mark
them up with stars.
This adds support for starred arguments in docstrings to
`autodoc_typehints` feature.
2022-05-15 23:06:49 +09:00
Takeshi KOMIYA
d8a540e922
Fix #9575 : autodoc: Return annotation should not be shown
2022-05-15 20:51:42 +09:00
Takeshi KOMIYA
92fcac321b
test: Add *args and **kwargs to testcase of target.typehints
2022-05-15 19:05:17 +09:00
Takeshi KOMIYA
e770e2567f
Merge pull request #10427 from tk0miya/10421_autodoc_preserve_defaults_for_classmethod
...
Fix #10421 : autodoc_preserve_defaults doesn't work on class methods
2022-05-08 23:19:10 +09:00
Takeshi KOMIYA
10dd5a0e43
Fix #10421 : autodoc_preserve_defaults doesn't work on class methods
2022-05-08 22:59:14 +09:00
Takeshi KOMIYA
f58771c093
Merge pull request #10429 from tk0miya/9974_jquery-3.6.0
...
Close #9974 : html: Updated jQuery version from 3.5.1 to 3.6.0
2022-05-08 19:04:49 +09:00