Commit Graph

4235 Commits

Author SHA1 Message Date
Adam Turner
19b54dce6a Merge branch '5.x'
# Conflicts:
#	CHANGES
#	sphinx/__init__.py
2022-07-24 14:15:26 +01:00
Adam Turner
e3337c78c6 Update include_patterns implementation (#10680) 2022-07-23 21:19:35 +01:00
Adam Turner
a4d41aa889 Merge branch '5.x' 2022-07-17 21:53:12 +01:00
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
Adam Turner
1e3ade55fe Merge branch '5.x' 2022-07-10 23:05:23 +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
Jean-François B
80198e82aa Merge branch '5.x' into master
Resolved merge conflicts:
    sphinx/ext/extlinks.py
    sphinx/ext/napoleon/docstring.py
    (and removed from the latter a now unused import for flake8 F401
    compliance)
2022-06-30 15:00:16 +02:00
Adam Turner
ac0fc4b781 Remove more deprecated items in Sphinx 6.0 (#10562) 2022-06-26 15:01:09 +01: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
7e38d2dad8 Merge branch '5.x'
# Conflicts:
#	.github/workflows/builddoc.yml
#	.github/workflows/lint.yml
#	sphinx/registry.py
2022-06-16 21:46:54 +01: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
Adam Turner
ce31e1c0c7 Remove deprecated items for Sphinx 6.0 (#10471) 2022-06-16 21:05:37 +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
7e68154e49 Drop python 3.6 support (#10468) 2022-06-16 19:33:55 +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