Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support type comments in ``PropertyDocumenter`` (#11298) | picnixz | 2023-04-06 | 1 | -23/+36 |
| | |||||
* | Fix typos found by codespell | Dimitri Papadopoulos | 2023-03-27 | 1 | -1/+1 |
| | |||||
* | Resolve ``flake8-return`` errors | Adam Turner | 2023-02-18 | 1 | -19/+15 |
| | |||||
* | Unescape quotation marks where possible | Adam Turner | 2023-02-18 | 1 | -1/+1 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -21/+21 |
| | |||||
* | Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147) | Jeremy Maitin-Shepard | 2023-02-15 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | 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/+11 |
| | |||||
* | Fix various Ruff errors | Adam Turner | 2023-01-31 | 1 | -1/+2 |
| | |||||
* | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 1 | -4/+18 |
| | | | | This allows using Ruff's import sorting fixers | ||||
* | Document ``typing.NewType`` as a class (#10700) | Adam Turner | 2023-01-02 | 1 | -113/+78 |
| | |||||
* | Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072) | Adam Turner | 2023-01-02 | 1 | -12/+15 |
| | |||||
* | Address SIM103 lints (#11052) | danieleades | 2023-01-02 | 1 | -8/+2 |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -14/+14 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -43/+43 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -54/+54 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Tighten mypy 'strict optional' whitelist (#11038) | danieleades | 2022-12-29 | 1 | -16/+33 |
| | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> | ||||
* | Clean up after dropping Python 3.6 | Adam Turner | 2022-09-27 | 1 | -5/+2 |
| | |||||
* | Merge branch '5.x' | Adam Turner | 2022-09-25 | 1 | -1/+2 |
|\ | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py | ||||
| * | Define extra indent as a class attribute | Adam Turner | 2022-09-25 | 1 | -1/+2 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-09-23 | 1 | -0/+9 |
|\ \ | |/ | | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py | ||||
| * | Add contents entries for domain objects (#10807) | Adam Turner | 2022-09-13 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | - 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' | Adam Turner | 2022-07-18 | 1 | -2/+1 |
|\ \ | |/ | | | | | | | | | # Conflicts: # sphinx/ext/autodoc/__init__.py # sphinx/writers/html5.py | ||||
| * | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -3/+2 |
| | | |||||
* | | Merge branch '5.x' into master | Jean-François B | 2022-06-30 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | | | | | 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) | ||||
| * | Use the `flake8-comprehensions` lint plugin (#10601) | danieleades | 2022-06-26 | 1 | -1/+1 |
| | | |||||
* | | Remove deprecated items for Sphinx 6.0 (#10471) | Adam Turner | 2022-06-16 | 1 | -34/+3 |
|/ | |||||
* | Fix documenting inherited attributes | Adam Turner | 2022-06-08 | 1 | -1/+2 |
| | |||||
* | Merge remote-tracking branch 'origin/5.x' into HEAD | Takeshi KOMIYA | 2022-05-07 | 1 | -124/+39 |
|\ | |||||
| * | Remove a trailing whitespace | Takeshi KOMIYA | 2022-04-24 | 1 | -1/+1 |
| | | |||||
| * | Correct autodoc docstrings | Oscar Gustafsson | 2022-04-20 | 1 | -3/+5 |
| | | | | | | | | | | A bit too much copy and paste in the earlier ones. `*-members` also includes `inherited-members` and `exclude-members` which are not dealt with. | ||||
| * | Review comments | Adam Turner | 2022-04-17 | 1 | -1/+1 |
| | | |||||
| * | Remove deprecated code for Sphinx 5.0 | Adam Turner | 2022-04-17 | 1 | -120/+33 |
| | | |||||
* | | Apply `autodoc_typehints_format` to all type hints | zuqq | 2022-04-08 | 1 | -4/+18 |
|/ | | | | Specifically: attributes, data, properties, and type variable bounds. | ||||
* | Merge pull request #10285 from jmp1985/master | Takeshi KOMIYA | 2022-04-05 | 1 | -4/+4 |
|\ | | | | | Fixed singledispatch documentation | ||||
| * | Removed white space | James Parkhurst | 2022-03-21 | 1 | -1/+1 |
| | | |||||
| * | Fixed singledispatch documentation | James Parkhurst | 2022-03-21 | 1 | -4/+4 |
| | | |||||
* | | Merge branch '5.x' into autodoc_force_undocumented_rtype | Takeshi KOMIYA | 2022-04-03 | 1 | -4/+8 |
|\ \ | |||||
| * | | Close #8417: autodoc: :inherited-members: option now takes multiple classes | Takeshi KOMIYA | 2022-04-03 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | It allows to suppress inherited members of several classes on the module at once by specifying the option to `automodule` directive | ||||
* | | | autodoc_typehints_description_target: Rename ↵ | Takeshi KOMIYA | 2022-04-03 | 1 | -1/+1 |
| | | | | | | | | | | | | returnvalue_and_documented_params to documented_params | ||||
* | | | Merge branch '5.x' into autodoc_force_undocumented_rtype | Takeshi KOMIYA | 2022-04-03 | 1 | -105/+158 |
|\ \ \ | |/ / | |||||
| * | | Fix #10280: autodoc_docstring_signature generates needless return typehint | Takeshi KOMIYA | 2022-04-03 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | | | | | | Basically, autodoc suppresses return value typehint for class constructors. But it was unexpectedly shown if `autodoc_docstring_signature` is enabled and docstring has multiple signatures. | ||||
| * | | Merge branch '4.x' | Takeshi KOMIYA | 2022-03-27 | 1 | -1/+1 |
| |\ \ | | |/ | |/| | |||||
| | * | Update PEP links in docs | Hugo van Kemenade | 2022-03-24 | 1 | -1/+1 |
| | | | |||||
| * | | Merge branch '4.x' | Takeshi KOMIYA | 2022-03-19 | 1 | -9/+4 |
| |\ \ | | |/ | |||||
| | * | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | | | |||||
| | * | Conform to PEP 257 summary line conventions | Adam Turner | 2022-02-20 | 1 | -1/+3 |
| | | | |||||
| | * | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -4/+4 |
| | | | |||||
| | * | 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 |
| | | |