Adam Turner
58a4449707
Deprecate HTML 4 support ( #10843 )
2022-09-23 18:12:54 +01:00
Julien Schueller
ef01c5b6bd
imgmath: Allow embedding images in HTML as base64 ( #10816 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-09-23 17:11:21 +01:00
Adam Turner
8ae81839be
Support searching for index entries ( #10819 )
2022-09-20 22:08:03 +01:00
Adam Turner
f57177de89
Add contents entries for domain objects ( #10807 )
...
- Add entries in the table of contents for domain objects (e.g.
`py:function`, `rst:role`, etc). Supported domains are Javascript,
Python, and reStructuredText.
- Support content in `py:module` and `js:module` directives.
- Add the `noindexentry` and `noindex` flags to more domains.
- Add `toc_object_entries_show_parents` configuration setting
- Update documentation and tests
2022-09-13 20:20:02 +01:00
Brecht Machiels
d924acfdb9
Make toctree accept special docnames ( #10673 )
...
The `.. toctree::` directive now supports the reserved special docnames
'genindex', 'modindex', and 'search'.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-09-12 20:13:14 +01:00
Adam Turner
f35d2a6cc7
Remove Pygments compatability code ( #10812 )
2022-09-09 05:08:48 +01:00
Martin Liška
7da60f2353
search: support searching for (sub)titles ( #10717 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-09-09 02:28:29 +01:00
Jeremy Maitin-Shepard
4cd950e1ba
Allow :ref:
role to be used with definitions and fields ( #10781 )
2022-09-06 23:34:20 +01:00
danieleades
12bff8a273
Remove unneeded noqa
lint suppression comments ( #10772 )
2022-08-28 20:03:17 +01:00
danieleades
2b02173617
Further improve type annotations, reduce mypy whitelist ( #10770 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-08-28 19:50:01 +01:00
n-peugnet
1553cc3b36
linkcheck: Check the source URL of raw directives
...
Add raw directives' source URL to the list of links to check with linkcheck.
By the way, refactor HyperlinkCollector by adding `add_uri` function.
Add test for linkcheck raw directives source URL
2022-08-17 14:57:58 +02:00
ProGamerGov
b2fe07e1a1
Properly support of
in docstring type specifiers ( #10738 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-08-02 23:43:32 +01:00
Jean-François B
f72a25ce76
Merge branch '5.1.x' into 5.x
2022-08-01 21:05:47 +02:00
daniel.eades
964fcb2e07
Fix flake8 5.0.0 reported formatting errors
2022-08-01 20:55:47 +02:00
Jakob Lykke Andersen
64c1b2be2e
C++, restructure tests
2022-07-29 18:21:34 +02:00
Jakob Lykke Andersen
aa43a37865
C++, fix parsing of certain non-type template parameters
...
Specifically 'template<int (X::*)(bool)...>'
2022-07-29 18:14:45 +02:00
Jakob Lykke Andersen
66f98957b1
C++, ensure merging case is as assumed
2022-07-29 18:14:45 +02:00
Jeremy Maitin-Shepard
5b97ec522a
[C++] Ensure consistent non-specialization template argument representation
...
Previously, in certain cases the template arguments of
non-specializations were retained, leading to incorrect merging of symbols.
2022-07-29 18:14:41 +02:00
Jeremy Maitin-Shepard
3bd80e7c54
[C++] Allow template prefix on union declarations
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
33f5474951
[C++] Allow trailing requires-clause on constructors
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
9694aa5a26
[C++] Allow trailing-requires-clause on functions without a template prefix
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
ac1b0d490c
[C++] Support requires-clause in more places
...
Previously a C++20 requires-clause was only supported on `function`
declarations. However, the C++ standard allows a require-clause on
class/union templates, alias templates, and variable templates, and
also allows a requires clause after each template parameter list, not
just the final one.
This moves the requiresClause to be a property of `ASTTemplateParams`
rather than `ASTDeclaration` to better match the C++ grammar and
allows requires clauses in many places that are supported by C++20 but
were not previously allowed by Sphinx, namely:
- On class templates, alias templates, and variable templates
- After each template parameter list, not just the last one.
- After the template parameter list in template template parameters.
When encoding the id, the requires clause of the last template
parameter list is treated specially in order to preserve compatibility
with existing v4 ids.
2022-07-24 21:37:56 +02:00
Adam Turner
e3337c78c6
Update include_patterns implementation ( #10680 )
2022-07-23 21:19:35 +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
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