Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow multi-line object description signatures (#11011) | TLouf | 2023-05-11 | 1 | -6/+21 |
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com> | ||||
* | Warn on deprecated Python-specific index types (#11412) | Adam Turner | 2023-05-09 | 1 | -9/+9 |
| | |||||
* | Harmonise references to Sphinx versions (#11361) | Adam Turner | 2023-04-27 | 1 | -1/+1 |
| | |||||
* | Remove deprecated ``make_old_id`` functions (#11360) | Adam Turner | 2023-04-27 | 1 | -10/+0 |
| | |||||
* | Add an option for displaying short ``Literal`` types (#11109) | Adam Turner | 2023-04-05 | 1 | -0/+5 |
| | | | | | | The new ``python_display_short_literal_types`` configuration option for the ``py`` domain controls display of PEP 586 ``Literal`` types. The 'short' format is inspired by PEP 604, using the bitwise OR operator to distinguish the possible legal values for the argument. | ||||
* | Resolve ``flake8-return`` errors | Adam Turner | 2023-02-18 | 1 | -2/+1 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -7/+7 |
| | |||||
* | Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147) | Jeremy Maitin-Shepard | 2023-02-15 | 1 | -5/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | Previously, ``nested_parse_with_titles`` always passed ``0`` as the input offset when invoking ``nested_parse``. When parsing the content of a directive, as is a common use case for ``nested_parse_with_titles``, this leads to incorrect source file/line number information, as it does not take into account the directive's ``content_offset``, which is always non-zero. This issue affects *all* object descriptions due to GH-10887. It also affects the ``sphinx.ext.ifconfig`` extension. The ``py:module`` and ``js:module`` directives employed a workaround for this issue, by wrapping the calls to ``nested_parse_with_title`` with ``switch_source_input``. That worked, but was more complicated (and likely less efficient) than necessary. This commit adds an optional ``content_offset`` parameter to ``nested_parse_with_titles``, and fixes callers to pass the appropriate content offset when needed. This commit eliminates the now-unnecessary calls to ``switch_source_input`` and instead specifies the correct ``content_offset``. | ||||
* | Resolve Ruff SIM114 violations | Adam Turner | 2023-02-15 | 1 | -18/+17 |
| | |||||
* | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 1 | -2/+6 |
| | | | | This allows using Ruff's import sorting fixers | ||||
* | De-glob mypy whitelist for 'sphinx.domains.*' (#11064) | danieleades | 2023-01-02 | 1 | -14/+28 |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072) | Adam Turner | 2023-01-02 | 1 | -0/+24 |
| | |||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -3/+3 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -5/+5 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -56/+56 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Use ``ast.parse`` from the standard library | Adam Turner | 2022-10-17 | 1 | -2/+1 |
| | |||||
* | Merge branch '5.x' | Adam Turner | 2022-09-30 | 1 | -0/+2 |
|\ | | | | | | | | | # Conflicts: # sphinx/locale/__init__.py | ||||
| * | Finer grained control over domain ToC entries (#10886) | Adam Turner | 2022-09-30 | 1 | -0/+2 |
| | | | | | | | | | | - Implement `:nocontentsentry:` flag - Use `:nocontentsentry:` in docs - Add domain object table of contents configuration option | ||||
* | | Drop Python 3.7 | Adam Turner | 2022-09-27 | 1 | -15/+2 |
| | | |||||
* | | Clean up after dropping Python 3.6 | Adam Turner | 2022-09-27 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-09-27 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Restore anchor links to top of module docstring | Adam Turner | 2022-09-27 | 1 | -1/+2 |
| | | |||||
| * | Warn on using the `:property:` flag with `.. py:method::` (#10852) | Adam Turner | 2022-09-23 | 1 | -0/+2 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-09-23 | 1 | -4/+42 |
|\ \ | |/ | | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py | ||||
| * | Add contents entries for domain objects (#10807) | Adam Turner | 2022-09-13 | 1 | -4/+42 |
| | | | | | | | | | | | | | | | | | | - 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 | ||||
* | | Merge branch '5.x' | Jean-François B | 2022-08-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Properly support `of` in docstring type specifiers (#10738) | ProGamerGov | 2022-08-02 | 1 | -1/+1 |
| | | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | | Merge branch '5.x' | Adam Turner | 2022-07-18 | 1 | -3/+5 |
|\ \ | |/ | | | | | | | | | # Conflicts: # sphinx/ext/autodoc/__init__.py # sphinx/writers/html5.py | ||||
| * | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -3/+5 |
| | | |||||
* | | Merge branch '5.x' into master | Jean-François B | 2022-06-30 | 1 | -0/+7 |
|\ \ | |/ | | | | | | | | | | | | | 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) | ||||
| * | py domain: Ignore aliases for resolving `:any:` cross-references (#10089) | Joachim Jablon | 2022-06-26 | 1 | -0/+7 |
| | | | | | | | | Co-authored-by: Joachim Jablon <joachim.jablon@people-doc.com> | ||||
* | | Remove more deprecated items in Sphinx 6.0 (#10562) | Adam Turner | 2022-06-26 | 1 | -10/+1 |
| | | |||||
* | | Remove deprecated items for Sphinx 6.0 (#10471) | Adam Turner | 2022-06-16 | 1 | -9/+3 |
|/ | |||||
* | Fix ~Literal references | Adam Turner | 2022-06-02 | 1 | -1/+1 |
| | |||||
* | fix #10456: fix sphinx.domain.python.filter_meta_fields() | Anselm Kruis | 2022-05-16 | 1 | -2/+2 |
| | | | | The function now removes all "meta"-fields from a field-list. | ||||
* | Merge branch '4.x' into 5.x | Takeshi KOMIYA | 2022-04-30 | 1 | -1/+1 |
|\ | |||||
| * | Fix mypy violations (with mypy-0.950) | Takeshi KOMIYA | 2022-04-30 | 1 | -1/+1 |
| | | |||||
* | | Remove deprecated code for Sphinx 5.0 | Adam Turner | 2022-04-17 | 1 | -13/+0 |
| | | |||||
* | | Merge branch '4.x' | Takeshi KOMIYA | 2022-03-19 | 1 | -9/+1 |
|\ \ | |/ | |||||
| * | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | | |||||
| * | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | | |||||
| * | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | | |||||
| * | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | | |||||
| * | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | | |||||
* | | Merge branch '4.x' | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge branch '4.3.x' into 4.x | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| |\ | |||||
| | * | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | | | |||||
* | | | Merge branch '4.x' | Takeshi KOMIYA | 2022-01-01 | 1 | -62/+61 |
|\ \ \ | |/ / | |||||
| * | | Fix py domain: "typing" types are not hyperlinked in info-field-list | Takeshi KOMIYA | 2021-12-27 | 1 | -41/+23 |
| | | |