Commit Graph

19588 Commits

Author SHA1 Message Date
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
Adam Turner
b347657809 Use declarative metadata
- Move to pyproject.toml metadata
- Update references to `setup.py`
- Use pypa/build
- Update workflows and tooling
2022-09-13 10:31:27 +01:00
Adam Turner
5477ef6675 git mv setup.py pyproject.toml 2022-09-13 10:31:27 +01:00
Martin Liška
c4964edc73
Use subtitle name in search results (#10814) 2022-09-13 09:26:49 +01:00
Adam Turner
ded734d5f9 Fix mypy error 2022-09-12 23:30:58 +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
c8e5199cc9 Privatise type (DomainsType -> _DomainsType) 2022-09-12 19:56:04 +01:00
Adam Turner
ee005caf22 Do not apply epigraph style to all block quotes
Correct indentation where appropriate for stanzas that should not be
rendered as `<blockquote>` HTML elements.

Closes GH-10686
2022-09-12 19:54:36 +01:00
Adam Turner
efdd32cee2
More precise typing for BuildEnvironment.domains (#10813) 2022-09-09 10:16:30 +01:00
danieleades
fe2f96ac99
Shink the strict optional whitelist (#10800)
Removes `sphinx.search`
2022-09-09 07:29:54 +01:00
Adam Turner
f35d2a6cc7
Remove Pygments compatability code (#10812) 2022-09-09 05:08:48 +01:00
Adam Turner
ff01427a0e Bump dependency versions 2022-09-09 04:19:23 +01:00
Adam Turner
62dd6852cf Specify colorama dependency with an environment marker 2022-09-09 04:19:18 +01:00
Adam Turner
4af52b4b88 Refactor setup.py 2022-09-09 04:19:15 +01:00
Adam Turner
75f25bab49 Clean setup.py 2022-09-09 04:19:11 +01:00
Martin Liška
454ced9cc1
Save search resul score to HTML element for debugging (#10718)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-09-09 03:06:55 +01:00
danieleades
c5ae5855ae
Remove sphinx.builders.gettext module from whitelist (#10798) 2022-09-09 02:35:59 +01:00
Tony Narlock
ba548f713e
Correct is_allowed_version()'s example tests (#10802) 2022-09-09 02:32:56 +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
Adam Turner
7473b05e0d Use asterisks for bullets 2022-09-07 21:06:41 +01:00
Adam Turner
592da865d3
Refactor util.docutils.new_document() cache (#10805) 2022-09-07 16:30:52 +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
5e9550c78e
Fix more strict static typing errors (#10681) 2022-08-28 21:17:14 +01:00
Matthias Geier
f56e61d1a1
agogo theme: revert CSS changes related to sidebar (#10787) 2022-08-28 20:19:34 +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
Alex
a9b4b19be5
Restrict permissions in GitHub workflows (#10790) 2022-08-28 15:59:06 +01:00
Tim Hoffmann
5951de4086
sphinx13.css: add left padding to the footer (#10789) 2022-08-28 01:33:26 +01:00
François Freitag
e32301cbbb
Merge pull request #10757 from n-peugnet/linkcheck-raw-source-url
linkcheck: Check the source URL of raw directives that use the `url` option
2022-08-23 14:26:16 +02: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
Jean-François B
8c4865c30d Merge branch '5.1.x' into 5.x 2022-08-15 15:06:51 +02:00
Jean-François B
cb4f06b279 Closes #10760 2022-08-15 15:06:17 +02:00
Jean-François B
abe6a7e76d
Merge pull request #10769 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-08-15 14:55:14 +02:00
danieleades
c3d8a7d50b
Fix some static typing errors (#10745) 2022-08-14 15:27:16 +01:00
tk0miya
91adc90800 Update message catalogs 2022-08-14 00:21:04 +00:00
Jean-François B
ee48589fc0
Merge pull request #10756 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-08-07 15:18:08 +02:00
Jean-François B
caf4357cdc
Merge pull request #10752 from dstansby/patch-1
Fix small typo in extension hello world tutorial
2022-08-07 15:15:29 +02:00
Adam Turner
7ef46150d1
Update doc/development/tutorials/helloworld.rst 2022-08-07 10:16:39 +01:00
tk0miya
712501b6b9 Update message catalogs 2022-08-07 00:25:14 +00:00
Abdur-Rahmaan Janhangeer
59056aa781
Remove extra line (#10749)
Co-authored-by: Jean-François B. <2589111+jfbu@users.noreply.github.com>
2022-08-04 18:42:55 +02:00
David Stansby
26ca57893d
Fix small typo in extension hello world tutorial 2022-08-04 16:48:24 +01: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
Jean-François B
50904866b7
Merge pull request #10741 from danieleades/fix-formatting
fix formatting
2022-08-01 21:05:08 +02:00
daniel.eades
964fcb2e07 Fix flake8 5.0.0 reported formatting errors 2022-08-01 20:55:47 +02:00
github-actions[bot]
e47ef710db
Update message catalogs (#10734) 2022-07-31 19:43:11 +01:00
Jakob Lykke Andersen
c2f1f89a87
Merge pull request #10729 from jakobandersen/cpp-template-args-non-specialized
[C++] Ensure consistent non-specialization template argument representation, rebased and updated
2022-07-29 18:29:40 +02:00
Jakob Lykke Andersen
f5c21a118f C++, bump env version due to AST and Symbol changes 2022-07-29 18:21:41 +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